diff options
| author | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2020-07-14 21:40:53 +0000 |
|---|---|---|
| committer | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2020-07-14 21:40:53 +0000 |
| commit | cee0d44ab388e12fbd62fdb134d295c58901148a (patch) | |
| tree | fbe464b241337077b941be7126ad3f3f78b19f7f /libsm/stdio.c | |
| parent | 1c3e417caf2d11608f10043b7e70b6e7ed8711ff (diff) | |
Diffstat (limited to 'libsm/stdio.c')
| -rw-r--r-- | libsm/stdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsm/stdio.c b/libsm/stdio.c index 16277c09a8ecb..7e045fa56fec4 100644 --- a/libsm/stdio.c +++ b/libsm/stdio.c @@ -93,7 +93,7 @@ sm_stdopen(fp, info, flags, rpool) #ifdef O_BINARY if (SM_IS_BINARY(flags)) oflags |= O_BINARY; -#endif /* O_BINARY */ +#endif fp->f_file = open(path, oflags, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH); if (fp->f_file < 0) @@ -118,7 +118,7 @@ sm_stdopen(fp, info, flags, rpool) ** Success: number of bytes read ** ** Side Effects: -** Updates internal offset into file. +** Updates internal offset for file. */ ssize_t @@ -433,7 +433,7 @@ sm_stdfdopen(fp, info, flags, rpool) #ifdef O_BINARY if (SM_IS_BINARY(flags)) oflags |= O_BINARY; -#endif /* O_BINARY */ +#endif /* Make sure the mode the user wants is a subset of the actual mode. */ if ((fdflags = fcntl(fd, F_GETFL, 0)) < 0) |
