[BACK]Return to zic.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / time

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/time/zic.c between version 1.12 and 1.13

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
Line 469  char * argv[];
Line 470  char * argv[];
         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.

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

CVSweb <webmaster@jp.NetBSD.org>