Changes in uspace/lib/posix/sys/stat.c [4cf8ca6:eca52a8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/sys/stat.c
r4cf8ca6 reca52a8 31 31 * @{ 32 32 */ 33 /** @file File status handling.33 /** @file 34 34 */ 35 35 … … 80 80 int rc = fstat(fd, &hst); 81 81 if (rc < 0) { 82 /* fstat() returns negative error code instead of using errno. */ 82 /* fstat() returns negative error code instead of using errno. 83 */ 83 84 errno = -rc; 84 85 return -1; … … 95 96 * @return Zero on success, -1 otherwise. 96 97 */ 97 int posix_lstat(const char * restrict path, struct posix_stat *restrictst)98 int posix_lstat(const char *path, struct posix_stat *st) 98 99 { 99 100 /* There are currently no symbolic links in HelenOS. */ … … 108 109 * @return Zero on success, -1 otherwise. 109 110 */ 110 int posix_stat(const char * restrict path, struct posix_stat *restrictst)111 int posix_stat(const char *path, struct posix_stat *st) 111 112 { 112 113 struct stat hst; 113 114 int rc = stat(path, &hst); 114 115 if (rc < 0) { 115 /* stat() returns negative error code instead of using errno. */ 116 /* stat() returns negative error code instead of using errno. 117 */ 116 118 errno = -rc; 117 119 return -1;
Note:
See TracChangeset
for help on using the changeset viewer.