utimensat.2: Note that the glibc wrapper disallows pathname==NULL

Reported-by: Rob Landley <rob@landley.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-07-02 11:25:51 +02:00
parent 2389c1e3c1
commit 0fa34fb396
1 changed files with 9 additions and 1 deletions

View File

@ -458,7 +458,7 @@ succeeds even if the file referred to by
and
.I pathname
does not exist.
.SS C library/ kernel ABI differences
On Linux,
.BR futimens ()
is a library function implemented on top of the
@ -479,6 +479,14 @@ is implemented as:
utimensat(fd, NULL, times, 0);
.fi
Note, however, that the glibc wrapper for
.BR utimensat ()
disallows passing NULL as the value for
.IR file :
the wrapper function returns the error
.IR EINVAL
in this case.
.SH BUGS
Several bugs afflict
.BR utimensat ()