SCCS-vsn: usr.bin/cut/cut.c 5.4
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)cut.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)cut.c 5.4 (Berkeley) %G%";
#endif /* not lint */
#include <limits.h>
#endif /* not lint */
#include <limits.h>
int autostart, autostop, maxval;
int autostart, autostop, maxval;
-char positions[_BSD_LINE_MAX + 1];
+char positions[_POSIX2_LINE_MAX + 1];
get_list(list)
char *list;
get_list(list)
char *list;
badlist("illegal list value");
if (!stop || !start)
badlist("values may not include zero");
badlist("illegal list value");
if (!stop || !start)
badlist("values may not include zero");
- if (stop > _BSD_LINE_MAX) {
+ if (stop > _POSIX2_LINE_MAX) {
/* positions used rather than allocate a new buffer */
(void)sprintf(positions, "%d too large (max %d)",
/* positions used rather than allocate a new buffer */
(void)sprintf(positions, "%d too large (max %d)",
+ stop, _POSIX2_LINE_MAX);
badlist(positions);
}
if (maxval < stop)
badlist(positions);
}
if (maxval < stop)
register int ch, field, isdelim;
register char *pos, *p, sep;
int output;
register int ch, field, isdelim;
register char *pos, *p, sep;
int output;
- char lbuf[_BSD_LINE_MAX + 1];
+ char lbuf[_POSIX2_LINE_MAX + 1];
for (sep = dchar, output = 0; fgets(lbuf, sizeof(lbuf), fp);) {
for (isdelim = 0, p = lbuf;; ++p) {
for (sep = dchar, output = 0; fgets(lbuf, sizeof(lbuf), fp);) {
for (isdelim = 0, p = lbuf;; ++p) {