Mercurial > hg > octave-kai > gnulib-hg
changeset 381:4d4cec1d26a8
Rename SAFE_STAT to safe_stat.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 27 Jan 1995 17:05:11 +0000 |
parents | bd90a233f266 |
children | e83a868b8f5a |
files | lib/isdir.c lib/mkdir.c lib/rename.c lib/rmdir.c |
diffstat | 4 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/isdir.c +++ b/lib/isdir.c @@ -41,5 +41,5 @@ { struct stat stats; - return SAFE_STAT (path, &stats) == 0 && S_ISDIR (stats.st_mode); + return safe_stat (path, &stats) == 0 && S_ISDIR (stats.st_mode); }
--- a/lib/mkdir.c +++ b/lib/mkdir.c @@ -57,7 +57,7 @@ int cpid, status; struct stat statbuf; - if (SAFE_STAT (dpath, &statbuf) == 0) + if (safe_stat (dpath, &statbuf) == 0) { errno = EEXIST; /* stat worked, so it already exists. */ return -1;
--- a/lib/rename.c +++ b/lib/rename.c @@ -47,13 +47,13 @@ struct stat from_stats, to_stats; int pid, status; - if (SAFE_STAT (from, &from_stats)) + if (safe_stat (from, &from_stats)) return -1; /* Be careful not to unlink `from' if it happens to be equal to `to' or (on filesystems that silently truncate filenames after 14 characters) if `from' and `to' share the significant characters. */ - if (SAFE_STAT (to, &to_stats)) + if (safe_stat (to, &to_stats)) { if (errno != ENOENT) return -1;