mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-04 03:22:14 +03:00
Update.
2003-09-20 Alfred M. Szmidt <ams@kemisten.nu> * sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE, UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of __fcntl_nocancel.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2003-09-20 Alfred M. Szmidt <ams@kemisten.nu>
|
||||||
|
|
||||||
|
* sysdeps/generic/utmp_file.c (setutent_file, LOCK_FILE,
|
||||||
|
UNLOCK_FILE, setutent_file): Use fcntl_not_cancel instead of
|
||||||
|
__fcntl_nocancel.
|
||||||
|
|
||||||
2003-09-22 Ulrich Drepper <drepper@redhat.com>
|
2003-09-22 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* malloc/malloc.c: Include <stdint.h>.
|
* malloc/malloc.c: Include <stdint.h>.
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
2003-09-18 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* attr.c (__pthread_attr_init_2_1): Double __guardsize size
|
||||||
|
if NEED_SEPARATE_REGISTER_STACK is defined.
|
||||||
|
|
||||||
2003-09-22 Philip Blundell <philb@gnu.org>
|
2003-09-22 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
* forward.c: Add _pthread_cleanup_push, _pthread_cleanup_pop.
|
* forward.c: Add _pthread_cleanup_push, _pthread_cleanup_pop.
|
||||||
|
@@ -36,7 +36,11 @@ int __pthread_attr_init_2_1(pthread_attr_t *attr)
|
|||||||
attr->__schedparam.sched_priority = 0;
|
attr->__schedparam.sched_priority = 0;
|
||||||
attr->__inheritsched = PTHREAD_EXPLICIT_SCHED;
|
attr->__inheritsched = PTHREAD_EXPLICIT_SCHED;
|
||||||
attr->__scope = PTHREAD_SCOPE_SYSTEM;
|
attr->__scope = PTHREAD_SCOPE_SYSTEM;
|
||||||
|
#ifdef NEED_SEPARATE_REGISTER_STACK
|
||||||
|
attr->__guardsize = ps + ps;
|
||||||
|
#else
|
||||||
attr->__guardsize = ps;
|
attr->__guardsize = ps;
|
||||||
|
#endif
|
||||||
attr->__stackaddr = NULL;
|
attr->__stackaddr = NULL;
|
||||||
attr->__stackaddr_set = 0;
|
attr->__stackaddr_set = 0;
|
||||||
attr->__stacksize = STACK_SIZE - ps;
|
attr->__stacksize = STACK_SIZE - ps;
|
||||||
|
@@ -78,7 +78,7 @@ static void timeout_handler (int signum) {};
|
|||||||
memset (&fl, '\0', sizeof (struct flock)); \
|
memset (&fl, '\0', sizeof (struct flock)); \
|
||||||
fl.l_type = (type); \
|
fl.l_type = (type); \
|
||||||
fl.l_whence = SEEK_SET; \
|
fl.l_whence = SEEK_SET; \
|
||||||
if (__fcntl_nocancel ((fd), F_SETLKW, &fl) < 0)
|
if (fcntl_not_cancel ((fd), F_SETLKW, &fl) < 0)
|
||||||
|
|
||||||
#define LOCKING_FAILED() \
|
#define LOCKING_FAILED() \
|
||||||
goto unalarm_return
|
goto unalarm_return
|
||||||
@@ -86,7 +86,7 @@ static void timeout_handler (int signum) {};
|
|||||||
#define UNLOCK_FILE(fd) \
|
#define UNLOCK_FILE(fd) \
|
||||||
/* Unlock the file. */ \
|
/* Unlock the file. */ \
|
||||||
fl.l_type = F_UNLCK; \
|
fl.l_type = F_UNLCK; \
|
||||||
__fcntl_nocancel ((fd), F_SETLKW, &fl); \
|
fcntl_not_cancel ((fd), F_SETLKW, &fl); \
|
||||||
\
|
\
|
||||||
unalarm_return: \
|
unalarm_return: \
|
||||||
/* Reset the signal handler and alarm. We must reset the alarm \
|
/* Reset the signal handler and alarm. We must reset the alarm \
|
||||||
@@ -150,9 +150,9 @@ setutent_file (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* We have to make sure the file is `closed on exec'. */
|
/* We have to make sure the file is `closed on exec'. */
|
||||||
result = __fcntl_nocancel (file_fd, F_GETFD, 0);
|
result = fcntl_not_cancel (file_fd, F_GETFD, 0);
|
||||||
if (result >= 0)
|
if (result >= 0)
|
||||||
result = __fcntl_nocancel (file_fd, F_SETFD, result | FD_CLOEXEC);
|
result = fcntl_not_cancel (file_fd, F_SETFD, result | FD_CLOEXEC);
|
||||||
if (result == -1)
|
if (result == -1)
|
||||||
{
|
{
|
||||||
close_not_cancel_no_status (file_fd);
|
close_not_cancel_no_status (file_fd);
|
||||||
|
Reference in New Issue
Block a user