diff options
author | Jim Meyering <jim@meyering.net> | 2005-11-23 13:36:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-11-23 13:36:48 +0000 |
commit | 1aab378857588fa49f54689074b9c72e98a96cab (patch) | |
tree | 8e5a4651ecd69a0ee4009fe042c2af78974c04a0 /lib | |
parent | 694b9b330a1006cc5a5187ac1b0dccca8ec944db (diff) | |
download | coreutils-1aab378857588fa49f54689074b9c72e98a96cab.tar.xz |
tweak grammar in comments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/openat.c b/lib/openat.c index 1bd4d73c8..32424eb4f 100644 --- a/lib/openat.c +++ b/lib/openat.c @@ -99,7 +99,7 @@ rpl_openat (int fd, char const *file, int flags, ...) char *proc_file; BUILD_PROC_NAME (proc_file, fd, file); err = open (proc_file, flags, mode); - /* If the syscall succeeded, or if it failed with an unexpected + /* If the syscall succeeds, or if it fails with an unexpected errno value, then return right away. Otherwise, fall through and resort to using save_cwd/restore_cwd. */ if (0 <= err || ! EXPECTED_ERRNO (errno)) @@ -166,7 +166,7 @@ openat_permissive (int fd, char const *file, int flags, char *proc_file; BUILD_PROC_NAME (proc_file, fd, file); err = open (proc_file, flags, mode); - /* If the syscall succeeded, or if it failed with an unexpected + /* If the syscall succeeds, or if it fails with an unexpected errno value, then return right away. Otherwise, fall through and resort to using save_cwd/restore_cwd. */ if (0 <= err || ! EXPECTED_ERRNO (errno)) @@ -233,7 +233,7 @@ fdopendir (int fd) BUILD_PROC_NAME (proc_file, fd, "."); dir = opendir (proc_file); saved_errno = (dir == NULL ? errno : 0); - /* If the syscall succeeded, or if it failed with an unexpected + /* If the syscall succeeds, or if it fails with an unexpected errno value, then return right away. Otherwise, fall through and resort to using save_cwd/restore_cwd. */ if (dir != NULL || ! EXPECTED_ERRNO (errno)) @@ -295,7 +295,7 @@ fstatat (int fd, char const *file, struct stat *st, int flag) err = (flag == AT_SYMLINK_NOFOLLOW ? lstat (proc_file, st) : stat (proc_file, st)); - /* If the syscall succeeded, or if it failed with an unexpected + /* If the syscall succeeds, or if it fails with an unexpected errno value, then return right away. Otherwise, fall through and resort to using save_cwd/restore_cwd. */ if (0 <= err || ! EXPECTED_ERRNO (errno)) @@ -349,7 +349,7 @@ unlinkat (int fd, char const *file, int flag) char *proc_file; BUILD_PROC_NAME (proc_file, fd, file); err = (flag == AT_REMOVEDIR ? rmdir (proc_file) : unlink (proc_file)); - /* If the syscall succeeded, or if it failed with an unexpected + /* If the syscall succeeds, or if it fails with an unexpected errno value, then return right away. Otherwise, fall through and resort to using save_cwd/restore_cwd. */ if (0 <= err || ! EXPECTED_ERRNO (errno)) |