diff options
author | rpj <rpj> | 2004-05-17 01:38:02 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-05-17 01:38:02 +0000 |
commit | 771465fed0cf50ee2dd790723245fc091699c324 (patch) | |
tree | d8c18d095a33fe7c4564bd90c5f313bb9e4057dd /errno.c | |
parent | 8b14911744f58cbe3730703f3fcc41cd969fd0f3 (diff) |
re-indentation, bug fixes, hooks for pre-emptive async cancelation
Diffstat (limited to 'errno.c')
-rw-r--r-- | errno.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -40,7 +40,7 @@ #include "pthread.h" #include "implement.h" -static int reallyBad = ENOMEM; +static int reallyBad = ENOMEM; /* * Re-entrant errno. @@ -68,12 +68,13 @@ static int reallyBad = ENOMEM; * */ -int * _errno( void ) +int * +_errno (void) { - pthread_t self; - int *result; + pthread_t self; + int *result; - if( ( self = pthread_self() ) == NULL ) + if ((self = pthread_self ()) == NULL) { /* * Yikes! unable to allocate a thread! @@ -86,9 +87,8 @@ int * _errno( void ) result = &(self->ptErrno); } - return( result ); + return (result); -} /* _errno */ +} /* _errno */ #endif /* (NEED_ERRNO) */ - |