Searched defs:* (Results 1 - 25 of 93568) sorted by relevance

1234567891011>>

/netbsd-6-1-5-RELEASE/
H A DMakefile135 _SRC_TOP_OBJ_= macro
158 _SUBDIR= tools lib include gnu external crypto/external bin games macro
176 NOPOSTINSTALL= # defined macro
190 _POSTINSTALL= ${.CURDIR}/usr.sbin/postinstall/postinstall macro
191 _POSTINSTALL_ENV= \\ macro
220 LIBGCC_EXT=4 macro
221 BUILD_CC_LIB_BASEDIR= gnu/lib macro
222 BUILD_CC_LIB_BASETARGET= gnu-lib macro
224 LIBGCC_EXT= macro
225 BUILD_CC_LIB_BASEDIR= external/gpl3/gcc/lib macro
226 BUILD_CC_LIB_BASETARGET= external-gpl3-gcc-lib macro
474 BUILD_CC_LIB= ${BUILD_CC_LIB_BASEDIR}/crtstuff${LIBGCC_EXT} macro
490 COMPAT_SUBDIR_LIST=lib/csu ${BUILD_CC_LIB} lib/libc macro
[all...]
/netbsd-6-1-5-RELEASE/bin/
H A DMakefile4 SUBDIR= cat chio chmod cp csh date dd df domainname echo ed expr hostname \\ macro
[all...]
/netbsd-6-1-5-RELEASE/bin/cat/
H A DMakefile4 PROG= cat macro
[all...]
H A Dcat.c64 int bflag, eflag, fflag, lflag, nflag, sflag, tflag, vflag; variable
65 int rval; variable
66 const char *filename; variable
75 main(int argc, char *argv[]) argument
77 int ch; local
78 struct flock stdout_lock; local
140 cook_args(char **argv) argument
142 FILE *fp; local
168 cook_buf(FILE *fp) argument
170 int ch, gobble, line, prev; local
242 raw_args(char **argv) argument
244 int fd; local
253 struct stat st; local
285 raw_cat(int rfd) argument
287 static char *buf; local
288 static char fb_buf[BUFSIZ]; local
289 static size_t bsize; local
291 ssize_t nr, nw, off; local
292 int wfd; local
296 struct stat sbuf; local
[all...]
/netbsd-6-1-5-RELEASE/bin/chio/
H A DMakefile3 PROG= chio macro
[all...]
H A Dchio.c83 const struct element_type elements[] = { variable in typeref:struct:element_type
92 const struct changer_command commands[] = { variable in typeref:struct:changer_command
126 const struct special_word specials[] = { variable in typeref:struct:special_word
134 static const char *changer_name; variable
135 static int changer_fd; variable
138 main(int argc, char *argv[]) argument
140 int ch, i; local
190 do_move(const char *cname, int argc, char **argv) argument
192 struct changer_move_request cmd; local
193 int val; local
252 do_exchange(const char *cname, int argc, char **argv) argument
254 struct changer_exchange_request cmd; local
255 int val; local
338 do_position(const char *cname, int argc, char **argv) argument
340 struct changer_position_request cmd; local
341 int val; local
393 do_params(const char *cname, int argc, char **argv) argument
395 struct changer_params data; local
410 #define PLURAL macro
421 #undef PLURAL macro
430 do_getpicker(const char *cname, int argc, char **argv) argument
432 int picker; local
452 do_setpicker(const char *cname, int argc, char **argv) argument
454 int picker; local
476 do_status(const char *cname, int argc, char **argv) argument
478 struct changer_element_status_request cmd; local
479 struct changer_params data; local
480 struct changer_element_status *ces; local
481 int i, chet, count, echet, flags, have_ucount, have_unit; local
482 int schet, ucount, unit; local
483 size_t size; local
694 do_ielem(const char *cname, int argc, char **argv) argument
706 do_cdlu(const char *cname, int argc, char **argv) argument
708 static const struct special_word cdlu_subcmds[] = { local
714 struct ioc_load_unload cmd; local
715 int i; local
757 parse_element_type(const char *cp) argument
759 int i; local
770 parse_element_unit(const char *cp) argument
772 char *p; local
773 int i; local
783 parse_special(const char *cp) argument
785 int val; local
796 is_special(const char *cp) argument
798 int i; local
808 bits_to_string(int v, const char *cp) argument
810 static char buf[128]; local
811 const char *np; local
812 char *bp, f; local
813 int first; local
836 cleanup(void) function
844 usage(void) function
846 int i; local
[all...]
H A Ddefs.h34 #define _DEFS_H_ macro
36 struct element_type { struct
37 const char *et_name; /* name; i.e. "picker, "slot", etc. */ member in struct:element_type
38 int et_type; /* type number */ member in struct:element_type
41 struct changer_command { struct
42 const char *cc_name; /* command name */ member in struct:changer_command
43 const char *cc_args; /* usage string */ member in struct:changer_command
45 int (*cc_handler)(const char *, int, char **); member in struct:changer_command
48 struct special_word { struct
49 const char *sw_name; /* special word */ member in struct:special_word
50 int sw_value; /* token value */ member in struct:special_word
54 #define SW_INVERT macro
55 #define SW_INVERT1 macro
56 #define SW_INVERT2 macro
57 #define SW_VOLTAGS macro
60 #define CHANGER_ENV_VAR macro
[all...]
H A Dpathnames.h34 #define _PATHNAMES_H_ macro
36 #define _PATH_CH macro
[all...]
/netbsd-6-1-5-RELEASE/bin/chmod/
H A DMakefile4 PROG= chmod macro
[all...]
H A Dchmod.c64 main(int argc, char *argv[]) argument
66 FTS *ftsp; local
67 FTSENT *p; local
68 mode_t *set; local
69 int Hflag, Lflag, Rflag, ch, fflag, fts_options, hflag, rval; local
70 char *mode; local
206 usage(void) function
[all...]
/netbsd-6-1-5-RELEASE/bin/cp/
H A DMakefile4 PROG= cp macro
5 SRCS= cp.c utils.c macro
[all...]
H A Dcp.c81 #define STRIP_TRAILING_SLASH macro
86 static char empty[] = ""; variable
87 PATH_T to = { .p_end = to.p_path, .target_end = empty }; variable
89 uid_t myuid; variable
90 int Hflag, Lflag, Rflag, Pflag, fflag, iflag, lflag, pflag, rflag, vflag, Nflag; variable
91 mode_t myumask; variable
92 sig_atomic_t pinfo; variable
94 enum op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE }; enumerator in enum:op
99 progress(int sig __unused) argument
106 main(int argc, char *argv[]) argument
108 struct stat to_stat, tmp_stat; local
109 enum op type; local
110 int ch, fts_options, r, have_trailing_slash; local
111 char *target, **src; local
294 size_t len = strlen(*src); local
303 static int dnestack[MAXPATHLEN]; /* unlikely we'll have more nested dirs */ variable
304 static ssize_t dnesp; variable
306 pushdne(int dne) argument
314 popdne(void) function
316 int rv; local
324 copy(char *argv[], enum op type, int fts_options) argument
326 struct stat to_stat; local
327 FTS *ftsp; local
328 FTSENT *curr; local
329 int base, dne, sval; local
330 int this_failed, any_failed; local
331 size_t nlen; local
332 char *p, *target_mid; local
[all...]
H A Dextern.h35 #define _EXTERN_H_ macro
38 char *p_end; /* pointer to NULL at end of path */ member in struct:__anon1
39 char *target_end; /* pointer to end of target base */ member in struct:__anon1
40 char p_path[MAXPATHLEN + 1]; /* pointer to the start of a path */ member in struct:__anon1
41 } PATH_T; typedef in typeref:struct:__anon1
[all...]
H A Dutils.c59 #define MMAP_MAX_SIZE macro
60 #define MMAP_MAX_WRITE macro
63 set_utimes(const char *file, struct stat *fs) argument
65 static struct timeval tv[2]; local
77 struct finfo { struct
78 const char *from; member in struct:finfo
79 const char *to; member in struct:finfo
80 size_t size; member in struct:finfo
84 progress(const struct finfo *fi, size_t written) argument
86 int pcent = (int)((100.0 * written) / fi->size); local
94 copy_file(FTSENT *entp, int dne) argument
96 static char buf[MAXBSIZE]; local
97 struct stat to_stat, *fs; local
98 int ch, checkch, from_fd, rcount, rval, to_fd, tolnk, wcount; local
99 char *p; local
100 size_t ptotal = 0; local
120 struct stat sb; local
121 int sval; local
184 struct finfo fi; local
195 bool use_read; local
199 size_t fsize = (size_t)fs->st_size; local
203 size_t remainder; local
208 MADV_SEQUENTIAL); local
218 ssize_t chunk; local
276 #define RETAINBITS macro
301 copy_link(FTSENT *p, int exists) argument
303 int len; local
304 char target[MAXPATHLEN]; local
323 copy_fifo(struct stat *from_stat, int exists) argument
337 copy_special(struct stat *from_stat, int exists) argument
361 setfile(struct stat *fs, int fd) argument
363 int rval, islink; local
389 unsigned long fflags = fs->st_flags; local
413 usage(void) function
[all...]
/netbsd-6-1-5-RELEASE/bin/csh/
H A DMakefile11 PROG= csh macro
12 DFLAGS=-DBUILTIN -DFILEC -DNLS -DSHORT_STRINGS macro
14 SRCS= alloc.c char.c const.c csh.c dir.c dol.c err.c exec.c exp.c file.c \\ macro
19 MLINKS= csh.1 limit.1 csh.1 alias.1 csh.1 bg.1 csh.1 dirs.1 csh.1 fg.1 \\ macro
55 COPTS.err.c = -Wno-format-nonliteral macro
56 COPTS.printf.c = -Wno-format-nonliteral macro
57 COPTS.proc.c = -Wno-format-nonliteral macro
[all...]
H A Dalloc.c50 char *memtop = NULL; /* PWP: top of current memory */ variable
51 char *membot = NULL; /* PWP: bottom of allocatable memory */ variable
54 Malloc(size_t n) argument
56 ptr_t ptr; local
68 Realloc(ptr_t p, size_t n) argument
70 ptr_t ptr; local
82 Calloc(size_t s, size_t n) argument
84 ptr_t ptr; local
96 Free(ptr_t p) argument
111 showall(Char **v, struct command *t) argument
[all...]
H A Dchar.c44 unsigned short _cmap[256] = { variable
246 unsigned char _cmap_lower[256] = { variable
281 unsigned char _cmap_upper[256] = { variable
[all...]
H A Dchar.h35 #define _CHAR_H_ macro
46 #define _QF macro
47 #define _QB macro
48 #define _SP macro
49 #define _NL macro
50 #define _META macro
51 #define _GLOB macro
52 #define _ESC macro
53 #define _DOL macro
54 #define _DIG macro
55 #define _LET macro
56 #define _UP macro
57 #define _LOW macro
58 #define _XD macro
59 #define _CMD macro
60 #define _CTR macro
61 #define _PUN macro
63 #define cmap macro
66 #define isglob macro
67 #define isspc macro
68 #define ismeta macro
69 #define iscmdmeta macro
70 #define letter macro
72 #define alnum macro
75 #define Isspace macro
76 #define Isdigit macro
77 #define Isalpha macro
78 #define Islower macro
79 #define Isupper macro
80 #define Tolower macro
81 #define Toupper macro
82 #define Isxdigit macro
83 #define Isalnum macro
84 #define Iscntrl macro
85 #define Isprint macro
87 #define Isspace macro
88 #define Isdigit macro
89 #define Isalpha macro
90 #define Islower macro
91 #define Isupper macro
92 #define Tolower macro
93 #define Toupper macro
94 #define Isxdigit macro
95 #define Isalnum macro
96 #define Iscntrl macro
97 #define Isprint macro
[all...]
H A Dconst.c47 Char STR0[] = { '0', '\\0' }; variable
48 Char STR1[] = { '1', '\\0' }; variable
49 Char STRHOME[] = { 'H', 'O', 'M', 'E', '\\0' }; variable
50 Char STRLANG[] = { 'L', 'A', 'N', 'G', '\\0' }; variable
51 Char STRLC_CTYPE[] = { 'L', 'C', '_', 'C', 'T', 'Y', 'P', 'E' ,'\\0' }; variable
52 Char STRLOGNAME[] = { 'L', 'O', 'G', 'N', 'A', 'M', 'E', '\\0' }; variable
53 Char STRLbrace[] = { '{', '\\0' }; variable
54 Char STRLparen[] = { '(', '\\0' }; variable
55 Char STRLparensp[] = { '(', ' ', '\\0' }; variable
56 Char STRNULL[] = { '\\0' }; variable
57 Char STRPATH[] = { 'P', 'A', 'T', 'H', '\\0' }; variable
58 Char STRPWD[] = { 'P', 'W', 'D', '\\0' }; variable
59 Char STRQNULL[] = { '\\0' | QUOTE, '\\0' }; variable
60 Char STRRbrace[] = { '}', '\\0' }; variable
61 Char STRspRparen[] = { ' ', ')', '\\0' }; variable
62 Char STRTERM[] = { 'T', 'E', 'R', 'M', '\\0' }; variable
63 Char STRUSER[] = { 'U', 'S', 'E', 'R', '\\0' }; variable
64 Char STRalias[] = { 'a', 'l', 'i', 'a', 's', '\\0' }; variable
65 Char STRand[] = { '&', '\\0' }; variable
66 Char STRand2[] = { '&', '&', '\\0' }; variable
67 Char STRaout[] = { 'a', '.', 'o', 'u', 't', '\\0' }; variable
68 Char STRargv[] = { 'a', 'r', 'g', 'v', '\\0' }; variable
69 Char STRbang[] = { '!', '\\0' }; variable
70 Char STRcaret[] = { '^', '\\0' }; variable
71 Char STRcdpath[] = { 'c', 'd', 'p', 'a', 't', 'h', '\\0' }; variable
72 Char STRcent2[] = { '%', '%', '\\0' }; variable
73 Char STRcenthash[] = { '%', '#', '\\0' }; variable
74 Char STRcentplus[] = { '%', '+', '\\0' }; variable
75 Char STRcentminus[] = { '%', '-', '\\0' }; variable
76 Char STRchase_symlinks[] = { 'c', 'h', 'a', 's', 'e', '_', 's', 'y', 'm', 'l', variable
78 Char STRchild[] = { 'c', 'h', 'i', 'l', 'd', '\\0' }; variable
79 Char STRcolon[] = { ':', '\\0' }; variable
80 Char STRcwd[] = { 'c', 'w', 'd', '\\0' }; variable
81 Char STRdefault[] = { 'd', 'e', 'f', 'a', 'u', 'l', 't', '\\0' }; variable
82 Char STRdot[] = { '.', '\\0' }; variable
83 Char STRdotdotsl[] = { '.', '.', '/', '\\0' }; variable
84 Char STRdotsl[] = { '.', '/', '\\0' }; variable
85 Char STRecho[] = { 'e', 'c', 'h', 'o', '\\0' }; variable
86 Char STRequal[] = { '=', '\\0' }; variable
87 Char STRfakecom[] = { '{', ' ', '.', '.', '.', ' ', '}', '\\0' }; variable
88 Char STRfakecom1[] = { '`', ' ', '.', '.', '.', ' ', '`', '\\0' }; variable
89 Char STRfignore[] = { 'f', 'i', 'g', 'n', 'o', 'r', 'e', '\\0' }; variable
91 Char STRfilec[] = { 'f', 'i', 'l', 'e', 'c', '\\0' }; variable
93 Char STRhistchars[] = { 'h', 'i', 's', 't', 'c', 'h', 'a', 'r', 's', '\\0' }; variable
94 Char STRtildothist[] = { '~', '/', '.', 'h', 'i', 's', 't', 'o', 'r', variable
96 Char STRhistfile[] = { 'h', 'i', 's', 't', 'f', 'i', 'l', 'e', '\\0' }; variable
97 Char STRhistory[] = { 'h', 'i', 's', 't', 'o', 'r', 'y', '\\0' }; variable
98 Char STRhome[] = { 'h', 'o', 'm', 'e', '\\0' }; variable
99 Char STRignore_symlinks[] = { 'i', 'g', 'n', 'o', 'r', 'e', '_', 's', 'y', 'm', variable
101 Char STRignoreeof[] = { 'i', 'g', 'n', 'o', 'r', 'e', 'e', 'o', 'f', '\\0' }; variable
102 Char STRjobs[] = { 'j', 'o', 'b', 's', '\\0' }; variable
103 Char STRlistjobs[] = { 'l', 'i', 's', 't', 'j', 'o', 'b', 's', '\\0' }; variable
104 Char STRlogout[] = { 'l', 'o', 'g', 'o', 'u', 't', '\\0' }; variable
105 Char STRlong[] = { 'l', 'o', 'n', 'g', '\\0' }; variable
106 Char STRmail[] = { 'm', 'a', 'i', 'l', '\\0' }; variable
107 Char STRmh[] = { '-', 'h', '\\0' }; variable
108 Char STRminus[] = { '-', '\\0' }; variable
109 Char STRml[] = { '-', 'l', '\\0' }; variable
110 Char STRmn[] = { '-', 'n', '\\0' }; variable
111 Char STRmquestion[] = { '?' | QUOTE, ' ', '\\0' }; variable
112 Char STRnice[] = { 'n', 'i', 'c', 'e', '\\0' }; variable
113 Char STRnoambiguous[] = { 'n', 'o', 'a', 'm', 'b', 'i', 'g', 'u', 'o', 'u', variable
115 Char STRnobeep[] = { 'n', 'o', 'b', 'e', 'e', 'p', '\\0' }; variable
116 Char STRnoclobber[] = { 'n', 'o', 'c', 'l', 'o', 'b', 'b', 'e', 'r', '\\0' }; variable
117 Char STRnoglob[] = { 'n', 'o', 'g', 'l', 'o', 'b', '\\0' }; variable
118 Char STRnohup[] = { 'n', 'o', 'h', 'u', 'p', '\\0' }; variable
119 Char STRnonomatch[] = { 'n', 'o', 'n', 'o', 'm', 'a', 't', 'c', 'h', '\\0' }; variable
120 Char STRnormal[] = { 'n', 'o', 'r', 'm', 'a', 'l', '\\0' }; variable
121 Char STRnotify[] = { 'n', 'o', 't', 'i', 'f', 'y', '\\0' }; variable
122 Char STRor[] = { '|', '\\0' }; variable
123 Char STRor2[] = { '|', '|', '\\0' }; variable
124 Char STRpath[] = { 'p', 'a', 't', 'h', '\\0' }; variable
125 Char STRprintexitvalue[] = { 'p', 'r', 'i', 'n', 't', 'e', 'x', 'i', 't', 'v', variable
127 Char STRprompt[] = { 'p', 'r', 'o', 'm', 'p', 't', '\\0' }; variable
128 Char STRprompt2[] = { 'p', 'r', 'o', 'm', 'p', 't', '2', '\\0' }; variable
129 Char STRpushdsilent[] = { 'p', 'u', 's', 'h', 'd', 's', 'i', 'l', 'e', 'n', variable
131 Char STRret[] = { '\\n', '\\0' }; variable
132 Char STRsavehist[] = { 's', 'a', 'v', 'e', 'h', 'i', 's', 't', '\\0' }; variable
133 Char STRsemisp[] = { ';', ' ', '\\0' }; variable
134 Char STRshell[] = { 's', 'h', 'e', 'l', 'l', '\\0' }; variable
135 Char STRslash[] = { '/', '\\0' }; variable
136 Char STRsldotcshrc[] = { '/', '.', 'c', 's', 'h', 'r', 'c', '\\0' }; variable
137 Char STRsldotlogin[] = { '/', '.', 'l', 'o', 'g', 'i', 'n', '\\0' }; variable
138 Char STRsldthist[] = { '/', '.', 'h', 'i', 's', 't', 'o', 'r', 'y', '\\0' }; variable
139 Char STRsldtlogout[] = { '/', '.', 'l', 'o', 'g', 'o', 'u', 't', '\\0' }; variable
140 Char STRsource[] = { 's', 'o', 'u', 'r', 'c', 'e', '\\0' }; variable
141 Char STRsp3dots[] = { ' ', '.', '.', '.', '\\0' }; variable
142 Char STRspLarrow2sp[] = { ' ', '<', '<', ' ', '\\0' }; variable
143 Char STRspLarrowsp[] = { ' ', '<', ' ', '\\0' }; variable
144 Char STRspRarrow[] = { ' ', '>', '\\0' }; variable
145 Char STRspRarrow2[] = { ' ', '>', '>', '\\0' }; variable
146 Char STRRparen[] = { ')', '\\0' }; variable
147 Char STRspace[] = { ' ', '\\0' }; variable
148 Char STRspand2sp[] = { ' ', '&', '&', ' ', '\\0' }; variable
149 Char STRspor2sp[] = { ' ', '|', '|', ' ', '\\0' }; variable
150 Char STRsporsp[] = { ' ', '|', ' ', '\\0' }; variable
151 Char STRstar[] = { '*', '\\0' }; variable
152 Char STRstatus[] = { 's', 't', 'a', 't', 'u', 's', '\\0' }; variable
153 Char STRsymcent[] = { '%', ' ', '\\0' }; variable
154 Char STRsymhash[] = { '#', ' ', '\\0' }; variable
155 Char STRterm[] = { 't', 'e', 'r', 'm', '\\0' }; variable
156 Char STRthen[] = { 't', 'h', 'e', 'n', '\\0' }; variable
157 Char STRtilde[] = { '~', '\\0' }; variable
158 Char STRtime[] = { 't', 'i', 'm', 'e', '\\0' }; variable
159 Char STRtmpsh[] = { '/', 't', 'm', 'p', '/', 's', 'h', '\\0' }; variable
160 Char STRunalias[] = { 'u', 'n', 'a', 'l', 'i', 'a', 's', '\\0' }; variable
161 Char STRuser[] = { 'u', 's', 'e', 'r', '\\0' }; variable
162 Char STRverbose[] = { 'v', 'e', 'r', 'b', 'o', 's', 'e', '\\0' }; variable
163 Char STRwordchars[] = { 'w', 'o', 'r', 'd', 'c', 'h', 'a', 'r', 's', '\\0' }; variable
[all...]
H A Dcsh.c80 Char *dumphist[] = {STRhistory, STRmh, 0, 0}; variable
81 Char *loadhist[] = {STRsource, STRmh, STRtildothist, 0}; variable
83 int nofile = 0; variable
84 int batch = 0; variable
85 int enterhist = 0; variable
86 int fast = 0; variable
87 int mflag = 0; variable
88 int nexececho = 0; variable
89 int nverbose = 0; variable
90 int prompt = 1; variable
91 int quitit = 0; variable
92 int reenter = 0; variable
112 main(int argc, char *argv[]) argument
114 struct sigaction oact; local
115 Char *cp; local
116 char *tcp, **tempv; local
117 const char *ecp; local
118 sigset_t nsigset; local
119 int f; local
181 int k; local
466 sig_t old = signal(SIGTTIN, SIG_DFL); local
488 (void)ioctl(dcopy(f, FSHTTY), FIOCLEX, NULL); local
511 sig_t oparintr; local
512 sigset_t osigset; local
513 int osetintr; local
536 (void)srccat(value(STRhome), STRsldotcshrc); local
547 (void)srccat(value(STRhome), STRsldotlogin); local
586 untty(void) function
595 importpath(Char *cp) argument
597 Char *dp, **pv; local
598 int c, i; local
633 srccat(Char *cp, Char *dp) argument
635 Char *ep; local
636 char *ptr; local
648 srcfile(const char *f, int onlyown, int flag) argument
650 int unit; local
665 int insource; variable
668 srcunit(int unit, int onlyown, int hflg) argument
672 struct whyle *oldwhyl; local
673 struct Bin saveB; local
674 sigset_t nsigset, osigset; local
675 jmp_buf oldexit; local
676 Char *oarginp, *oevalp, **oevalvec, *ogointr; local
677 char OHIST; local
678 int oSHIN, oinsource, oldintty, oonelflg; local
679 int oenterhist, otell; local
681 int my_reenter; local
701 struct stat stb; local
753 int i; local
764 (void)close(SHIN), SHIN = oSHIN; local
784 rechist(void) function
786 Char buf[BUFSIZE], hbuf[BUFSIZE], *hfile; local
787 int fp, ftmp, oldidfds; local
788 struct varent *shist; local
828 goodbye(void) function
843 (void)srccat(value(STRhome), STRsldtlogout); local
850 exitstat(void) function
852 Char *s; local
871 phup(int sig) argument
880 struct process *pp, *np; local
909 Char *jobargv[2] = {STRjobs, 0}; variable
920 pintr(int notused) argument
927 pintr1(int wantnl) argument
929 Char **v; local
930 sigset_t nsigset, osigset; local
986 static struct command *savet = NULL; variable in typeref:struct:command
989 process(int catch) argument
991 struct command *t; local
992 jmp_buf osetexit; local
993 sigset_t nsigset; local
1019 freesyn(savet), savet = NULL; local
1069 int odidfds = didfds; local
1129 dosource(Char **v, struct command *t) argument
1131 Char buf[BUFSIZE], *f; local
1132 int hflg; local
1159 mailchk(void) function
1161 struct stat stb; local
1162 struct varent *v; local
1163 Char **vp; local
1164 time_t t; local
1165 int cnt, intvl; local
1166 int new; local
1203 gethdir(Char *home) argument
1205 struct passwd *pw; local
1206 Char *h; local
1233 #define DESC macro
1236 readf(void *oreo, char *buf, int siz) argument
1243 writef(void *oreo, const char *buf, int siz) argument
1249 seekf(void *oreo, off_t off, int whence) argument
1256 closef(void *oreo) argument
1266 vis_fputc(int ch, FILE *fp) argument
1268 char uenc[5]; /* 4 + NULL */ local
1285 initdesc(void) function
1298 done(int i) argument
1310 defaultpath(void) function
1312 struct stat stb; local
1313 Char **blk, **blkp; local
1314 char *ptr; local
1318 #define DIRAPPEND macro
1327 #undef DIRAPPEND macro
1340 printprompt(void) function
1342 Char *cp; local
[all...]
H A Dcsh.h35 #define _CSH_H_ macro
44 #define BUFSIZE macro
47 #define FORKSLEEP macro
48 #define MAILINTVL macro
55 #define FSHTTY macro
56 #define FSHIN macro
57 #define FSHOUT macro
58 #define FSHERR macro
59 #define FOLDSTD macro
62 #define xexit macro
66 typedef short Char; typedef
68 #define SAVE macro
70 typedef char Char; typedef
72 #define SAVE macro
79 #define UNREGISTER macro
81 typedef void *ioctl_t; /* Third arg of ioctl */ typedef
83 typedef void *ptr_t; typedef
89 #define xmalloc macro
90 #define xrealloc macro
91 #define xcalloc macro
92 #define xfree macro
95 FILE *cshin, *cshout, *csherr; variable
97 #define isdir macro
99 #define eq macro
102 #define G_ERROR macro
103 #define G_IGNORE macro
104 #define G_APPEND macro
109 int child; /* Child shell ... errors cause exit */ variable
110 int chkstop; /* Warned of stopped jobs... allow exit */ variable
111 int didfds; /* Have setup i/o fd's for child */ variable
112 int doneinp; /* EOF indicator after reset from readc */ variable
113 int exiterr; /* Exit if error or non-zero exit status */ variable
114 int haderr; /* Reset was because of an error */ variable
115 int havhash; /* path hashing is available */ variable
116 int intact; /* We are interactive... therefore prompt */ variable
117 int intty; /* Input is a tty */ variable
118 int justpr; /* Just print because of :p hist mod */ variable
119 int loginsh; /* We are a loginsh -> .login/.logout */ variable
120 int neednote; /* Need to pnotify() */ variable
121 int noexec; /* Don't execute, just syntax check */ variable
122 int pjobs; /* want to print jobs if interrupted */ variable
123 int setintr; /* Set interrupts on/off -> Wait intr... */ variable
124 int timflg; /* Time the next waited for command */ variable
133 Char *arginp; /* Argument input for sh -c and internal `xx` */ variable
134 Char *ffile; /* Name of shell file for $0 */ variable
135 int onelflg; /* 2 -> need line for -t, 1 -> exit on read */ variable
138 Char *shtemp; /* Temp name for << shell files in /tmp */ variable
144 struct timespec time0; /* Time at which the shell started */ variable in typeref:struct:timespec
145 struct rusage ru0; variable in typeref:struct:rusage
150 time_t chktim; /* Time mail last checked */ variable
151 Char *doldol; /* Character pid for $$ */ variable
152 int backpid; /* Pid of the last background process */ variable
153 int egid, gid; /* Invokers gid */ variable
154 int euid, uid; /* Invokers uid */ variable
155 int shpgrp; /* Pgrp of shell */ variable
156 int tpgrp; /* Terminal process group */ variable
159 int opgrp; /* Initial pgrp and tty pgrp */ variable
169 int SHIN; /* Current shell input (script) */ variable
170 int SHOUT; /* Shell output */ variable
171 int SHERR; /* Diagnostic output... shell errs go here */ variable
172 int OLDSTD; /* Old standard input (def for cmds) */ variable
183 jmp_buf reslab; variable
185 #define setexit macro
186 #define reset macro
188 #define getexit macro
189 #define resexit macro
191 Char *gointr; /* Label for an onintr transfer */ variable
194 sig_t parintr; /* Parents interrupt catch */ variable
195 sig_t parterm; /* Parents terminate catch */ variable
204 #define META macro
205 #define ASCII macro
207 #define CHAR macro
208 #define QUOTE macro
209 #define TRIM macro
211 #define CHAR macro
212 #define QUOTE macro
213 #define TRIM macro
216 int AsciiOnly; /* If set only 7 bits is expected in characters */ variable
225 struct Bin { struct
226 off_t Bfseekp; /* Seek pointer */ member in struct:Bin
227 off_t Bfbobp; /* Seekp of beginning of buffers */ member in struct:Bin
228 off_t Bfeobp; /* Seekp of end of buffers */ member in struct:Bin
229 int Bfblocks; /* Number of buffer blocks */ member in struct:Bin
230 Char **Bfbuf; /* The array of buffer blocks */ member in struct:Bin
231 } B; variable in typeref:struct:Bin
236 struct Ain { struct
237 int type; member in struct:Ain
238 #define I_SEEK macro
239 #define A_SEEK macro
240 #define F_SEEK macro
241 #define E_SEEK macro
243 off_t _f_seek; member in union:Ain::__anon2
244 Char* _c_seek; member in union:Ain::__anon2
245 } fc; member in struct:Ain
246 #define f_seek macro
247 #define c_seek macro
248 Char **a_seek; member in struct:Ain
251 #define SEEKEQ macro
255 #define fseekp macro
256 #define fbobp macro
257 #define feobp macro
258 #define fblocks macro
259 #define fbuf macro
266 struct Ain lineloc; variable in typeref:struct:Ain
268 int cantell; /* Is current source tellable ? */ variable
274 struct wordent { struct
275 Char *word; member in struct:wordent
276 struct wordent *prev; member in struct:wordent
277 struct wordent *next; member in struct:wordent
289 #define DODOL macro
290 #define DOEXCL macro
291 #define DOALL macro
300 Char *lap; variable
309 struct command { struct
310 short t_dtyp; /* Type of node */ member in struct:command
311 #define NODE_COMMAND macro
312 #define NODE_PAREN macro
313 #define NODE_PIPE macro
314 #define NODE_LIST macro
315 #define NODE_OR macro
316 #define NODE_AND macro
317 short t_dflg; /* Flags, e.g. F_AMPERSAND|... */ member in struct:command
318 #define F_SAVE macro
320 #define F_AMPERSAND macro
321 #define F_APPEND macro
322 #define F_PIPEIN macro
323 #define F_PIPEOUT macro
324 #define F_NOFORK macro
325 #define F_NOINTERRUPT macro
327 #define F_STDERR macro
328 #define F_OVERWRITE macro
329 #define F_READ macro
330 #define F_REPEAT macro
331 #define F_NICE macro
332 #define F_NOHUP macro
333 #define F_TIME macro
335 Char *T_dlef; /* Input redirect word */ member in union:command::__anon3
336 struct command *T_dcar; /* Left part of list/pipe */ member in union:command::__anon3
337 } L; member in struct:command
339 Char *T_drit; /* Output redirect word */ member in union:command::__anon4
340 struct command *T_dcdr; /* Right part of list/pipe */ member in union:command::__anon4
341 } R; member in struct:command
342 #define t_dlef macro
343 #define t_dcar macro
344 #define t_drit macro
345 #define t_dcdr macro
346 Char **t_dcom; /* Command/argument vector */ member in struct:command
347 struct command *t_dspr; /* Pointer to ()'d subtree */ member in struct:command
348 int t_nice; member in struct:command
357 extern struct biltins { struct
358 const char *bname; member in struct:biltins
359 void (*bfunct)(Char **, struct command *); member in struct:biltins
360 short minargs, maxargs; member in struct:biltins
366 extern struct srch { struct
367 const char *s_name; member in struct:srch
368 short s_value; member in struct:srch
374 #define T_BREAK macro
375 #define T_BRKSW macro
376 #define T_CASE macro
377 #define T_DEFAULT macro
378 #define T_ELSE macro
379 #define T_END macro
380 #define T_ENDIF macro
381 #define T_ENDSW macro
382 #define T_EXIT macro
383 #define T_FOREACH macro
384 #define T_GOTO macro
385 #define T_IF macro
386 #define T_LABEL macro
387 #define T_LET macro
388 #define T_SET macro
389 #define T_SWITCH macro
390 #define T_TEST macro
391 #define T_THEN macro
392 #define T_WHILE macro
399 struct whyle { struct
400 struct Ain w_start; /* Point to restart loop */ member in struct:whyle
401 struct Ain w_end; /* End of loop (0 if unknown) */ member in struct:whyle
402 Char **w_fe, **w_fe0; /* Current/initial wordlist for fe */ member in struct:whyle
403 Char *w_fename; /* Name for fe */ member in struct:whyle
404 struct whyle *w_next; /* Next (more outer) loop */ member in struct:whyle
405 } *whyles; variable in typeref:struct:whyle
412 struct varent { struct
413 Char **vec; /* Array of words which is the value */ member in struct:varent
414 Char *v_name; /* Name of variable/alias */ member in struct:varent
415 struct varent *v_link[3]; /* The links, see below */ member in struct:varent
416 int v_bal; /* Balance factor */ member in struct:varent
417 } shvhed, aliases; variable in typeref:struct:varent
419 #define v_left macro
420 #define v_right macro
421 #define v_parent macro
423 #define adrof macro
424 #define value macro
430 struct wordent *alhistp; /* Argument list (first) */ variable in typeref:struct:wordent
431 struct wordent *alhistt; /* Node after last in arg list */ variable in typeref:struct:wordent
437 int gflag; /* After tglob -> is globbing needed? */ variable
439 #define MAXVARLEN macro
452 long pnleft; /* Number of chars left in pargs */ variable
453 Char *pargs; /* Pointer to start current word */ variable
454 Char *pargcp; /* Current index into pargs */ variable
467 struct Hist { struct
468 struct wordent Hlex; member in struct:Hist
469 int Hnum; member in struct:Hist
470 int Href; member in struct:Hist
471 struct Hist *Hnext; member in struct:Hist
472 } Histlist; variable in typeref:struct:Hist
474 struct wordent paraml; /* Current lexical word list */ variable in typeref:struct:wordent
475 int eventno; /* Next events number */ variable
476 int lastev; /* Last event reference (default) */ variable
478 Char HIST; /* history invocation character */ variable
479 Char HISTSUB; /* auto-substitute character */ variable
485 #define Strchr macro
486 #define Strrchr macro
487 #define Strcat macro
488 #define Strncat macro
489 #define Strcpy macro
490 #define Strncpy macro
491 #define Strlen macro
492 #define Strcmp macro
493 #define Strncmp macro
495 #define Strspl macro
496 #define Strsave macro
497 #define Strend macro
498 #define Strstr macro
500 #define str2short macro
501 #define blk2short macro
502 #define short2blk macro
503 #define short2str macro
505 #define Strchr macro
506 #define Strrchr macro
507 #define Strcat macro
508 #define Strncat macro
509 #define Strcpy macro
510 #define Strncpy macro
511 #define Strlen macro
512 #define Strcmp macro
513 #define Strncmp macro
515 #define Strspl macro
516 #define Strsave macro
517 #define Strend macro
518 #define Strstr macro
524 const char *bname; variable
526 #define setname macro
528 Char *Vsav; variable
529 Char *Vdp; variable
530 Char *Vexpath; variable
531 char **Vt; variable
533 Char **evalvec; variable
534 Char *evalp; variable
539 Char *word_chars; variable
541 #define WORD_CHARS macro
543 Char *STR_SHELLPATH; variable
547 Char *STR_BSHELL; variable
549 Char *STR_WORD_CHARS; variable
550 Char **STR_environ; variable
[all...]
H A Ddir.c64 struct directory dhead; /* "head" of loop */ variable in typeref:struct:directory
65 int printd; /* force name to be printed */ variable
67 static int dirflag = 0; variable
73 dinit(Char *hp) argument
75 static const char emsg[] = "csh: Trying to start from \\"%s\\"\\n"; local
76 char path[MAXPATHLEN]; local
77 struct directory *dp; local
78 const char *ecp; local
79 Char *cp; local
105 struct stat swd, shp; local
115 const char *cwd; local
139 dset(Char *dp) argument
141 Char **vec; local
155 #define DIR_LONG macro
156 #define DIR_VERT macro
157 #define DIR_LINE macro
160 skipargs(Char ***v, const char *str) argument
162 Char **n, *s; local
190 dodirs(Char **v, struct command *t) argument
200 printdirs(void) function
202 struct directory *dp; local
203 Char *hp, *s; local
204 int cur, idx, len; local
239 dtildepr(Char *home, Char *dir) argument
248 dtilde(void) function
250 struct directory *d; local
268 dnormalize(Char *cp) argument
270 #define UC macro
271 #define ISDOT macro
272 #define ISDOTDOT macro
277 int dotdot = 0; local
278 Char *dp, *cwd; local
334 dochngd(Char **v, struct command *t) argument
336 struct directory *dp; local
337 Char *cp; local
351 char *tmp; local
376 dgoto(Char *cp) argument
378 Char *dp; local
381 Char *p, *q; local
382 int cwdlen; local
414 dfollow(Char *cp) argument
416 char ebuf[MAXPATHLEN]; local
417 struct varent *c; local
418 Char *dp; local
419 int serrno; local
439 Char **cdp; local
440 Char *p; local
441 Char buf[MAXPATHLEN]; local
477 dopushd(Char **v, struct command *t) argument
479 struct directory *dp; local
484 char *tmp; local
502 char *tmp; local
508 Char *ccp; local
526 dfind(Char *cp) argument
528 struct directory *dp; local
529 Char *ep; local
530 int i; local
556 dopopd(Char **v, struct command *t) argument
558 struct directory *dp, *p = NULL; local
571 char *tmp; local
592 dfree(struct directory *dp) argument
610 dcanon(Char *cp, Char *p) argument
612 Char slink[MAXPATHLEN]; local
613 char tlink[MAXPATHLEN]; local
614 Char *newcp, *sp; local
615 Char *p1, *p2; /* general purpose */ local
616 int cc; local
617 int slash; local
624 Char tmpdir[MAXPATHLEN]; local
847 static ino_t home_ino; local
848 static dev_t home_dev = NODEV; local
849 static Char *home_ptr = NULL; local
850 struct stat statbuf; local
894 dnewcwd(struct directory *dp) argument
[all...]
H A Ddir.h35 #define _DIR_H_ macro
40 struct directory { struct
41 struct directory *di_next; /* next in loop */ member in struct:directory
42 struct directory *di_prev; /* prev in loop */ member in struct:directory
43 unsigned short *di_count; /* refcount of processes */ member in struct:directory
44 Char *di_name; /* actual name */ member in struct:directory
46 struct directory *dcwd; /* the one we are in now */ variable in typeref:struct:directory
[all...]
H A Ddol.c62 static int Dpeekc, Dpeekrd; /* Peeks for DgetC and Dreadc */ variable
63 static Char *Dcp, **Dvp; /* Input vector for Dreadc */ variable
65 #define DEOF macro
66 #define unDgetC macro
67 #define QUOTES macro
75 #define MAXWLEN macro
76 #define MAXMOD macro
77 static Char dolmod[MAXMOD]; /* : modifier character */ variable
78 static Char *dolp; /* Remaining chars from this word */ variable
79 static Char **dolnxt; /* Further words */ variable
80 static int dolcnt; /* Count of further words */ variable
81 static int dolnmod; /* Number of modifiers */ variable
82 static int dolmcnt; /* :gx -> 10000, else 1 */ variable
83 static int dolwcnt; /* :wx -> 10000, else 1 */ variable
103 Dfix(struct command *t) argument
105 Char *p, **pp; local
126 Dfix1(Char *cp) argument
128 Char *Dv[2]; local
140 blkfree(gargv), gargv = 0; local
148 Dfix2(Char **v) argument
165 Dpack(Char *wbuf, Char *wp) argument
167 int c, i; local
212 Dword(void) function
214 Char wbuf[BUFSIZE], *wp; local
215 int c, c1, i; local
216 int dolflg, done, sofar; local
326 DgetC(int flag) argument
328 int c; local
368 static Char *nulvec[] = {0}; variable
369 static struct varent nulargv = {nulvec, STRargv, { NULL, NULL, NULL }, 0}; variable in typeref:struct:varent
372 dolerror(Char *s) argument
384 Dgetdol(void) function
386 static Char *dolbang = NULL; local
387 Char name[4*MAXVARLEN+1]; local
388 Char wbuf[BUFSIZE]; local
389 struct varent *vp; local
390 Char *np; local
391 int c, lwb, sc, subscr, upb; local
392 int dimen, bitset; local
393 char tnp; local
538 int i; local
555 int i = upb; local
592 Char *cp = putn(upb - lwb + 1); local
612 fixDolMod(void) function
614 int c; local
637 int delimcnt = 2; local
638 int delim = DgetC(0); local
672 setDolp(Char *cp) argument
674 Char *dp; local
675 int i; local
685 int delim; local
686 Char *lhsub, *rhsub, *np; local
687 size_t lhlen = 0, rhlen = 0; local
688 int didmod = 0; local
735 int didmod = 0; local
777 unDredc(int c) argument
783 Dredc(void) function
785 int c; local
802 Dtestq(int c) argument
815 heredoc(Char *term) argument
817 Char obuf[BUFSIZE], lbuf[BUFSIZE], mbuf[BUFSIZE]; local
818 struct timespec tv; local
819 Char *Dv[2], *lbp, *obp, *mbp, **vp; local
820 char *tmp; local
821 int c, ocnt, lcnt, mcnt; local
822 int quoted; local
963 blkfree(pargv), pargv = 0; local
[all...]
/netbsd-6-1-5-RELEASE/bin/csh/USD.doc/
H A DMakefile4 DIR= usd/04.csh macro
5 SRCS= tabs csh.1 csh.2 csh.3 csh.4 csh.ap csh.g macro
6 MACROS= -ms macro
[all...]

Completed in 912 milliseconds

1234567891011>>