setgid to group "write" so that terminals need not be world writable
[unix-history] / usr / src / usr.bin / ex / ex_argv.h
CommitLineData
edf71f48
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 * @(#)ex_argv.h 7.3 (Berkeley) %G%
7 */
8
ba91b69a
MH
9/*
10 * The current implementation of the argument list is poor,
11 * using an argv even for internally done "next" commands.
12 * It is not hard to see that this is restrictive and a waste of
13 * space. The statically allocated glob structure could be replaced
14 * by a dynamically allocated argument area space.
15 */
cb3ac212
MH
16var char **argv;
17var char **argv0;
18var char *args;
19var char *args0;
20var short argc;
21var short argc0;
22var short morargc; /* Used with "More files to edit..." */
ba91b69a 23
cb3ac212
MH
24var int firstln; /* From +lineno */
25var char *firstpat; /* From +/pat */
ba91b69a
MH
26
27/* Yech... */
28struct glob {
29 short argc; /* Index of current file in argv */
30 short argc0; /* Number of arguments in argv */
31 char *argv[NARGS + 1]; /* WHAT A WASTE! */
32 char argspac[NCARGS + sizeof (int)];
299f2784 33};
cb3ac212 34var struct glob frob;