mirror of https://github.com/mkerrisk/man-pages
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:
parent
2389c1e3c1
commit
0fa34fb396
|
@ -458,7 +458,7 @@ succeeds even if the file referred to by
|
||||||
and
|
and
|
||||||
.I pathname
|
.I pathname
|
||||||
does not exist.
|
does not exist.
|
||||||
|
.SS C library/ kernel ABI differences
|
||||||
On Linux,
|
On Linux,
|
||||||
.BR futimens ()
|
.BR futimens ()
|
||||||
is a library function implemented on top of the
|
is a library function implemented on top of the
|
||||||
|
@ -479,6 +479,14 @@ is implemented as:
|
||||||
|
|
||||||
utimensat(fd, NULL, times, 0);
|
utimensat(fd, NULL, times, 0);
|
||||||
.fi
|
.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
|
.SH BUGS
|
||||||
Several bugs afflict
|
Several bugs afflict
|
||||||
.BR utimensat ()
|
.BR utimensat ()
|
||||||
|
|
Loading…
Reference in New Issue