diff options
author | Roland McGrath <roland@gnu.org> | 1996-07-12 02:01:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-07-12 02:01:17 +0000 |
commit | 842907c6f8e6022f443175072e65bc516eb0973b (patch) | |
tree | 626cc5413c07820d66cbdb1ea841f56af09c7346 /intl/explodename.c | |
parent | e6c9a67a0bdb970f3b7f7ced6581b98cfe35797c (diff) | |
download | glibc-842907c6f8e6022f443175072e65bc516eb0973b.zip glibc-842907c6f8e6022f443175072e65bc516eb0973b.tar.gz glibc-842907c6f8e6022f443175072e65bc516eb0973b.tar.bz2 |
* inet/getnetent_r.c: Define NEED_H_ERRNO.cvs/libc-960713cvs/libc-960712
* inet/getnetbynm_r.c: Likewise.
* inet/getnetent.c: Likewise.
* inet/getnetbyad_r.c: Likewise.
* inet/getnetbyad.c: Likewise.
* inet/getnetbynm.c: Likewise.
* sysdeps/generic/pselect.c: Include <sys/time.h>.
* misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
`struct timespec'.
Diffstat (limited to 'intl/explodename.c')
-rw-r--r-- | intl/explodename.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/intl/explodename.c b/intl/explodename.c index 2fd8be0..7a0d015 100644 --- a/intl/explodename.c +++ b/intl/explodename.c @@ -1,7 +1,9 @@ /* Copyright (C) 1995, 1996 Free Software Foundation, Inc. -This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. +This file is part of the GNU C Library. Its master source is NOT part of +the C library, however. The master source lives in /gd/gnu/lib. + 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 @@ -14,14 +16,29 @@ 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. */ +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif #include <stdlib.h> #include <string.h> #include "loadinfo.h" +/* On some strange systems still no definition of NULL is found. Sigh! */ +#ifndef NULL +# if defined __STDC__ && __STDC__ +# define NULL ((void *) 0) +# else +# define NULL 0 +# endif +#endif + +/* @@ end of prolog @@ */ + int _nl_explode_name (name, language, modifier, territory, codeset, normalized_codeset, special, sponsor, revision) @@ -38,7 +55,7 @@ _nl_explode_name (name, language, modifier, territory, codeset, enum { undecided, xpg, cen } syntax; char *cp; int mask; - + *modifier = NULL; *territory = NULL; *codeset = NULL; |