mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* intl/locale.alias: Change `japanese' alais to match X11R6's. Add `japanese.euc' alias. * manual/Makefile (%.info): Set LANGUAGE and LC_ALL explicitly to C before running makeinfo. * math/Makefile (libm-routines): $(strip) entire value. * nss/nss_db/db-XXX.c (internal_setent): Rewrite to avoid warning. 1998-10-24 H.J. Lu <hjl@gnu.org> * libio/libio.h (_IO_cookie_io_functions_t): Protect with __USE_GNU. (_IO_cookie_file): Likewise. 1998-11-16 Philip Blundell <philb@gnu.org> * inet/netinet/icmp6.h: Correct naming of constants. 1998-11-16 Ulrich Drepper <drepper@cygnus.com> (fwrite_unlocked): Likewise. format, just stop.
This commit is contained in:
@ -73,9 +73,9 @@ internal_setent (int stayopen)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* We have to make sure the file is `closed on exec'. */
|
||||
/* We have to make sure the file is `closed on exec'. */
|
||||
int fd;
|
||||
int result, flags;
|
||||
int result;
|
||||
|
||||
err = db->fd (db, &fd);
|
||||
if (err != 0)
|
||||
@ -84,11 +84,14 @@ internal_setent (int stayopen)
|
||||
result = -1;
|
||||
}
|
||||
else
|
||||
result = flags = fcntl (fd, F_GETFD, 0);
|
||||
if (result >= 0)
|
||||
{
|
||||
flags |= FD_CLOEXEC;
|
||||
result = fcntl (fd, F_SETFD, flags);
|
||||
int flags = result = fcntl (fd, F_GETFD, 0);
|
||||
|
||||
if (result >= 0)
|
||||
{
|
||||
flags |= FD_CLOEXEC;
|
||||
result = fcntl (fd, F_SETFD, flags);
|
||||
}
|
||||
}
|
||||
if (result < 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user