clearly stated in Article 2 of the GPL, when GPL and nonGPL software are
distributed together on the same medium, this aggregation does not cause
the license of either part to apply to the other part.
+
+
+Acknowledgements
+
+This product includes software developed by the University of
+California, Berkeley and its contributors.
+
+This product includes software developed by Softweyr LLC, the
+University of California, Berkeley, and its contributors.
+
args[arg_ptr] = 10 * args[arg_ptr] + line[i++] - '0';
if (!args[arg_ptr]) cuterror(POSITION_ERROR);
arg_ptr++;
+ } else if (line[i] != '-') {
+ cuterror(SYNTAX_ERROR);
}
+
if (line[i] == '-') {
arg_ptr |= 1;
i++;
int argc;
char *argv[];
{
+ char *linearg;
int i = 1;
int numberFilenames = 0;
name = argv[0];
case 'd':
if (mode == OPTIONC || mode == OPTIONB)
warn(DELIMITER_NOT_APPLICABLE, "d");
- delim = argv[i++][0];
+ delim = argv[i - 1][2] ?
+ argv[i - 1][2] : argv[i++][0];
break;
case 'f':
- sprintf(line, "%s", argv[i++]);
+ linearg = argv[i - 1][2] ?
+ (argv[i - 1] + 2) : argv[i++];
+ sprintf(line, "%s", linearg);
if (mode == OPTIONC || mode == OPTIONB)
warn(OVERRIDING_PREVIOUS_MODE, "f");
mode = OPTIONF;
break;
case 'b':
- sprintf(line, "%s", argv[i++]);
+ linearg = argv[i - 1][2] ?
+ (argv[i - 1] + 2) : argv[i++];
+ sprintf(line, "%s", linearg);
if (mode == OPTIONF || mode == OPTIONC)
warn(OVERRIDING_PREVIOUS_MODE, "b");
mode = OPTIONB;
break;
case 'c':
- sprintf(line, "%s", argv[i++]);
+ linearg = argv[i - 1][2] ?
+ (argv[i - 1] + 2) : argv[i++];
+ sprintf(line, "%s", linearg);
if (mode == OPTIONF || mode == OPTIONB)
warn(OVERRIDING_PREVIOUS_MODE, "c");
mode = OPTIONC;
case 'f':
case 'c':
case 'b':
- case 'd': i += 2; break;
+ case 'd': i += argv[i][2] ? 1 : 2; break;
case 'n':
case 'i':
case 's': i++; break;
_PROTOTYPE( char *ctime, (const time_t *_timer) );
_PROTOTYPE( struct tm *gmtime, (const time_t *_timer) );
_PROTOTYPE( struct tm *localtime, (const time_t *_timer) );
+_PROTOTYPE( struct tm *localtime_r, (const time_t *const timep,
+ struct tm *tmp) );
_PROTOTYPE( size_t strftime, (char *_s, size_t _max, const char *_fmt,
const struct tm *_timep) );