summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-10-07 19:42:09 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-10-16 11:43:16 -0700
commitb9e1ae770c622b9fc40784c0e693e0c26b70d48a (patch)
treea6d679960ea39d901c5dfd1e11e514d4afc45913
parentf431b274272e09cc8168a41d9e939e953b5013d5 (diff)
downloaduClibc-alpine-b9e1ae770c622b9fc40784c0e693e0c26b70d48a.tar.bz2
uClibc-alpine-b9e1ae770c622b9fc40784c0e693e0c26b70d48a.tar.xz
utime() is obsolescent in SUSv4
LEGACY was removed for utimes() in SUSv4 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
-rw-r--r--libc/sysdeps/linux/common/Makefile.in4
-rw-r--r--libc/sysdeps/linux/common/utime.c1
-rw-r--r--libc/sysdeps/linux/common/utimes.c1
3 files changed, 5 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/Makefile.in b/libc/sysdeps/linux/common/Makefile.in
index 98e259162..535a57369 100644
--- a/libc/sysdeps/linux/common/Makefile.in
+++ b/libc/sysdeps/linux/common/Makefile.in
@@ -64,6 +64,10 @@ ifneq ($(UCLIBC_HAS_ADVANCED_REALTIME),y)
CSRC := $(filter-out posix_fadvise64.c posix_fadvise.c,$(CSRC))
endif
+ifneq ($(UCLIBC_SUSV4_LEGACY),y)
+CSRC := $(filter-out utime.c,$(CSRC))
+endif
+
ifneq ($(UCLIBC_HAS_EPOLL),y)
CSRC := $(filter-out epoll.c,$(CSRC))
endif
diff --git a/libc/sysdeps/linux/common/utime.c b/libc/sysdeps/linux/common/utime.c
index a9f988a43..c9fd1bfbb 100644
--- a/libc/sysdeps/linux/common/utime.c
+++ b/libc/sysdeps/linux/common/utime.c
@@ -31,4 +31,5 @@ int utime(const char *file, const struct utimbuf *times)
return utimes(file, times ? timevals : NULL);
}
#endif
+link_warning(utime, "the use of OBSOLESCENT `utime' is discouraged, use `utimes'")
libc_hidden_def(utime)
diff --git a/libc/sysdeps/linux/common/utimes.c b/libc/sysdeps/linux/common/utimes.c
index f4781e0a4..99d92027b 100644
--- a/libc/sysdeps/linux/common/utimes.c
+++ b/libc/sysdeps/linux/common/utimes.c
@@ -32,5 +32,4 @@ int utimes(const char *file, const struct timeval tvp[2])
return utime(file, times);
}
#endif
-link_warning(utimes, "the use of LEGACY `utimes' is discouraged, use `utime'")
libc_hidden_def(utimes)