/ast/src/lib/libast/disc/ |
H A D | sfdcmore.c | 42 Sfio_t* input; /* tied with this input stream */ member in struct:__anon257 55 * we assume line-at-a-time input 273 if (f = more->input) 275 more->input = 0; 299 * if f==sfstdout then input on sfstdin also resets the state 359 more->input = sfstdin;
|
/ast/src/lib/libmam/ |
H A D | mam.c | 173 * scan a mam input stream 188 Sfio_t* input; local 195 if (!file) input = sfstdin; 196 else if (!(input = sfopen(NiL, file, "r"))) 202 sfsetbuf(input, buf, sizeof(buf)); 208 while (s = sfgetr(input, '\n', 1)) 360 if (input != sfstdin) sfclose(input);
|
/ast/src/cmd/pack/ |
H A D | huffdecode.c | 58 * decode <input> using huffman tree defined in <hp> onto <output> 64 Sfoff_t huffdecode(register Huff_t *hp,Sfio_t *input,Sfio_t *output,int size) argument 93 /* set up input buffers for faster access */ 94 infile = input;
|
/ast/src/cmd/re/ |
H A D | sed0.c | 154 Sfio_t *ifile; /* current input file */ 155 } input; variable in typeref:struct:__anon206 164 if (qflag || input.iargc <= 0) 168 if (s = sfgetr(input.ifile, '\n', 1)) 170 c = sfvalue(input.ifile); 173 if (s = sfgetr(input.ifile, '\n', -1)) 175 c = sfvalue(input.ifile) + 1; 181 sfclose(input.ifile); 184 if (--input.iargc <= 0) 186 } while (!(input [all...] |
H A D | grep.c | 26 "[+DESCRIPTION?The \bgrep\b commands search the named input files" 28 " Matching lines are printed by default. The standard input is searched" 72 "[N:name?Set the standard input file name prefix to" 164 int notfound; /* some input file not found */ 346 execute(Sfio_t* input, char* name) argument 358 sfset(input, SF_SHARE, 0); 360 sfsetbuf(input, state.buffer.base, state.buffer.size); 362 name = "(standard input)"; /* posix! (ast prefers /dev/stdin) */ 372 if (s = sfgetr(input, '\n', 0)) 373 len = sfvalue(input) [all...] |
H A D | ed.c | 30 " command mode and input mode. In command mode characters on the" 31 " standard input are interpreted as commands, and in input mode they" 149 char* input; member in struct:__anon200 212 ed.input = 0; 287 if (!ed.input) { 288 if (!(ed.input = sfgetr(sfstdin, '\n', 1))) { 292 if ((n = sfvalue(sfstdin) - 2) >= 0 && ed.input[n] == '\r') 293 ed.input[n--] = 0; 294 ed.spbeg = ed.input; 335 input(int n) function [all...] |
/ast/src/cmd/mailx/ |
H A D | lex.c | 285 * Interpret user commands one by one. If standard input is not a tty, 329 * Read a line of commands from the current input 334 if (readline(state.input, &linebuf[n], LINESIZE - n) < 0) { 717 register FILE* input; local 721 input = state.input; 722 state.input = fp; 728 state.input = input;
|
H A D | mailx.h | 645 FILE* input; /* Current command input file */ member in struct:__anon136 727 FILE* input; /* Saved state.input */ member in struct:__anon136::__anon142::__anon143
|
/ast/src/cmd/sortlib/vcodex/ |
H A D | vcodex.c | 31 "decodes input, output and temporary file data. By default temporary and " 33 "input file. Output encoding is only applied to the standard output or " 36 "containing 'z' and the input path has a suffix containing 'z' then the " 37 "output path is renamed by appending the input path suffix.]" 38 "[i:input?Decode the input files using \amethod\a. \b--noinput\b " 39 "disables input encoding.]:[method]" 79 Encoding_t input; member in struct:State_s 136 state->output = state->input; 142 if (!ZIPSUFFIX(path, p) && *state->input [all...] |
/ast/src/lib/libtksh/src/ |
H A D | filecmd.c | 686 char *input = NULL; /* If non-null, then this points to a 687 * string containing input data (specified 716 if (input) 719 Tcl_DStringAppend(buffer, input, -1); 721 input = NULL; 726 input = argv[i]+2; 727 if (*input == 0) { 728 input = argv[i+1]; 729 if (input == 0) { 738 input 684 char *input = NULL; /* If non-null, then this points to a local [all...] |
/ast/src/cmd/vczip/ |
H A D | vczip.c | 39 "[+DESCRIPTION?\bvczip\b is a filter that decodes the standard input " 44 "file to delta against. If \asource\a is omitted then the input file is " 52 "[i:input?Input data is read from \afile\a instead of the standard " 53 "input.]:[file]" 68 "[q:identify?Identify the standard input encoding and write the " 70 "If the standard input is not vczip encoded then nothing is " 74 "following methods, each method prefixed by \b<\b to decode the input or " 92 "\n[ source ] < input > output\n" 236 * apply the codex and/or vcodex transforms to a single input/output pair 240 apply(int action, const char* vt, Vcsfdata_t* vcodexdisc, const char* ct, Codexdisc_t* codexdisc, const char* input, cons argument [all...] |
/ast/src/lib/libsum/ |
H A D | sum-md5.c | 44 unsigned char buffer[64]; /* input buffer */ 62 * encode input into output 67 md5_encode(register unsigned char* output, register UINT4* input, unsigned int len) argument 74 output[j] = (unsigned char)(input[i] & 0xff); 75 output[j+1] = (unsigned char)((input[i] >> 8) & 0xff); 76 output[j+2] = (unsigned char)((input[i] >> 16) & 0xff); 77 output[j+3] = (unsigned char)((input[i] >> 24) & 0xff); 82 * decode input into output 87 md5_decode(register UINT4* output, register unsigned char* input, unsigned int len) argument 93 output[i] = ((UINT4)input[ 272 unsigned char* input = (unsigned char*)s; local [all...] |
/ast/src/cmd/dsslib/netflow/ |
H A D | flow-dump.c | 46 Nfshort_t input; member in struct:Rec_1_s 82 Nfshort_t input; member in struct:Rec_5_s 116 Nfshort_t input; member in struct:Rec_7_s 294 swapmem(1, state->data + 12, &rp->input, 4); 309 swapmem(1, state->data + 12, &rp->input, 4); 325 swapmem(1, state->data + 12, &rp->input, 4); 417 swapmem(1, &rp->input, state->next + 12, 4); 434 swapmem(1, &rp->input, state->next + 12, 4); 452 swapmem(1, &rp->input, state->next + 12, 4);
|
H A D | flow-tool.c | 77 u_int16 input; /* Input interface index */ member in struct:fts3rec_v1 104 u_int16 input; /* Input interface index */ member in struct:fts3rec_v5 132 u_int16 input; /* Input interface index */ member in struct:fts3rec_v6 150 u_int8 in_encaps; /* size in bytes of the input encapsulation */ 164 u_int16 input; /* Input interface index */ member in struct:fts3rec_v7 362 swapmem(n, &R1(fp)->unix_secs, &R1(fp)->unix_secs, (char*)&R1(fp)->input - (char*)&R1(fp)->unix_secs); 366 swapmem(n, &R1(fp)->input, &R1(fp)->input, (char*)&R1(fp)->dPkts - (char*)&R1(fp)->input); 373 rp->input [all...] |
H A D | netflow.h | 199 Nfshort_t input; /* Input interface index */ member in struct:Netflow_s
|
/ast/src/lib/librecsort/ |
H A D | recsort.h | 108 char** input; /* input files */ member in struct:_rskey_s 114 size_t insize; /* input buffer size */ 120 int merge; /* merge sorted input files */ 177 #define RS_CAT 040000 /* just catenate input files */ 184 /* input/output control */ 185 #define RS_ITEXT 000100 /* input is plain text */
|
/ast/src/cmd/ie/ |
H A D | io.h | 105 /* used for input and output of shell */ 223 #define input (st.curin) macro
|
/ast/src/cmd/kshlib/cmdtst/ |
H A D | grep.c | 28 "[+DESCRIPTION?The \bgrep\b commands search the named input files for " 30 "printed by default. The standard input is searched if no files are " 82 "[N:name?Set the standard input file name prefix to " 188 int notfound; /* some input file not found */ 459 execute(State_t* state, Sfio_t* input, char* name, Shbltin_t* context) argument 471 sfset(input, SF_SHARE, 0); 473 sfsetbuf(input, state->buffer.base, state->buffer.size); 475 name = "(standard input)"; /* posix! (ast prefers /dev/stdin) */ 487 if (s = sfgetr(input, '\n', 0)) 488 len = sfvalue(input) [all...] |
/ast/src/lib/libast/port/ |
H A D | astlicense.c | 518 Stack_t input[4]; local 532 input[level].file = "<options>"; 533 input[level].info = options; 534 input[level].line = 0; 538 if (push(&input[++level], file, 0, data, &info[sizeof(info)] - data, &buf)) 540 data += input[level].size; 544 s = input[level].info; 562 while (c == ' ' || c == '\t' || c == '\n' && ++input[level].line || c == '\r' || c == ',' || c == ';' || c == ')') 571 input[level].line++; 585 input[leve [all...] |
/ast/src/cmd/html/ |
H A D | troff2html.h | 112 Sfio_t* ip; /* input file stream */ 113 unsigned char* buf; /* input buffer */ 114 unsigned char* end; /* end of input buffer */ 217 char* input; /* first input file */ member in struct:State_s 246 unsigned char* in; /* input buffer pointer */ 250 Pushin_t in_stack[STKS]; /* input stream stack */ 251 Pushin_t* in_top; /* input stream stack top */ 268 int count; /* remaining input lines */
|
/ast/src/cmd/pzip/ |
H A D | pin.c | 38 " on the standard output. The input \afile\a is referred to as" 104 "[r:row?Specifies the input row size (number of byte columns). The row size" 105 " is determined by sampling the input if not specified.]#[row-size]" 114 " invocations with identical input files will generate the same output.]" 212 char* input; member in struct:__anon193 648 sfprintf(sp, "# %s cache for %s\n", error_info.id, state.input); 900 sfprintf(sp, "# %s cache for %s\n", error_info.id, state.input); 1588 if (error_info.errors || !(state.input = *argv++) || (n = *argv != 0) && !(op & OP_size)) 1616 if (pz = pzopen(&disc, state.input, 0)) 1668 sfprintf(sfstdout, "%8I*u %s\n", sizeof(row), row, state.input); [all...] |
/ast/src/cmd/sort/ |
H A D | main.c | 45 "standard input. If no files are named, the standard input is sorted.]" 90 "any input file name, from left to right, ends with " 94 "regular file, is renamed to contain the input \b%\b\aformat\a.]" 95 "[+-?The first block of the first input file is sampled to check " 128 "[c:check?Check that the single input file is sorted according to the " 129 "ordering rules; give no output on the standard output. If the input " 134 "the input. The current implementation still uses one process for the " 136 "[m:merge?Merge; the input files are already sorted.]" 139 "[s:stable?Stable sort. When all keys compare equal, preserve input " 1316 input(register Sort_t* sp, Sfio_t* ip, const char* name) function [all...] |
/ast/src/cmd/INIT/ |
H A D | mamake.c | 193 typedef struct Stream_s /* input file stream stack */ 223 char* file; /* first input file */ 238 int peek; /* next line already in input */ 242 Stream_t streams[4]; /* input file stream stack */ 243 Stream_t* sp; /* input stream stack pointer */ 245 char input[8*CHUNK]; /* input buffer */ member in struct:__anon22 1040 * pop the current input file 1049 report(3, "input stack underflow", NiL, (unsigned long)0); 1064 * push file onto the input stac 1117 input(void) function [all...] |
H A D | proto.c | 389 char* checkpoint; int constack; struct ppinstk* in; char* addp; char* args; char* addbuf; char* catbuf; char* hdrbuf; char* hidebuf; char* path; char* tmpbuf; char* valbuf; char* optflags; int lastout; char* include; char* prefix; struct ppmember* member; int hidden; int hiding; int level; struct { int input; int output; } pool; struct { long ro_state; long ro_mode; long ro_option; long ro_op[2]; int on; char* symtab; } reset; int truncate; struct ppmacstk* macp; char* maxmac; char* mactop; char* toknxt; long* control; long* maxcon; struct oplist* chop; struct ppfile* insert; struct ppfile* original; struct ppdirs* found; int vendor; char* dirtab; char* strtab; PPBUILTIN builtin; PPCOMMENT comment; PPINCREF incref; PPLINESYNC linesync; PPLINESYNC olinesync; PPMACREF macref; PPOPTARG optarg; PPPRAGMA pragma; struct counter counter; char funbuf[256]; member in struct:ppglobals::__anon25 1872 Stack_t input[4]; local 1886 input[level].file = "<options>"; 1887 input[level].info = options; 1888 input[level].line = 0; 1892 if (push(&input[++level], file, 0, data, &info[sizeof(info)] - data, &buf)) 1894 data += input[level].size; 1898 s = input[level].info; 1916 while (c == ' ' || c == '\t' || c == '\n' && ++input[level].line || c == '\r' || c == ',' || c == ';' || c == ')') 1925 input[leve [all...] |