Changeset 942 in kBuild
- Timestamp:
- May 26, 2007 11:19:22 PM (18 years ago)
- Location:
- trunk/src/gmakenew
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmakenew/Makefile.kmk
r937 r942 50 50 kmkbuiltin/strmode.c \ 51 51 kmkbuiltin/strlcpy.c \ 52 getopt.c \ 53 getopt1.c \ 52 54 electric.c 53 55 … … 65 67 kmkbuiltin/fts.c \ 66 68 glob/glob.c \ 67 glob/fnmatch.c \ 68 getopt.c \ 69 getopt1.c 69 glob/fnmatch.c 70 70 71 71 kmkmissing_SOURCES.win += \ 72 kmkbuiltin/mscfakes.c \ 73 kmkbuiltin/fts.c 72 74 glob/glob.c \ 73 75 glob/fnmatch.c \ 74 getopt.c \75 getopt1.c \76 76 getloadavg.c \ 77 77 w32/subproc/misc.c \ … … 79 79 w32/subproc/w32err.c \ 80 80 w32/compat/dirent.c \ 81 w32/pathstuff.c \ 82 kmkbuiltin/mscfakes.c \ 83 kmkbuiltin/fts.c 81 w32/pathstuff.c 84 82 85 83 # -
trunk/src/gmakenew/kmkbuiltin/cat.c
r813 r942 105 105 optarg = NULL; 106 106 optopt = 0; 107 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)108 optreset = 1;109 optind = 1;110 #else111 107 optind = 0; /* init */ 112 #endif113 108 114 109 #ifdef kmk_builtin_cat /* kmk did this already. */ -
trunk/src/gmakenew/kmkbuiltin/cp.c
r809 r942 139 139 optarg = NULL; 140 140 optopt = 0; 141 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)142 optreset = 1;143 optind = 1;144 #else145 141 optind = 0; /* init */ 146 #endif147 142 148 143 Hflag = Lflag = Pflag = 0; -
trunk/src/gmakenew/kmkbuiltin/install.c
r809 r942 154 154 optarg = NULL; 155 155 optopt = 0; 156 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)157 optreset = 1;158 optind = 1;159 #else160 156 optind = 0; /* init */ 161 #endif162 157 163 158 iflags = 0; -
trunk/src/gmakenew/kmkbuiltin/ln.c
r809 r942 92 92 optarg = NULL; 93 93 optopt = 0; 94 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)95 optreset = 1;96 optind = 1;97 #else98 94 optind = 0; /* init */ 99 #endif100 95 101 96 #if 0 /* kmk: we don't need this. */ -
trunk/src/gmakenew/kmkbuiltin/mkdir.c
r809 r942 82 82 mode = NULL; 83 83 84 /* reinitialize globals */ 85 vflag = 0; 86 87 /* kmk: reset getopt and set progname */ 88 g_progname = argv[0]; 89 opterr = 1; 90 optarg = NULL; 91 optopt = 0; 92 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__) 93 optreset = 1; 94 optind = 1; 95 #else 96 optind = 0; /* init */ 97 #endif 84 /* reinitialize globals */ 85 vflag = 0; 86 87 /* kmk: reset getopt and set progname */ 88 g_progname = argv[0]; 89 opterr = 1; 90 optarg = NULL; 91 optopt = 0; 92 optind = 0; /* init */ 98 93 while ((ch = getopt(argc, argv, "m:pv")) != -1) 99 94 switch(ch) { -
trunk/src/gmakenew/kmkbuiltin/mv.c
r813 r942 132 132 optarg = NULL; 133 133 optopt = 0; 134 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)135 optreset = 1;136 optind = 1;137 #else138 134 optind = 0; /* init */ 139 #endif140 135 141 136 while ((ch = getopt(argc, argv, "finv")) != -1) -
trunk/src/gmakenew/kmkbuiltin/printf.c
r813 r942 146 146 optarg = NULL; 147 147 optopt = 0; 148 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)149 optreset = 1;150 optind = 1;151 #else152 148 optind = 0; /* init */ 153 #endif154 149 155 150 #if !defined(SHELL) && !defined(BUILTIN) && !defined(kmk_builtin_printf) /* kmk did this already. */ -
trunk/src/gmakenew/kmkbuiltin/rm.c
r809 r942 123 123 optarg = NULL; 124 124 optopt = 0; 125 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)126 optreset = 1;127 optind = 1;128 #else129 125 optind = 0; /* init */ 130 #endif131 126 132 127 #if 0 /* kmk: we don't need this */ -
trunk/src/gmakenew/kmkbuiltin/rmdir.c
r813 r942 87 87 optarg = NULL; 88 88 optopt = 0; 89 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)90 optreset = 1;91 optind = 1;92 #else93 89 optind = 0; /* init */ 94 #endif95 90 while ((ch = getopt_long(argc, argv, "pv", long_options, NULL)) != -1) 96 91 switch(ch) {
Note:
See TracChangeset
for help on using the changeset viewer.