Lines Matching +full:in +full:- +full:and +full:- +full:around
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
31 * University Copyright- Copyright (c) 1982, 1986, 1988
35 * University Acknowledgment- Portions of this document are derived from
36 * software developed by the University of California, Berkeley, and its
61 * head - give the first few lines of a stream or of each of a set of files.
68 int around = 0; in main() local
78 #if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */ in main()
83 /* check for non-standard "-line-count" option */ in main()
85 if (strcmp(argv[i], "--") == 0) in main()
88 if ((argv[i][0] == '-') && isdigit(argv[i][1])) { in main()
102 argc--; in main()
111 if ((strcmp(optarg, "--") == 0) || (optind > argc)) { in main()
113 "%s: Missing -%c argument\n"), argv[0], in main()
120 "%s: Invalid \"-%c %s\" option\n"), in main()
139 fileCount = argc - optind; in main()
142 if ((argv[optind] == NULL) && around) in main()
159 if (around) in main()
176 around++; in main()
200 cnt--; in copyout()
212 cnt -= len; in copyout()
224 (void) printf(gettext("usage: head [-q] [-v] [-n #] [-c #] [-#] " in Usage()