mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Update.
* string/basename.c [!_LIBC]: Define function as gnu_basename. * posix/getopt.c [!__GNU_LIBRARY__]: Include string.h or strings.h.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
1998-04-28 Ulrich Drepper <drepper@cygnus.com>
|
1998-04-28 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* string/basename.c [!_LIBC]: Define function as gnu_basename.
|
||||||
|
|
||||||
|
* posix/getopt.c [!__GNU_LIBRARY__]: Include string.h or
|
||||||
|
strings.h.
|
||||||
|
|
||||||
* stdlib/grouping.h: Accept ungrouped numbers even if locale
|
* stdlib/grouping.h: Accept ungrouped numbers even if locale
|
||||||
defines grouping.
|
defines grouping.
|
||||||
|
|
||||||
|
@ -198,15 +198,18 @@ static char *posixly_correct;
|
|||||||
# define my_index strchr
|
# define my_index strchr
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
# if HAVE_STRING_H
|
||||||
|
# include <string.h>
|
||||||
|
# else
|
||||||
|
# include <strings.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
/* Avoid depending on library functions or files
|
/* Avoid depending on library functions or files
|
||||||
whose names are inconsistent. */
|
whose names are inconsistent. */
|
||||||
|
|
||||||
#ifndef getenv
|
#ifndef getenv
|
||||||
extern char *getenv ();
|
extern char *getenv ();
|
||||||
#endif
|
#endif
|
||||||
#ifndef strncmp
|
|
||||||
extern int strncmp ();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
my_index (str, chr)
|
my_index (str, chr)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Return the name-within-directory of a file name.
|
/* Return the name-within-directory of a file name.
|
||||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -23,6 +23,13 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifndef _LIBC
|
||||||
|
/* We cannot generally use the name `basename' since XPG defines an unusable
|
||||||
|
variant of the function but we cannot use it. */
|
||||||
|
# define basename gnu_basename
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
basename (filename)
|
basename (filename)
|
||||||
const char *filename;
|
const char *filename;
|
||||||
|
Reference in New Issue
Block a user