diff options
author | Roland McGrath <roland@gnu.org> | 2003-04-23 01:54:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-04-23 01:54:03 +0000 |
commit | f478103ff0ab69829f32537947024269296cff17 (patch) | |
tree | b59cefc0f402231e82d6821e1e035cf48d7079c4 /sysdeps/unix/sysv/linux/gethostid.c | |
parent | 4c5dd2a2071c60eaa2d36f8a000fb90a5a5a5813 (diff) | |
download | glibc-f478103ff0ab69829f32537947024269296cff17.tar glibc-f478103ff0ab69829f32537947024269296cff17.tar.gz glibc-f478103ff0ab69829f32537947024269296cff17.tar.bz2 glibc-f478103ff0ab69829f32537947024269296cff17.zip |
2003-04-22 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
(open_not_cancel): Make last argument non-optional.
* sysdeps/generic/check_fds.c (check_one_fd): Update caller.
* sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
* iconv/gconv_cache.c (__gconv_load_cache): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/gethostid.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/gethostid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c index 4b587ceab3..5ef330b958 100644 --- a/sysdeps/unix/sysv/linux/gethostid.c +++ b/sysdeps/unix/sysv/linux/gethostid.c @@ -72,9 +72,9 @@ gethostid () int fd; /* First try to get the ID from a former invocation of sethostid. */ - fd = open_not_cancel (HOSTIDFILE, O_RDONLY|O_LARGEFILE); + fd = open_not_cancel (HOSTIDFILE, O_RDONLY|O_LARGEFILE, 0); if (fd < 0) - fd = open_not_cancel (OLD_HOSTIDFILE, O_RDONLY|O_LARGEFILE); + fd = open_not_cancel (OLD_HOSTIDFILE, O_RDONLY|O_LARGEFILE, 0); if (fd >= 0) { ssize_t n = read_not_cancel (fd, &id, sizeof (id)); |