diff options
author | Christopher Faylor <me@cgf.cx> | 2002-09-22 03:38:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-09-22 03:38:57 +0000 |
commit | c90e1cf179187d5d188a3003db503ffd86d80cfe (patch) | |
tree | ad0890e2267f00de92aefc5a99d60017e4f15fe9 /winsup/cygwin/pthread.cc | |
parent | 228f6b6e07f1b08620dc08f389263f228da0079f (diff) | |
download | cygnal-c90e1cf179187d5d188a3003db503ffd86d80cfe.tar.gz cygnal-c90e1cf179187d5d188a3003db503ffd86d80cfe.tar.bz2 cygnal-c90e1cf179187d5d188a3003db503ffd86d80cfe.zip |
* fhandler.cc (fhandler_base::dup): Don't set handle on failure. Caller has
already taken care of that.
* fhandler_console.cc (fhandler_console::open): Initialize handles to NULL.
(fhandler_console::close): Ditto. GNUify non-GNU formatted functions calls
throughout.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 810fd1f20..cfa0c28ea 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -31,9 +31,9 @@ pthread_once (pthread_once_t * once_control, void (*init_routine) (void)) } int -pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) +pthread_atfork (void (*prepare)(void), void (*parent)(void), void (*child)(void)) { - return pthread::atfork(prepare, parent, child); + return pthread::atfork (prepare, parent, child); } int @@ -141,7 +141,7 @@ pthread_attr_getstackaddr (const pthread_attr_t * attr, void **stackaddr) void pthread_exit (void *value_ptr) { - return pthread::self()->exit (value_ptr); + return pthread::self ()->exit (value_ptr); } int @@ -176,7 +176,7 @@ pthread_getsequence_np (pthread_t * thread) { if (!pthread::isGoodObject (thread)) return EINVAL; - return (*thread)->getsequence_np(); + return (*thread)->getsequence_np (); } /* Thread SpecificData */ @@ -221,7 +221,7 @@ pthread_sigmask (int operation, const sigset_t * set, sigset_t * old_set) pthread_t pthread_self () { - return pthread::self(); + return pthread::self (); } int @@ -431,31 +431,31 @@ pthread_cancel (pthread_t thread) int pthread_setcancelstate (int state, int *oldstate) { - return pthread::self()->setcancelstate (state, oldstate); + return pthread::self ()->setcancelstate (state, oldstate); } int pthread_setcanceltype (int type, int *oldtype) { - return pthread::self()->setcanceltype (type, oldtype); + return pthread::self ()->setcanceltype (type, oldtype); } void pthread_testcancel (void) { - pthread::self()->testcancel (); + pthread::self ()->testcancel (); } void _pthread_cleanup_push (__pthread_cleanup_handler *handler) { - pthread::self()->push_cleanup_handler (handler); + pthread::self ()->push_cleanup_handler (handler); } void _pthread_cleanup_pop (int execute) { - pthread::self()->pop_cleanup_handler (execute); + pthread::self ()->pop_cleanup_handler (execute); } /* Semaphores */ |