Update.
2002-12-08 Ulrich Drepper <drepper@redhat.com> * include/unistd.h: Declare __libc_close.
This commit is contained in:
parent
09efc3ba12
commit
3335502bec
|
@ -1,3 +1,7 @@
|
||||||
|
2002-12-08 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* include/unistd.h: Declare __libc_close.
|
||||||
|
|
||||||
2002-12-07 Ulrich Drepper <drepper@redhat.com>
|
2002-12-07 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
|
* sysdeps/generic/bits/stdio-lock.h (_IO_lock_trylock): New define.
|
||||||
|
|
|
@ -117,6 +117,7 @@ extern int __getdtablesize (void);
|
||||||
extern int __brk (void *__addr);
|
extern int __brk (void *__addr);
|
||||||
extern int __close (int __fd);
|
extern int __close (int __fd);
|
||||||
libc_hidden_proto (__close)
|
libc_hidden_proto (__close)
|
||||||
|
extern int __libc_close (int __fd);
|
||||||
extern ssize_t __read (int __fd, void *__buf, size_t __nbytes);
|
extern ssize_t __read (int __fd, void *__buf, size_t __nbytes);
|
||||||
libc_hidden_proto (__read)
|
libc_hidden_proto (__read)
|
||||||
extern ssize_t __write (int __fd, __const void *__buf, size_t __n);
|
extern ssize_t __write (int __fd, __const void *__buf, size_t __n);
|
||||||
|
|
|
@ -47,7 +47,7 @@ pthread_setcancelstate (state, oldstate)
|
||||||
? PTHREAD_CANCEL_DISABLE : PTHREAD_CANCEL_ENABLE);
|
? PTHREAD_CANCEL_DISABLE : PTHREAD_CANCEL_ENABLE);
|
||||||
|
|
||||||
/* Avoid doing unnecessary work. The atomic operation can
|
/* Avoid doing unnecessary work. The atomic operation can
|
||||||
potentially be expensive if the bug has to be locked and
|
potentially be expensive if the memory has to be locked and
|
||||||
remote cache lines have to be invalidated. */
|
remote cache lines have to be invalidated. */
|
||||||
if (oldval == newval)
|
if (oldval == newval)
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -47,7 +47,7 @@ __pthread_setcanceltype (type, oldtype)
|
||||||
? PTHREAD_CANCEL_ASYNCHRONOUS : PTHREAD_CANCEL_DEFERRED);
|
? PTHREAD_CANCEL_ASYNCHRONOUS : PTHREAD_CANCEL_DEFERRED);
|
||||||
|
|
||||||
/* Avoid doing unnecessary work. The atomic operation can
|
/* Avoid doing unnecessary work. The atomic operation can
|
||||||
potentially be expensive if the bug has to be locked and
|
potentially be expensive if the memory has to be locked and
|
||||||
remote cache lines have to be invalidated. */
|
remote cache lines have to be invalidated. */
|
||||||
if (oldval == newval)
|
if (oldval == newval)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue