diff options
author | Eric Blake <ebb9@byu.net> | 2009-09-02 17:06:43 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-09-02 20:37:41 -0600 |
commit | 9de26050ef8a950fd62ebadeeab2eb7505631028 (patch) | |
tree | 925ff5d3ba0a93a836cf423479ab8114f0827d21 /modules | |
parent | cd98e9dbd7d4a480aef908745ce7c65ceb5299d4 (diff) | |
download | gnulib-9de26050ef8a950fd62ebadeeab2eb7505631028.tar.gz |
errno: use consistently
* lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
* lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
* lib/canonicalize.c (ELOOP): Likewise.
* lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
* lib/inet_pton.c (EAFNOSUPPORT): Likewise.
* lib/lchown.c (EOPNOTSUPP): Likewise.
* lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
* lib/savewd.c (ESTALE): Likewise.
* lib/settime.c (ENOSYS): Likewise.
* lib/utimens.c (ENOSYS): Likewise.
* lib/xgethostname.c (ENAMETOOLONG): Likewise.
* lib/chdir-safer.c (ELOOP): Likewise.
(chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
* modules/c-stack (Depends-on): Add errno.
* modules/canonicalize (Depends-on): Likewise.
* modules/chdir-safer (Depends-on): Likewise.
* modules/fdopendir (Depends-on): Likewise.
* modules/inet_ntop (Depends-on): Likewise.
* modules/inet_pton (Depends-on): Likewise.
* modules/lchown (Depends-on): Likewise.
* modules/openat (Depends-on): Likewise.
* modules/savewd (Depends-on): Likewise.
* modules/settime (Depends-on): Likewise.
* m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/c-stack | 1 | ||||
-rw-r--r-- | modules/canonicalize | 1 | ||||
-rw-r--r-- | modules/chdir-safer | 1 | ||||
-rw-r--r-- | modules/fdopendir | 3 | ||||
-rw-r--r-- | modules/inet_ntop | 1 | ||||
-rw-r--r-- | modules/inet_pton | 1 | ||||
-rw-r--r-- | modules/lchown | 1 | ||||
-rw-r--r-- | modules/openat | 1 | ||||
-rw-r--r-- | modules/savewd | 1 | ||||
-rw-r--r-- | modules/settime | 1 | ||||
-rw-r--r-- | modules/utimens | 1 |
11 files changed, 12 insertions, 1 deletions
diff --git a/modules/c-stack b/modules/c-stack index 6a589c3145..22dd18c1af 100644 --- a/modules/c-stack +++ b/modules/c-stack @@ -8,6 +8,7 @@ m4/c-stack.m4 Depends-on: gettext-h +errno exitfail unistd raise diff --git a/modules/canonicalize b/modules/canonicalize index 23baa7594c..e24be3d177 100644 --- a/modules/canonicalize +++ b/modules/canonicalize @@ -9,6 +9,7 @@ m4/canonicalize.m4 Depends-on: areadlink-with-size +errno file-set filenamecat hash-triple diff --git a/modules/chdir-safer b/modules/chdir-safer index b3b47e16f6..39cfdc7f6b 100644 --- a/modules/chdir-safer +++ b/modules/chdir-safer @@ -7,6 +7,7 @@ lib/chdir-safer.c m4/chdir-safer.m4 Depends-on: +errno fchdir fcntl-h open diff --git a/modules/fdopendir b/modules/fdopendir index 7a90aa367f..83c2af7d32 100644 --- a/modules/fdopendir +++ b/modules/fdopendir @@ -8,8 +8,9 @@ lib/openat-proc.c m4/fdopendir.m4 Depends-on: -extensions dirent +errno +extensions fchdir openat-die save-cwd diff --git a/modules/inet_ntop b/modules/inet_ntop index 98df38e51c..76ff39da79 100644 --- a/modules/inet_ntop +++ b/modules/inet_ntop @@ -9,6 +9,7 @@ Depends-on: socklen sys_socket arpa_inet +errno netinet_in extensions diff --git a/modules/inet_pton b/modules/inet_pton index 173710ab81..314bf0f9c2 100644 --- a/modules/inet_pton +++ b/modules/inet_pton @@ -10,6 +10,7 @@ c-ctype socklen sys_socket arpa_inet +errno netinet_in extensions diff --git a/modules/lchown b/modules/lchown index e011e2bddb..65c084c933 100644 --- a/modules/lchown +++ b/modules/lchown @@ -7,6 +7,7 @@ m4/lchown.m4 Depends-on: chown +errno sys_stat unistd diff --git a/modules/openat b/modules/openat index 5c326a07d5..3ea5b4d7cc 100644 --- a/modules/openat +++ b/modules/openat @@ -16,6 +16,7 @@ m4/mode_t.m4 Depends-on: dirname +errno extensions fchdir fdopendir diff --git a/modules/savewd b/modules/savewd index 360d4b9a38..6d655c17e3 100644 --- a/modules/savewd +++ b/modules/savewd @@ -8,6 +8,7 @@ m4/savewd.m4 Depends-on: dirname +errno exit fchdir fcntl-safer diff --git a/modules/settime b/modules/settime index 9ca84a027e..f88318ed89 100644 --- a/modules/settime +++ b/modules/settime @@ -7,6 +7,7 @@ m4/settime.m4 Depends-on: clock-time +errno extensions sys_time timespec diff --git a/modules/utimens b/modules/utimens index caf8805d6a..425148521c 100644 --- a/modules/utimens +++ b/modules/utimens @@ -9,6 +9,7 @@ m4/utimens.m4 m4/utimes.m4 Depends-on: +errno sys_time time |