From 795fbc9aa183e10526f6545e28cabf03be7feaf9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 13 Feb 1997 05:10:35 +0000 Subject: update from main archive 970212 1997-02-13 02:32 Ulrich Drepper * time/time.h (__nanosleep): Define only when struct timespec is also available. Reported by Ross Alexander . 1997-02-12 21:34 a sun * sysdeps/unix/sysv/linux/netinet/udp.h: New file. * sysdeps/unix/sysv/linux/Dist: Add netinet/udp.h. 1997-02-12 21:16 Ulrich Drepper * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname_r): Follow patch of 1997-02-09 in resolv/gethnamaddr.c. 1997-02-11 18:52 H.J. Lu * libio/_G_config.h (_G_wint_t): New. 1997-02-09 11:31 H.J. Lu * resolv/gethnamaddr.c (gethostbyname2): Change sizeof (buf) to sizeof (buf.buf) while calling res_search (). 1997-02-03 20:01 H.J. Lu * nis/rpcsvc/yp_prot.h (ypresp_key_val): Change key to keydat, val to keydat, stat to status. 1997-02-12 20:45 Andreas Jaeger * time/tzfile.c (__tzfile_read): Fix problem with SUID programs. 1997-02-12 19:55 Ulrich Drepper * db/btree/bt_split.c (bt_psplit): Apply official patches #2 and #4 by Keith Bostic. 1997-02-11 14:49 Andreas Jaeger * stdlib/atoll.c: Undefined atoll, not atol. 1997-02-08 09:36 Andreas Schwab * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls): Remove unused arguments of shell script. * Makeconfig (all-object-suffixes): New variable. * Makerules ($(+sysdir_pfx)sysd-rules, +make-deps): Use it instead of $(object-suffixes). * sysdeps/unix/make-syscalls.sh: Likewise. Fix comment. --- time/time.h | 2 +- time/tzfile.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'time') diff --git a/time/time.h b/time/time.h index f6a26d919e..8c1aeaace6 100644 --- a/time/time.h +++ b/time/time.h @@ -267,10 +267,10 @@ extern int dysize __P ((int __year)); #endif +#ifdef __USE_POSIX199309 /* Pause execution for a number of nanoseconds. */ extern int __nanosleep __P ((__const struct timespec *__requested_time, struct timespec *__remaining)); -#ifdef __USE_POSIX199309 extern int nanosleep __P ((__const struct timespec *__requested_time, struct timespec *__remaining)); #endif diff --git a/time/tzfile.c b/time/tzfile.c index e063d5d04f..663c02fda8 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -119,6 +119,7 @@ __tzfile_read (const char *file) directory hierachy starting at TZDIR. */ if (__libc_enable_secure && ((*file == '/' + && (memcmp(file, TZDEFAULT, sizeof(TZDEFAULT) -1)) && memcmp (file, default_tzdir, sizeof (default_tzdir) - 1)) || strstr (file, "../") != NULL)) /* This test a certainly a bit too restrictive but it should -- cgit v1.2.3