summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog25
-rw-r--r--inet/getnetgrent_r.c5
-rw-r--r--linuxthreads/sysdeps/pthread/pthread.h18
-rw-r--r--posix/regex.h2
-rw-r--r--sysdeps/unix/sysv/linux/gethostid.c1
-rw-r--r--time/gmtime.c10
-rw-r--r--time/localtime.c7
-rw-r--r--time/offtime.c5
-rw-r--r--time/tzfile.c4
-rw-r--r--time/tzset.c14
-rw-r--r--wctype/wctype.h11
11 files changed, 44 insertions, 58 deletions
diff --git a/ChangeLog b/ChangeLog
index aad27c5a32..91365ff101 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+1998-12-10 Ulrich Drepper <drepper@cygnus.com>
+
+ * inet/getnetgrent_r.c (innetgr): Check host and domain name with
+ strcasecmp, not strcmp. [PR libc/894].
+
+1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * posix/regex.h: Declare re_comp, re_exec if compiling for libc to
+ get prototypes.
+
+ * wctype/wctype.h: Add prototypes for __iswblank_l and iswblank.
+
+1998-12-08 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * sysdeps/unix/sysv/linux/gethostid.c: Include <netdb.h> to get
+ prototype for __gethostbyname_r.
+
+ * include/time.h: Add declarations of internal interfaces.
+
+ * time/tzset.c: Remove declarations of internal interfaces.
+ * time/gmtime.c: Likewise.
+ * time/localtime.c: Likewise.
+ * time/offtime.c: Likewise.
+ * time/tzfile.c: Likewise.
+
1998-12-01 09:47 -0500 Zack Weinberg <zack@rabi.phys.columbia.edu>
* sysdeps/unix/sysv/linux/sys/timex.h: Copy out
diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c
index a04a47712a..d3443793bf 100644
--- a/inet/getnetgrent_r.c
+++ b/inet/getnetgrent_r.c
@@ -364,11 +364,12 @@ innetgr (const char *netgroup, const char *host, const char *user,
real_entry = 1;
if ((entry.val.triple.host == NULL || host == NULL
- || strcmp (entry.val.triple.host, host) == 0)
+ || __strcasecmp (entry.val.triple.host, host) == 0)
&& (entry.val.triple.user == NULL || user == NULL
|| strcmp (entry.val.triple.user, user) == 0)
&& (entry.val.triple.domain == NULL || domain == NULL
- || strcmp (entry.val.triple.domain, domain) == 0))
+ || __strcasecmp (entry.val.triple.domain,
+ domain) == 0))
{
result = 1;
break;
diff --git a/linuxthreads/sysdeps/pthread/pthread.h b/linuxthreads/sysdeps/pthread/pthread.h
index bc6c691865..48619511ee 100644
--- a/linuxthreads/sysdeps/pthread/pthread.h
+++ b/linuxthreads/sysdeps/pthread/pthread.h
@@ -214,14 +214,10 @@ extern int pthread_attr_getscope __P ((__const pthread_attr_t *__attr,
#ifdef __USE_UNIX98
/* Set the size of the guard area at the bottom of the thread. */
-extern int __pthread_attr_setguardsize __P ((pthread_attr_t *__attr,
- size_t __guardsize));
extern int pthread_attr_setguardsize __P ((pthread_attr_t *__attr,
size_t __guardsize));
/* Get the size of the guard area at the bottom of the thread. */
-extern int __pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr,
- size_t *__guardsize));
extern int pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr,
size_t *__guardsize));
#endif
@@ -230,28 +226,20 @@ extern int pthread_attr_getguardsize __P ((__const pthread_attr_t *__attr,
Depending on whether the stack grows up or doen the value must either
be higher or lower than all the address in the memory block. The
minimal size of the block must be PTHREAD_STACK_SIZE. */
-extern int __pthread_attr_setstackaddr __P ((pthread_attr_t *__attr,
- void *__stackaddr));
extern int pthread_attr_setstackaddr __P ((pthread_attr_t *__attr,
void *__stackaddr));
/* Return the previously set address for the stack. */
-extern int __pthread_attr_getstackaddr __P ((__const pthread_attr_t *__attr,
- void **__stackaddr));
extern int pthread_attr_getstackaddr __P ((__const pthread_attr_t *__attr,
void **__stackaddr));
/* Add information about the minimum stack size needed for the thread
to be started. This size must never be less than PTHREAD_STACK_SIZE
and must also not exceed the system limits. */
-extern int __pthread_attr_setstacksize __P ((pthread_attr_t *__attr,
- size_t __stacksize));
extern int pthread_attr_setstacksize __P ((pthread_attr_t *__attr,
size_t __stacksize));
/* Return the currently used minimal stack size. */
-extern int __pthread_attr_getstacksize __P ((__const pthread_attr_t *__attr,
- size_t *__stacksize));
extern int pthread_attr_getstacksize __P ((__const pthread_attr_t *__attr,
size_t *__stacksize));
@@ -269,11 +257,9 @@ extern int pthread_getschedparam __P ((pthread_t __target_thread,
#ifdef __USE_UNIX98
/* Determine level of concurrency. */
-extern int __pthread_getconcurrency __P ((void));
extern int pthread_getconcurrency __P ((void));
/* Set new concurrency level to LEVEL. */
-extern int __pthread_setconcurrency __P ((int __level));
extern int pthread_setconcurrency __P ((int __level));
#endif
@@ -324,8 +310,6 @@ extern int pthread_mutexattr_settype __P ((pthread_mutexattr_t *__attr,
int __kind));
/* Return in *KIND the mutex kind attribute in *ATTR. */
-extern int __pthread_mutexattr_gettype __P ((__const pthread_mutexattr_t *__attr,
- int *__kind));
extern int pthread_mutexattr_gettype __P ((__const pthread_mutexattr_t *__attr,
int *__kind));
#endif
@@ -471,7 +455,6 @@ extern int pthread_setcancelstate __P ((int __state, int *__oldstate));
/* Set cancellation state of current thread to TYPE, returning the old
type in *OLDTYPE if OLDTYPE is not NULL. */
-extern int __pthread_setcanceltype __P ((int __type, int *__oldtype));
extern int pthread_setcanceltype __P ((int __type, int *__oldtype));
/* Cancel THREAD immediately or at the next possibility. */
@@ -557,7 +540,6 @@ extern int pthread_atfork __P ((void (*__prepare) (void),
/* Terminate all threads in the program except the calling process.
Should be called just before invoking one of the exec*() functions. */
-extern void __pthread_kill_other_threads_np __P ((void));
extern void pthread_kill_other_threads_np __P ((void));
diff --git a/posix/regex.h b/posix/regex.h
index 3fa93e5033..d88ab92bd4 100644
--- a/posix/regex.h
+++ b/posix/regex.h
@@ -505,7 +505,7 @@ extern void re_set_registers
_RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs,
unsigned num_regs, regoff_t *starts, regoff_t *ends));
-#ifdef _REGEX_RE_COMP
+#if defined _REGEX_RE_COMP || defined _LIBC
# ifndef _CRAY
/* 4.2 bsd compatibility. */
extern char *re_comp _RE_ARGS ((const char *));
diff --git a/sysdeps/unix/sysv/linux/gethostid.c b/sysdeps/unix/sysv/linux/gethostid.c
index f8a3b80481..3ef6ac63fb 100644
--- a/sysdeps/unix/sysv/linux/gethostid.c
+++ b/sysdeps/unix/sysv/linux/gethostid.c
@@ -19,6 +19,7 @@
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
+#include <netdb.h>
#define HOSTIDFILE "/var/adm/hostid"
diff --git a/time/gmtime.c b/time/gmtime.c
index 2b388befb1..2de58eea2f 100644
--- a/time/gmtime.c
+++ b/time/gmtime.c
@@ -1,5 +1,5 @@
/* Convert `time_t' to `struct tm' in UTC.
- Copyright (C) 1991, 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1991, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -19,14 +19,6 @@
#include <time.h>
-/* Defined in localtime.c. */
-extern struct tm _tmbuf;
-
-/* Prototype for the internal function to get information based on TZ. */
-extern struct tm *__tz_convert __P ((const time_t *t, int use_localtime,
- struct tm *tp));
-
-
/* Return the `struct tm' representation of *T in UTC,
using *TP to store the result. */
struct tm *
diff --git a/time/localtime.c b/time/localtime.c
index 3d8d8fbd10..148879274d 100644
--- a/time/localtime.c
+++ b/time/localtime.c
@@ -1,5 +1,5 @@
/* Convert `time_t' to `struct tm' in local time zone.
- Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
+ Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -22,11 +22,6 @@
/* The C Standard says that localtime and gmtime return the same pointer. */
struct tm _tmbuf;
-/* Prototype for the internal function to get information based on TZ. */
-extern struct tm *__tz_convert __P ((const time_t *t, int use_localtime,
- struct tm *tp));
-
-
/* Return the `struct tm' representation of *T in local time,
using *TP to store the result. */
diff --git a/time/offtime.c b/time/offtime.c
index 52e40703c8..f858790141 100644
--- a/time/offtime.c
+++ b/time/offtime.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1993, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1993, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,9 +18,6 @@
#include <time.h>
-/* Defined in mktime.c. */
-extern const unsigned short int __mon_yday[2][13];
-
#define SECS_PER_HOUR (60 * 60)
#define SECS_PER_DAY (SECS_PER_HOUR * 24)
diff --git a/time/tzfile.c b/time/tzfile.c
index 497fe3f006..e723892405 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -44,8 +44,6 @@ struct leap
long int change; /* Seconds of correction to apply. */
};
-extern char * __tzstring (const char *); /* Defined in tzset.c. */
-
static struct ttinfo *find_transition (time_t timer) internal_function;
static void compute_tzname_max (size_t) internal_function;
@@ -530,8 +528,6 @@ static void
internal_function
compute_tzname_max (size_t chars)
{
- extern size_t __tzname_cur_max; /* Defined in tzset.c. */
-
const char *p;
p = zone_names;
diff --git a/time/tzset.c b/time/tzset.c
index 60188c2720..d6d1b2089a 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -25,24 +25,10 @@
#include <string.h>
#include <time.h>
-/* Defined in mktime.c. */
-extern const unsigned short int __mon_yday[2][13];
-
-/* Defined in localtime.c. */
-extern struct tm _tmbuf;
#define NOID
#include <timezone/tzfile.h>
-extern int __use_tzfile;
-extern void __tzfile_read __P ((const char *file));
-extern int __tzfile_compute __P ((time_t timer, int use_localtime,
- long int *leap_correct, int *leap_hit,
- struct tm *tp));
-extern void __tzfile_default __P ((const char *std, const char *dst,
- long int stdoff, long int dstoff));
-extern char *__tzstring __P ((const char *string));
-
char *__tzname[2] = { (char *) "GMT", (char *) "GMT" };
int __daylight = 0;
long int __timezone = 0L;
diff --git a/wctype/wctype.h b/wctype/wctype.h
index 710275888a..c4f4f6ca02 100644
--- a/wctype/wctype.h
+++ b/wctype/wctype.h
@@ -145,6 +145,13 @@ extern int iswupper __P ((wint_t __wc));
in the previous subclause. */
extern int iswxdigit __P ((wint_t __wc));
+/* Test for any wide character that corresponds to a standard blank
+ wide character or a locale-specific set of wide characters for
+ which `iswalnum' is false. */
+# ifdef __USE_GNU
+extern int iswblank __P ((wint_t __wc));
+# endif
+
/*
* Extensible wide-character classification functions: 7.15.2.2.
*/
@@ -280,6 +287,10 @@ extern int __iswupper_l __P ((wint_t __wc, __locale_t __locale));
in the previous subclause. */
extern int __iswxdigit_l __P ((wint_t __wc, __locale_t __locale));
+/* Test for any wide character that corresponds to a standard blank
+ wide character or a locale-specific set of wide characters for
+ which `iswalnum' is false. */
+extern int __iswblank_l __P ((wint_t __wc, __locale_t __locale));
/* Construct value that describes a class of wide characters identified
by the string argument PROPERTY. */