1998-05-24  Ulrich Drepper  <drepper@cygnus.com>

	* version.h: Bump VERSION.

	* csu/Makefile (distribute): Add munch-tmpl.c.
This commit is contained in:
Ulrich Drepper 1998-05-24 18:51:11 +00:00
parent 81ec479710
commit 3519948b95
5 changed files with 69 additions and 14 deletions

View File

@ -1,3 +1,9 @@
1998-05-24 Ulrich Drepper <drepper@cygnus.com>
* version.h: Bump VERSION.
* csu/Makefile (distribute): Add munch-tmpl.c.
1998-05-23 Thorsten Kukuk <kukuk@vt.uni-paderborn.de> 1998-05-23 Thorsten Kukuk <kukuk@vt.uni-paderborn.de>
* nis/nis_defaults.c: Fix buffer problems and typos. * nis/nis_defaults.c: Fix buffer problems and typos.

View File

@ -37,7 +37,7 @@ omit-deps = $(patsubst %.o,%,$(start-installed-name) g$(start-installed-name) \
install-lib = $(start-installed-name) g$(start-installed-name) \ install-lib = $(start-installed-name) g$(start-installed-name) \
$(csu-dummies) $(csu-dummies)
distribute = initfini.c gmon-start.c start.c defs.awk munch.awk \ distribute = initfini.c gmon-start.c start.c defs.awk munch.awk \
abi-note.S init.c abi-note.S init.c munch-tmpl.c
generated = version-info.h generated = version-info.h
before-compile = $(objpfx)version-info.h before-compile = $(objpfx)version-info.h

View File

@ -1,4 +1,4 @@
/* Copyright (c) 1997 Free Software Foundation, Inc. /* Copyright (c) 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997. Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
@ -72,7 +72,7 @@ searchowner (char *str)
static u_long static u_long
searchttl (char *str) searchttl (char *str)
{ {
char buf[1024]; char buf[strlen (str) + 1];
char *cptr, *dptr; char *cptr, *dptr;
u_long time; u_long time;
int i; int i;
@ -89,6 +89,7 @@ searchttl (char *str)
return DEFAULT_TTL; return DEFAULT_TTL;
strncpy (buf, dptr, i); strncpy (buf, dptr, i);
buf[i] = '\0';
time = 0; time = 0;
dptr = buf; dptr = buf;
@ -131,7 +132,7 @@ searchttl (char *str)
static u_long static u_long
searchaccess (char *str, u_long access) searchaccess (char *str, u_long access)
{ {
char buf[NIS_MAXNAMELEN]; char buf[strlen (str) + 1];
char *cptr; char *cptr;
u_long result = access; u_long result = access;
int i; int i;
@ -149,9 +150,12 @@ searchaccess (char *str, u_long access)
return 0; return 0;
strncpy (buf, cptr, i); strncpy (buf, cptr, i);
buf[i] = '\0';
n = o = g = w = 0; n = o = g = w = 0;
cptr = buf; cptr = buf;
if (*cptr == ',') /* Fix for stupid Solaris scripts */
++cptr;
while (*cptr != '\0') while (*cptr != '\0')
{ {
switch (*cptr) switch (*cptr)
@ -172,7 +176,7 @@ searchaccess (char *str, u_long access)
o = g = w = 1; o = g = w = 1;
break; break;
case '-': case '-':
cptr++; /* Remove "=" from beginning */ cptr++; /* Remove "-" from beginning */
while (*cptr != '\0' && *cptr != ',') while (*cptr != '\0' && *cptr != ',')
{ {
switch (*cptr) switch (*cptr)
@ -225,7 +229,7 @@ searchaccess (char *str, u_long access)
n = o = g = w = 0; n = o = g = w = 0;
break; break;
case '+': case '+':
cptr++; /* Remove "=" from beginning */ cptr++; /* Remove "+" from beginning */
while (*cptr != '\0' && *cptr != ',') while (*cptr != '\0' && *cptr != ',')
{ {
switch (*cptr) switch (*cptr)
@ -347,6 +351,7 @@ searchaccess (char *str, u_long access)
default: default:
return result = ULONG_MAX; return result = ULONG_MAX;
} }
if (*cptr != '\0')
cptr++; cptr++;
} }
@ -356,7 +361,7 @@ searchaccess (char *str, u_long access)
nis_name nis_name
__nis_default_owner (char *defaults) __nis_default_owner (char *defaults)
{ {
char default_owner[NIS_MAXNAMELEN]; char default_owner[NIS_MAXNAMELEN + 1];
char *cptr, *dptr; char *cptr, *dptr;
strcpy (default_owner, nis_local_principal ()); strcpy (default_owner, nis_local_principal ());
@ -367,6 +372,7 @@ __nis_default_owner (char *defaults)
if (dptr != NULL) if (dptr != NULL)
{ {
char *p = searchowner (defaults); char *p = searchowner (defaults);
if (strlen (p) <= NIS_MAXNAMELEN)
strcpy (default_owner, p); strcpy (default_owner, p);
free (p); free (p);
} }
@ -380,6 +386,7 @@ __nis_default_owner (char *defaults)
if (dptr != NULL) if (dptr != NULL)
{ {
char *p = searchowner (cptr); char *p = searchowner (cptr);
if (strlen (p) <= NIS_MAXNAMELEN)
strcpy (default_owner, p); strcpy (default_owner, p);
free (p); free (p);
} }
@ -392,7 +399,7 @@ __nis_default_owner (char *defaults)
nis_name nis_name
__nis_default_group (char *defaults) __nis_default_group (char *defaults)
{ {
char default_group[NIS_MAXNAMELEN]; char default_group[NIS_MAXNAMELEN + 1];
char *cptr, *dptr; char *cptr, *dptr;
strcpy (default_group, nis_local_group ()); strcpy (default_group, nis_local_group ());
@ -403,6 +410,8 @@ __nis_default_group (char *defaults)
if (dptr != NULL) if (dptr != NULL)
{ {
char *p = searchgroup (defaults); char *p = searchgroup (defaults);
if (strlen (p) <= NIS_MAXNAMELEN)
strcpy (default_group, p); strcpy (default_group, p);
free (p); free (p);
} }
@ -416,6 +425,8 @@ __nis_default_group (char *defaults)
if (dptr != NULL) if (dptr != NULL)
{ {
char *p = searchgroup (cptr); char *p = searchgroup (cptr);
if (strlen (p) <= NIS_MAXNAMELEN)
strcpy (default_group, p); strcpy (default_group, p);
free (p); free (p);
} }

View File

@ -0,0 +1,38 @@
/* Set floating-point environment exception handling.
Copyright (C) 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
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#include <fenv.h>
#include <math.h>
#include <fpu_control.h>
void
fesetexceptflag (const fexcept_t *flagp, int excepts)
{
fexcept_t temp;
/* Get the current environment. */
_FPU_GETCW(temp);
/* Set the desired exception mask. */
temp &= ~((excepts & FE_ALL_EXCEPT) << FE_EXCEPT_SHIFT);
temp |= (*flagp & excepts & FE_ALL_EXCEPT) << FE_EXCEPT_SHIFT;
/* Save state back to the FPU. */
_FPU_SETCW(temp);
}

View File

@ -1,4 +1,4 @@
/* This file just defines the current version number of libc. */ /* This file just defines the current version number of libc. */
#define RELEASE "experimental" #define RELEASE "experimental"
#define VERSION "2.0.93" #define VERSION "2.0.94"