Searched defs:in (Results 1 - 25 of 38) sorted by relevance

12

/ast/src/lib/libcmd/
H A Drevlib.c33 * copy the lines starting at offset <start> from in <in> to <out>
34 * in reverse order
36 int rev_line(Sfio_t *in, Sfio_t *out, off_t start) argument
42 if(sfseek(in,(off_t)0,SEEK_CUR) < 0)
47 if(start>0 && sfmove(in, (Sfio_t*)0, start, -1) != start)
49 if(sfmove(in, tmp, SF_UNBOUND, -1) < 0 || !sfeof(in) || sferror(tmp))
51 in = tmp;
54 if((offset = sfseek(in,(off_
[all...]
H A Drev.c60 static int rev_char(Sfio_t *in, Sfio_t *out) argument
71 while(cp = bp = sfgetr(in,'\n',0))
73 ep = bp + (n=sfvalue(in)) - 1;
101 while(cp = bp = sfgetr(in,'\n',0))
103 ep = bp + (n=sfvalue(in)) -1;
H A Dfold.c39 "will not be broken in the middle of a character.] "
89 static void fold(Sfio_t *in, Sfio_t *out, register int width, const char *cont, size_t contsize, char *cols) argument
97 if (!(cp = sfgetr(in,'\n',0)))
99 if (!(cp = sfgetr(in,'\n',-1)) || (n = sfvalue(in)) <= 0)
105 if(cols['\b']==0 && (n=sfvalue(in))<=width)
H A Dpaste.c52 "specified the delimiter will be reset to the first in the "
81 * paste the lines of the <nstreams> defined in <streams> and put results
146 * Handles paste -s, for file <in> to file <out> using delimiters <delim>
148 static int spaste(Sfio_t *in,register Sfio_t* out,register const char *delim,int dsiz,int dlen,Delim_t* mp) argument
152 if((cp = sfgetr(in,'\n',0)) && sfwrite(out,cp,sfvalue(in)-1) < 0)
154 while(cp=sfgetr(in, '\n',0))
167 if(sfwrite(out,cp,sfvalue(in)-1) < 0)
H A Dfmt.c28 "separated words into lines \awidth\a characters or less in length and "
31 "preserved in the output. Indentation is preserved, and lines with "
34 "also be useful for other simple tasks. For example, in \bvi\b(1) the "
35 "command \b:!}fmt\b will justify the lines in the current paragraph.]"
60 Sfio_t* in; member in struct:Fmt_s
245 while (cp || (cp = sfgetr(fp->in, '\n', 0)) && !(splice = 0) && (lp = cp + sfvalue(fp->in) - 1) || (cp = sfgetr(fp->in, '\n', SF_LASTR)) && (splice = 1) && (lp = cp + sfvalue(fp->in)))
620 fmt.in
[all...]
/ast/src/cmd/builtin/
H A Dasa.c62 static int asa(register Sfio_t *in, Sfio_t *out, int reclen) argument
69 cp = sfreserve(in,n=reclen, -1);
71 cp = sfgetr(in,'\n',0);
75 n = sfvalue(in)-2;
H A Dstrings.c32 "[+NAME?strings - find and display printable strings in files]"
33 "[+DESCRIPTION?\bstrings\b searches for printable strings in regular files"
38 "[a:all?Scan the entire file. Always enabled in this implementation.]"
128 strings(Sfio_t* in, Sfio_t* out, register int width, char* format, register int flags) argument
147 if ((offset = sfseek(in, (off_t)0, SEEK_CUR)) < 0)
152 while ((inp = (unsigned char*)sfgetr(in, sep, 0)) || (inp = (unsigned char*)sfgetr(in, sep, -1)))
154 c = sfvalue(in);
H A Dnl.c37 "[+?The \bnl\b utility treats its input in terms of logical pages and resets "
118 /* These numbers need to be the same as with -n option in option string */
123 static int donl(Nl_t *pp, Sfio_t *in, Sfio_t *out) argument
135 while(cp=sfgetr(in, '\n', 0))
142 n = sfvalue(in);
206 Sfio_t *in=sfstdin; local
291 if(*argv && !(in = sfopen((Sfio_t*)0, *argv, "r")))
293 n = donl(&nl,in,sfstdout);
H A Dwho.c33 "logged in users to standard output.]"
36 "in user it reports.]"
47 "[H:heading?Put a heading line in before of the output.]"
211 static int who(Sfio_t *in, Sfio_t *out, int flags) argument
243 while(sfread(in,&ut,sizeof(struct utmpx))>0)
/ast/src/lib/libpp/
H A Dppbuiltin.c50 struct ppinstk* in; local
80 error(2, "%s in #(...) argument", pptokchr(c));
104 error(2, "%s in #(...) argument", pptokchr(c));
126 error(2, "%s in #(...) argument", pptokchr(c));
144 error(2, "%s in #(...) argument", pptokchr(c));
169 error(2, "%s in #(...) argument", pptokchr(c));
180 for (in = pp.in; in; in
[all...]
H A Dppsearch.c62 * (2) symbolic links in combination with .. may cause two
107 * search for file using directories in dp
425 struct ppinstk* in; local
432 for (in = pp.in; in; in = in->prev)
433 if (in->type == IN_FILE && in
[all...]
/ast/src/cmd/ksh93/sh/
H A Dshcomp.c45 "[D:dictionary?Generate a list of strings that need to be placed in a message "
72 Sfio_t *in, *out; local
106 in = sh_pathopen(cp);
109 in = sfstdin;
138 if(t = (Shnode_t*)sh_parse(shp,in,0))
145 else if(sfeof(in))
147 if(sferror(in))
171 sfmove(in,out,SF_UNBOUND,-1);
172 if(in!=sfstdin)
173 sfclose(in);
[all...]
H A Dtrestore.c47 Shnode_t *sh_trestore(Shell_t *shp,Sfio_t *in) argument
50 infile = in;
55 * read in a shell tree
339 register Sfio_t *in = infile; local
340 register unsigned long l = sfgetu(in);
347 if(sfread(in,ptr,(size_t)l)!=(size_t)l)
/ast/src/lib/libast/port/
H A Dastdynamic.c64 _ast_libinit(void* in, void* out, void* err) argument
68 sp = (Sfio_t*)in;
/ast/src/lib/libz/
H A Dinffast.c3 * For conditions of distribution and use, see copyright notice in zlib.h
39 inflate execution time is spent in this routine.
53 BAD -- error in block data
73 unsigned char FAR *in; /* local strm->next_in */ local
74 unsigned char FAR *last; /* while in < last, enough input available */
82 unsigned whave; /* valid bytes in the window */
100 in = strm->next_in - OFF;
101 last = in + (strm->avail_in - 5);
123 hold += (unsigned long)(PUP(in)) << bits;
125 hold += (unsigned long)(PUP(in)) << bit
[all...]
H A Dminigzip.c3 * For conditions of distribution and use, see copyright notice in zlib.h
13 * or in pipe mode.
53 #ifndef ZLIB_WIN32 /* unlink already in stdio.h for ZLIB_WIN32 */
75 void gz_compress OF((FILE *in, gzFile out));
77 int gz_compress_mmap OF((FILE *in, gzFile out));
79 void gz_uncompress OF((gzFile in, FILE *out));
98 void gz_compress(in, out)
99 FILE *in;
107 /* Try first compressing with mmap. If mmap fails (minigzip used in a
110 if (gz_compress_mmap(in, ou
198 FILE *in; local
229 gzFile in; local
[all...]
H A Dinflate.c3 * For conditions of distribution and use, see copyright notice in zlib.h
16 * - Use pointers for available input and output checking in inffast.c
17 * - Remove input and output counters in inffast.c
19 * - Remove unnecessary second byte pull from length extra in inffast.c
20 * - Unroll direct copy to three copies per loop in inffast.c
24 * - Correct filename to inffixed.h for fixed tables in inflate.c
25 * - Make hbuf[] unsigned char to match parameter type in inflate.c
27 * to avoid negation problem on Alphas (64 bit) in inflate.c
30 * - Add comments on state->bits assertion in inffast.c
31 * - Add comments on op field in inftree
564 unsigned in, out; /* save starting available input and output */ local
[all...]
/ast/src/cmd/nmake/
H A Dmetarule.c33 * a file that matches the metarule pattern in
38 metarule(char* in, char* out, int force) argument
43 sfprintf(internal.met, "%s>%s", in, out ? out : "%");
56 * if in -> out is a secondary metrule then return primary
59 if (!r && (r = metainfo('P', in, out, 0)))
63 sfprintf(internal.met, "%s>%s", in, r->prereqs->rule->name);
245 metaclose(Rule_t* in, Rule_t* out, int c) argument
263 error(1, "metaclose: %s -> %s recursion!", in->name, out->name);
268 addprereq(metainfo('I', out->name, NiL, 1), in, c);
269 addprereq(metainfo('O', in
[all...]
/ast/src/cmd/paxlib/calib/
H A Dcamap.c55 tr(int in, int out, const char *header, const unsigned char *table) argument
64 if((n[0]=read(in,buff[0],sizeof(buff0)))<=0)
71 n[odd]=read(in,buff[odd],sizeof(buff0));
90 int i,j,k,m,n,in= -1,r=0, sep='('; local
96 if(in < 0)
98 if((in = open(file, O_RDONLY)) < 0)
124 if(in>=0)
128 r = tr(in,out,header,table);
131 close(in);
/ast/src/cmd/std/
H A Dunexpand.c36 "position to be decremented by 1 unless already in the first column.]" "[+?If no \afile\a is given, or if the \afile\a is \b-\b, \bexpand\b "
44 "column positions apart. Otherwise, the value in \atablist\a "
45 "must be in ascending order and the tab stops will be set to "
70 "unless already in the first column.]"
79 "column positions apart. Otherwise, the value in \atablist\a "
80 "must be in ascending order and the tab stops will be set to "
122 error(ERROR_exit(1),"%c - invalid character in tablist",*cp);
131 static int expand(Sfio_t *in, Sfio_t *out, int tablist[], int tabmax, int type,int initial) argument
146 while(buff = cp = sfreserve(in,SF_UNBOUND,0))
149 cpend = cp + sfvalue(in);
[all...]
H A Dsplit.c53 " for each piece except the last. If the input does not end in"
54 " a newline, the partial line is included in the last piece.]"
104 " may be given in place of the (integer) repeat count,"
105 " in which case the preceeding pattern is repeated as"
113 " the output files in sorted order by file name produces the original"
114 " input file, in order. The default output file name prefix is \bxx\b.]"
122 "[a|n:digits?Use \adigits\a in the generated file name suffixes.]#[digits:=2]"
339 msize(Sfio_t* in, long len) argument
341 Sfoff_t off = sftell(in);
348 if (sfsize(in)
371 split(Sfio_t* in, struct fname* fp, struct op* op, int flags) argument
491 Sfio_t* in; local
[all...]
/ast/src/lib/libexpr/
H A Dexgram.h24 * stuffed in a header so exparse.y can work
49 * allocate and initialize a new expression node in the current program
239 * string data placed in buf
410 exerror("%s: trailing %% in format", f);
436 exerror("unterminated %%... in format");
534 exerror("%s: trailing %% in format", f);
601 register Exinput_t* in; local
605 if (!(in = newof(0, Exinput_t, 1, 0)))
612 if (!(in->bp = in
666 register Exinput_t* in; local
746 register Exinput_t* in; local
[all...]
/ast/src/cmd/html/
H A Dbb2tok.c57 char* in; member in struct:Header_s
240 if (streq(s, header[i].in))
H A Dhtml2rtf.h76 int tags; /* # tags in rendering */
109 Sfio_t* in; /* input file pointer */ member in struct:State_s
/ast/src/cmd/sortlib/sync/
H A Dsync.c34 "[+?User callout functions (\aexits\a in IBM parlance) must be linked in"
42 " \bRsobj_t\b and callout return values are defined in \b<recsort.h>\b"
43 " and described in \brecsort\b(3). The callout arguments are:]{"
59 " found in the IBM \bDFSORT\b documentation. The control file is read"
65 " between retained and discarded duplicate records. Each line in the"
70 " file \aid\a. A leading \b-\b or \b_\b in \aid\a is ignored. File"
78 " \b02\b in \bout.2\b.]"
101 Ssfile_t in; member in struct:State_s
200 if (ss->in)
[all...]

Completed in 68 milliseconds

12