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.
This commit is contained in:
Ulrich Drepper 1998-12-10 09:47:59 +00:00
parent 8632b24036
commit b77e6cd621
11 changed files with 44 additions and 58 deletions

View File

@ -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

View File

@ -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;

View File

@ -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));

View File

@ -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 *));

View File

@ -19,6 +19,7 @@
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <netdb.h>
#define HOSTIDFILE "/var/adm/hostid"

View File

@ -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 *

View File

@ -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. */

View File

@ -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)

View File

@ -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;

View File

@ -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;

View File

@ -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. */