-------- Original-Nachricht -------- > Datum: Thu, 14 Apr 2011 18:14:37 +0200 > Von: Giuseppe Scrivano <[email protected]> > An: Bernhard Reutner-Fischer <[email protected]>, "Peter Mazinger" > <[email protected]> > CC: [email protected] > Betreff: Re: `utime(2)\' marked as legacy under linux
> Thanks for your comments. > > Is the following patch ok? not really, utime is obsolete in SuSv4 (and the utime.h header as well) utimes was legacy in SuSv3 but was "reenabled" in SuSv4 Peter > > Cheers, > Giuseppe > > > > From f9b2362086445622536d6521dccd236175121899 Mon Sep 17 00:00:00 2001 > From: Giuseppe Scrivano <[email protected]> > Date: Thu, 14 Apr 2011 17:44:23 +0200 > Subject: [PATCH] utime: do not mark as obsolescent. > > --- > Makefile.in | 2 +- > libc/sysdeps/linux/common/Makefile.in | 3 +-- > libc/sysdeps/linux/common/utime.c | 1 - > 3 files changed, 2 insertions(+), 4 deletions(-) > > diff --git a/Makefile.in b/Makefile.in > index 0c1f414..e2dec0f 100644 > --- a/Makefile.in > +++ b/Makefile.in > @@ -280,7 +280,7 @@ HEADERS_RM-$(UCLIBC_LINUX_SPECIFIC) += > sys/fsuid.h sys/inotify.h sys/pe > HEADERS_RM-$(UCLIBC_SUPPORT_AI_ADDRCONFIG) += ifaddrs.h > HEADERS_RM-$(UCLIBC_SV4_DEPRECATED) += ustat.h sys/ustat.h > bits/ustat.h > HEADERS_RM-$(UCLIBC_SUSV3_LEGACY) += sys/timeb.h regexp.h > -HEADERS_RM-$(UCLIBC_SUSV4_LEGACY) += utime.h ucontext.h > +HEADERS_RM-$(UCLIBC_SUSV4_LEGACY) += ucontext.h > > ifneq ($(findstring install,$(MAKECMDGOALS)),) > $(addprefix $(PREFIX)$(DEVEL_PREFIX),include $(MULTILIB_DIR)): > diff --git a/libc/sysdeps/linux/common/Makefile.in > b/libc/sysdeps/linux/common/Makefile.in > index b0754df..f7affc1 100644 > --- a/libc/sysdeps/linux/common/Makefile.in > +++ b/libc/sysdeps/linux/common/Makefile.in > @@ -31,7 +31,7 @@ ifeq > ($(UCLIBC_LINUX_SPECIFIC)$(UCLIBC_HAS_THREADS_NATIVE),yy) > CSRC-y += madvise.c > endif > ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) > -CSRC- += fork.c getpid.c raise.c open.c close.c read.c write.c > +CSRC- += fork.c getpid.c raise.c open.c close.c read.c write.c utime.c > CSRC- += $(if $(findstring =arm=,=$(TARGET_ARCH)=),vfork.c) > CSRC- += $(if $(findstring =x86_64=,=$(TARGET_ARCH)=),vfork.c) > CSRC- += $(if $(findstring > =mips=y=,=$(TARGET_ARCH)=$(CONFIG_MIPS_O32_ABI)=),waitpid.c) > @@ -49,7 +49,6 @@ CSRC-$(UCLIBC_HAS_REALTIME) += clock_getres.c > clock_gettime.c clock_settime.c \ > sched_rr_get_interval.c sched_setparam.c sched_setscheduler.c sigqueue.c > # > clock_getcpuclockid|clock_nanosleep|mq_timedreceive|mq_timedsend|posix_fadvise|posix_fallocate|posix_madvise|posix_memalign|posix_mem_offset|posix_spawnattr_destroy|posix_spawnattr_init|posix_spawnattr_getflags|posix_spawnattr_setflags|posix_spawnattr_getpgroup|posix_spawnattr_setpgroup|posix_spawnattr_getschedparam|posix_spawnattr_setschedparam|posix_spawnattr_getschedpolicy|posix_spawnattr_setschedpolicy|posix_spawnattr_getsigdefault|posix_spawnattr_setsigdefault|posix_spawnattr_getsigmask|posix_spawnattr_setsigmask|posix_spawnattr_init|posix_spawnattr_setflags|posix_spawnattr_setpgroup|posix_spawnattr_setschedparam|posix_spawnattr_setschedpolicy|posix_spawnattr_setsigdefault|posix_spawnattr_setsigmask|posix_spawn_file_actions_addclose|posix_spawn_file_actions_addopen|posix_spawn_file_actions_adddup2|posix_spawn_file_actions_addopen|posix_spawn_file_actions_destroy|posix_spawn_file_actions_init|posix_spawn_file_actions_init|posix_spawn|posix_spawnp|posix_spawnp|posix_type d_mem_get_info|pthread_mutex_timedlock|sem_timedwait > CSRC-$(UCLIBC_HAS_ADVANCED_REALTIME) += posix_fadvise64.c posix_fadvise.c > -CSRC-$(UCLIBC_SUSV4_LEGACY) += utime.c > CSRC-$(UCLIBC_HAS_EPOLL) += epoll.c > CSRC-$(UCLIBC_HAS_XATTR) += xattr.c > CSRC-$(UCLIBC_HAS_PROFILING) += noophooks.c #pcprofile.c > diff --git a/libc/sysdeps/linux/common/utime.c > b/libc/sysdeps/linux/common/utime.c > index c9fd1bf..a9f988a 100644 > --- a/libc/sysdeps/linux/common/utime.c > +++ b/libc/sysdeps/linux/common/utime.c > @@ -31,5 +31,4 @@ 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) > -- > 1.7.4.1 -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
