NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/47631: utimes.2

>Number:         47631
>Category:       lib
>Synopsis:       utimes.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 08 14:55:00 +0000 2013
>Originator:     NAKAJIMA Yoshihiro
>Release:        NetBSD-current/20130308
System: NetBSD vajra 6.99.17 NetBSD 6.99.17 (VAJRA) #1: Fri Mar 8 23:10:35 JST 
2013 nakayosh@vajra:/usr/src/sys/arch/i386/compile/VAJRA i386
Architecture: i386
Machine: i386

Issues of utimes.2:

1. Utimens and lutimens don't require timeval but timespec.
2. The order of functions doesn't have a uniformity.
3. Utimens.2 and lutimens.2 aren't installed.


diff -u src/lib/libc/sys/ src/lib/libc/sys/
--- src/lib/libc/sys/  2012-11-19 02:41:53.000000000 +0900
+++ src/lib/libc/sys/       2012-12-02 17:01:51.000000000 +0900
@@ -334,7 +334,8 @@
 MLINKS+=truncate.2 ftruncate.2
 MLINKS+=unlink.2 unlinkat.2
 MLINKS+=utimes.2 futimes.2 utimes.2 lutimes.2
-MLINKS+=utimes.2 futimens.2 utimes.2 utimensat.2
+MLINKS+=utimes.2 utimens.2 utimes.2 futimens.2 utimes.2 lutimens.2
+MLINKS+=utimes.2 utimensat.2
 MLINKS+=wait.2 wait3.2 wait.2 wait4.2 wait.2 waitpid.2
 MLINKS+=write.2 writev.2 write.2 pwrite.2 write.2 pwritev.2
 MLINKS+=pipe.2 pipe2.2
diff -u src/lib/libc/sys/utimes.2.ORIG src/lib/libc/sys/utimes.2
--- src/lib/libc/sys/utimes.2.ORIG      2013-01-13 17:15:02.000000000 +0900
+++ src/lib/libc/sys/utimes.2   2013-01-19 14:07:10.000000000 +0900
@@ -50,11 +50,11 @@
 .Ft int
 .Fn lutimes "const char *path" "const struct timeval times[2]"
 .Ft int
-.Fn utimens "const char *path" "const struct timeval times[2]"
+.Fn futimes "int fd" "const struct timeval times[2]"
 .Ft int
-.Fn lutimens "const char *path" "const struct timeval times[2]"
+.Fn utimens "const char *path" "const struct timespec times[2]"
 .Ft int
-.Fn futimes "int fd" "const struct timeval times[2]"
+.Fn lutimens "const char *path" "const struct timespec times[2]"
 .Ft int
 .Fn futimens "int fd" "const struct timespec times[2]"
 .In fcntl.h

Home | Main Index | Thread Index | Old Index