version 1.12, 1998/09/10 15:58:40 |
version 1.13, 1998/09/11 10:55:55 |
Line 15 __RCSID("$NetBSD$"); |
|
Line 15 __RCSID("$NetBSD$"); |
|
#include "locale.h" |
#include "locale.h" |
#include "tzfile.h" |
#include "tzfile.h" |
#include "sys/stat.h" /* for umask manifest constants */ |
#include "sys/stat.h" /* for umask manifest constants */ |
|
#include "unistd.h" |
|
|
/* |
/* |
** On some ancient hosts, predicates like `isspace(C)' are defined |
** On some ancient hosts, predicates like `isspace(C)' are defined |
|
|
register int j; |
register int j; |
register int c; |
register int c; |
|
|
#ifdef unix |
#ifdef _POSIX_VERSION |
(void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH)); |
(void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH)); |
#endif /* defined unix */ |
#endif /* defined _POSIX_VERSION */ |
#if HAVE_GETTEXT - 0 |
#if HAVE_GETTEXT - 0 |
(void) setlocale(LC_MESSAGES, ""); |
(void) setlocale(LC_MESSAGES, ""); |
#ifdef TZ_DOMAINDIR |
#ifdef TZ_DOMAINDIR |
Line 2166 char * const argname; |
|
Line 2167 char * const argname; |
|
cp = name = ecpyalloc(argname); |
cp = name = ecpyalloc(argname); |
while ((cp = strchr(cp + 1, '/')) != 0) { |
while ((cp = strchr(cp + 1, '/')) != 0) { |
*cp = '\0'; |
*cp = '\0'; |
#ifndef unix |
#ifndef __NetBSD__ |
/* |
/* |
** DOS drive specifier? |
** DOS drive specifier? |
*/ |
*/ |
Line 2175 char * const argname; |
|
Line 2176 char * const argname; |
|
*cp = '/'; |
*cp = '/'; |
continue; |
continue; |
} |
} |
#endif /* !defined unix */ |
#endif /* !defined __NetBSD__ */ |
if (!itsdir(name)) { |
if (!itsdir(name)) { |
/* |
/* |
** It doesn't seem to exist, so we try to create it. |
** It doesn't seem to exist, so we try to create it. |