[159] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: An idea for pthreads

daemon@ATHENA.MIT.EDU (Andy Burgess)
Wed Oct 25 15:43:13 1995

Date: Wed, 25 Oct 95 12:24 PDT
From: aab@cichlid.com (Andy Burgess)
To: ghudson@MIT.EDU
Cc: pthreads@MIT.EDU

>> % ld -r -o syscalls.o -u <list of system call symbols ie _write etc>
>> /usr/lib/libc.a
>
>The C library system call routines set the global errno value, which
>isn't appropriate for a threaded program.  There's no way to get at
>"just the system call" inside the C library, so the assembly code
>really is necessary.

I think the idea was to call the C lib fcn and then do some housekeeping
before returning, eg (in pseudo code): errno_table[thread] = errno

Andy 'I could be wrong' Burgess
aab@cichlid.com

home help back first fref pref prev next nref lref last post