BSD_LINE_MAX -> POSIX2_LINE_MAX
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 31 Oct 1990 01:29:52 +0000 (17:29 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Wed, 31 Oct 1990 01:29:52 +0000 (17:29 -0800)
SCCS-vsn: usr.bin/cut/cut.c 5.4

usr/src/usr.bin/cut/cut.c

index 5f7f415..cb17b5b 100644 (file)
@@ -15,7 +15,7 @@ char copyright[] =
 #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>
@@ -88,7 +88,7 @@ main(argc, argv)
 
 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;
@@ -129,10 +129,10 @@ get_list(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, _BSD_LINE_MAX);
+                           stop, _POSIX2_LINE_MAX);
                        badlist(positions);
                }
                if (maxval < stop)
                        badlist(positions);
                }
                if (maxval < stop)
@@ -184,7 +184,7 @@ f_cut(fp, fname)
        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) {