diff options
author | phantom <phantom@FreeBSD.org> | 2000-09-01 12:19:00 +0000 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2000-09-01 12:19:00 +0000 |
commit | 5b3f190e28307c0d57ae5574c15bd27e3ef1a3f1 (patch) | |
tree | db4ff756000c42e2d571ec70331441b246caef6f /lib/libc | |
parent | 76465a7c588cc5b0463cef64a40084d5a9bcc6be (diff) | |
download | FreeBSD-src-5b3f190e28307c0d57ae5574c15bd27e3ef1a3f1.zip FreeBSD-src-5b3f190e28307c0d57ae5574c15bd27e3ef1a3f1.tar.gz |
Set rcsid to correct value
Resort #include files
Remove SYSV compatibility chunks
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/nls/msgcat.c | 30 |
1 files changed, 6 insertions, 24 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c index 56c8804..d9a651f 100644 --- a/lib/libc/nls/msgcat.c +++ b/lib/libc/nls/msgcat.c @@ -33,51 +33,33 @@ up-to-date. Many thanks. ******************************************************************/ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$NetBSD: msgcat.c,v 1.11 1995/02/27 13:06:51 cgd Exp $"; +static char *rcsid = "$FreeBSD$"; #endif /* LIBC_SCCS and not lint */ -/* Edit History - -03/06/91 4 schulert remove working directory from nlspath -01/18/91 2 hamilton #if not rescanned -01/12/91 3 schulert conditionally use prototypes -11/03/90 1 hamilton Alphalpha->Alfalfa & OmegaMail->Poste -10/15/90 2 schulert > #include <unistd.h> if MIPS -08/13/90 1 schulert move from ua to omu -*/ - /* * We need a better way of handling errors than printing text. I need * to add an error handling routine. */ -#include "nl_types.h" -#include "msgcat.h" - #include <sys/types.h> #include <sys/stat.h> +#include <sys/syslimits.h> #include <errno.h> #include <fcntl.h> #include <locale.h> +#include <nl_types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> +#include "msgcat.h" + #ifndef True # define True ~0 # define False 0 #endif -/* take care of sysv diffs */ -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif - -#ifndef FD_CLOEXEC -#define FD_CLOEXEC 1 -#endif - #define NLERR ((nl_catd) -1) static nl_catd loadCat(); @@ -87,7 +69,7 @@ nl_catd catopen( name, type) __const char *name; int type; { - char path[MAXPATHLEN]; + char path[PATH_MAX]; __const char *catpath = NULL; char *nlspath; char *lang; |