This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v8 1/8] nptl: Add C11 threads thrd_* functions


On 02/02/2018 06:04 PM, Adhemerval Zanella wrote:
+/* Exit and error codes.  */
+enum
+{
+  thrd_success  = 0,
+  thrd_busy     = 1,
+  thrd_error    = 2,
+  thrd_nomem    = 3,
+  thrd_timedout = 4
+};

We could make the mapping more efficient if we used EBUSY, EINVAL, ENOMEM, ETIMEDOUT for the error codes, possibly with the help of a .sym file. I expect that this would allow us to eliminate some of the wrappers and use symbol aliases instead, but it doesn't look like there would be many such cases. Your call.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]