Searched refs:sp (Results 1 - 25 of 357) sorted by relevance

1234567891011>>

/ast/src/lib/libast/stdio/
H A Dstdio_c99.c31 clearerr_unlocked(Sfio_t* sp) argument
33 clearerr(sp);
37 feof_unlocked(Sfio_t* sp) argument
39 return feof(sp);
43 ferror_unlocked(Sfio_t* sp) argument
45 return ferror(sp);
49 fflush_unlocked(Sfio_t* sp) argument
51 return fflush(sp);
55 fgetc_unlocked(Sfio_t* sp) argument
57 return fgetc(sp);
61 fgets_unlocked(char* buf, int size, Sfio_t* sp) argument
67 fileno_unlocked(Sfio_t* sp) argument
73 fputc_unlocked(int c, Sfio_t* sp) argument
79 fputs_unlocked(char* buf, Sfio_t* sp) argument
85 fread_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument
91 fwrite_unlocked(void* buf, size_t size, size_t n, Sfio_t* sp) argument
97 getc_unlocked(Sfio_t* sp) argument
109 putc_unlocked(int c, Sfio_t* sp) argument
[all...]
H A Dgetline.c31 getline(char** sp, size_t* np, Sfio_t* f) argument
33 STDIO_INT(f, "getline", ssize_t, (char**, size_t*, Sfio_t*), (sp, np, f))
35 return getdelim(sp, np, '\n', f);
/ast/src/lib/libpp/
H A Dppincref.c34 register struct ppinstk* sp; local
42 for (sp = pp.in; sp; sp = sp->prev)
43 if (sp->type == IN_FILE)
H A Dppprintf.c34 Sfio_t* sp; local
36 if (!(sp = sfnew(NiL, pp.outp, MAXTOKEN, -1, SF_WRITE|SF_STRING)))
39 sfvprintf(sp, format, ap);
41 pp.outp += sfseek(sp, 0L, SEEK_CUR);
43 sfclose(sp);
/ast/src/lib/librecsort/
H A Drstemp.c28 Sfio_t* rstempwrite(Rs_t* rs, Sfio_t* sp) argument
30 Sfio_t* rstempwrite(rs, sp)
32 Sfio_t* sp;
35 Sfio_t* op = sp;
37 if (!sp)
46 if (!(sp = sfnew(NiL, NiL, SF_UNBOUND, fd, SF_READ|SF_WRITE)))
49 if (!(sp = sftmp(0)))
54 sfresize(sp, 0);
55 if ((rs->events & RS_TEMP_WRITE) && rsnotify(rs, RS_TEMP_WRITE, sp, (Void_t*)0, rs->disc) < 0)
58 sfclose(sp);
69 rstempread(Rs_t* rs, Sfio_t* sp) argument
95 rstempclose(Rs_t* rs, Sfio_t* sp) argument
[all...]
H A Drsfile.c24 * announce sp open for write on path
28 int rsfilewrite(Rs_t* rs, Sfio_t* sp, const char* path) argument
30 int rsfilewrite(rs, sp, path)
32 Sfio_t* sp;
36 if ((rs->events & RS_FILE_WRITE) && rsnotify(rs, RS_FILE_WRITE, sp, (Void_t*)path, rs->disc) < 0)
42 * announce sp open for read on path
46 int rsfileread(Rs_t* rs, Sfio_t* sp, const char* path) argument
48 int rsfileread(rs, sp, path)
50 Sfio_t* sp;
54 if ((rs->events & RS_FILE_READ) && rsnotify(rs, RS_FILE_READ, sp, (Void_
64 rsfileclose(Rs_t* rs, Sfio_t* sp) argument
[all...]
H A Drskeydump.c31 dump(register Rskey_t* kp, Sfio_t* sp, register Rskeyfield_t* fp, const char* type) argument
33 dump(kp, sp, fp, type)
35 Sfio_t* sp;
40 sfprintf(sp, "%s[%d]\n", type, fp->index);
41 sfprintf(sp, "\tbegin field = %d\n", fp->begin.field);
42 sfprintf(sp, "\t begin char = %d\n", fp->begin.index);
43 sfprintf(sp, "\t end field = %d\n", fp->end.field);
44 sfprintf(sp, "\t end char = %d\n", fp->end.index);
45 sfprintf(sp, "\t ccode = %d\n", fp->code);
46 sfprintf(sp, "\
61 rskeydump(register Rskey_t* kp, register Sfio_t* sp) argument
[all...]
/ast/src/lib/libast/comp/
H A Dmemchr.c33 * Return the ptr in sp at which the character c appears;
40 register const char* sp = (char*)asp;
41 register const char* ep = sp + n;
43 while (sp < ep)
44 if (*sp++ == c)
45 return(--sp);
H A Dmemset.c35 register char* sp = (char*)asp;
38 *sp++ = c;
/ast/src/lib/libcs/
H A Dcsnote.c52 csnote(register Cs_t* state, const char* name, register Csstat_t* sp) argument
57 if (sp->up < 0)
59 idle = -sp->up;
64 idle = sp->idle;
65 up = sp->up;
73 m = (((sp->load >> 3) & 0377) << 24) | ((sp->pctsys & 0377) << 16) | ((sp->pctusr & 0377) << 8) | (sp->users & 0377);
74 error(-1, "csnote: <%lu,%lu> load=%lu:%lu pctsys=%lu:%lu pctusr=%lu:%lu users=%lu:%lu idle=%lu:%lu", sp
81 _cs_note(const char* name, Csstat_t* sp) argument
[all...]
H A Dmsglist.c33 * print buffer s,n on sp
36 #define PUT(c) (r++,sfputc(sp,(c)))
39 buffer(register Sfio_t* sp, register char* s, int n) argument
45 if (n < 0) return sfprintf(sp, " %p", s);
97 * list msg on sp
101 msglist(Sfio_t* sp, register Msg_call_t* msg, int flags, unsigned long terse) argument
121 r += sfprintf(sp, "[");
123 r += sfprintf(sp, " %5d %5d", MSG_CHANNEL_USR(msg->channel), MSG_CHANNEL_SYS(msg->channel));
127 r += sfprintf(sp, " %lu", msg->stamp);
129 r += sfprintf(sp, "
[all...]
/ast/src/cmd/dsslib/ip_t/
H A Dptprint.c26 * print table a in normal form on sp
30 ptprint(Pt_t* a, Sfio_t* sp) argument
32 PTSCAN(a, x, b, m, sfprintf(sp, "%s\n", fmtip4(x, b)));
33 return sfsync(sp);
H A Dptvprint.c26 * print table a in normal form on sp
30 ptvprint(Ptv_t* a, Sfio_t* sp) argument
32 PTVSCAN(a, b, sfprintf(sp, "%s\n", fmtip6(a->r[0], b)));
33 return sfsync(sp);
/ast/src/lib/libcodex/
H A Dcodexdata.c31 codexdata(Sfio_t* sp, Codexdata_t* data) argument
33 return sfraise(sp, CODEX_DATA, data);
H A Dcodexsize.c31 codexsize(Sfio_t* sp, Sfoff_t size) argument
33 return sfraise(sp, CODEX_SIZE, &size);
/ast/src/cmd/3d/
H A Drename3d.c29 register char* sp; local
41 if (!(sp = pathreal(path, P_TOP|P_LSTAT, NiL)))
43 strncpy(buf, sp, PATH_MAX);
44 if (!(sp = pathreal(target, P_PATHONLY|P_NOOPAQUE, NiL)))
47 if ((r = RENAME(buf, sp)) && errno == ENOENT && (t = strrchr(sp, '/')))
50 r = fs3d_mkdir(sp, S_IRWXU|S_IRWXG|S_IRWXO);
55 r = RENAME(buf, sp);
63 if (sp != buf)
65 if (!(sp
[all...]
/ast/src/cmd/nmake/
H A Ddump.c37 dumpname(register Sfio_t* sp, register Rule_t* r, char* sep) argument
53 sfputc(sp, '"');
60 sfputc(sp, '\\');
64 sfputc(sp, '$');
67 sfputc(sp, *s);
70 sfputc(sp, '"');
75 sfputr(sp, r->name, -1);
78 sfputc(sp, '"');
79 sfputc(sp, '"');
82 sfprintf(sp, "
101 register Sfio_t* sp = (Sfio_t*)h; local
433 register Sfio_t* sp = (Sfio_t*)h; local
509 dump(Sfio_t* sp, int verbose) argument
541 dumpregress(register Sfio_t* sp, const char* prefix, const char* name, register char* value) argument
649 dumpaction(Sfio_t* sp, const char* name, register char* action, register const char* prefix) argument
706 dumpvar(Sfio_t* sp, register Var_t* v) argument
719 dumprule(Sfio_t* sp, register Rule_t* r) argument
[all...]
/ast/src/lib/libast/include/
H A Dstk.h45 #define stkptr(sp,n) ((char*)((sp)->_data)+(n))
46 #define stktop(sp) ((char*)(sp)->_next)
47 #define stktell(sp) ((sp)->_next-(sp)->_data)
48 #define stkseek(sp,n) ((n)==0?(char*)((sp)->_next=(sp)
[all...]
/ast/src/lib/libast/regex/
H A Dregsub.c35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags_t flags, int sre) argument
46 switch (c = *sp++)
51 if (!sre || *sp != '(')
56 b = sp - 1;
57 sp++;
62 sfputc(dp, chresc(sp - 1, &s));
63 sp = (const char*)s;
66 if (*sp == '&')
68 c = *sp++;
79 sp
242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) argument
[all...]
H A Dregdecomp.c35 detrie(Trie_node_t* x, Sfio_t* sp, char* b, char* p, char* e, int delimiter) argument
51 sfputc(sp, x->c);
54 sfputc(sp, '|');
55 sfputc(sp, '<');
56 sfwrite(sp, b, p - b);
57 sfputc(sp, '>');
58 detrie(y, sp, b, p, e, delimiter);
62 sfputc(sp, '|');
63 sfputc(sp, '{');
64 sfwrite(sp,
72 decomp(register Rex_t* e, Sfio_t* sp, int type, int delimiter, regflags_t flags) argument
396 Sfio_t* sp; local
[all...]
/ast/src/lib/libast/misc/
H A Doptesc.c27 * escape optget() special chars in s and write to sp
35 optesc(Sfio_t* sp, register const char* s, int esc) argument
45 sfprintf(sp, "%-.*s", c - 4, s + 3);
58 sfputc(sp, '\b');
59 sfwrite(sp, m, s - m);
60 sfputc(sp, '\b');
61 sfwrite(sp, s, 3);
65 sfwrite(sp, m, s - m);
78 sfputc(sp, '\b');
79 sfwrite(sp,
[all...]
/ast/src/lib/libcoshell/
H A Dcostash.c33 costash(Sfio_t* sp) argument
37 if (!(s = sfstruse(sp)))
H A Dcoquote.c25 * single quote s into sp
32 coquote(register Sfio_t* sp, register const char* s, int type) argument
40 sfputc(sp, c);
43 sfputc(sp, '\\');
44 sfputc(sp, '\'');
45 sfputc(sp, '\'');
56 sfprintf(sp, "'$%s'", CO_ENV_TYPE);
/ast/src/lib/libexpr/
H A Dexstash.c35 exstash(Sfio_t* sp, Vmalloc_t* vp) argument
39 return ((s = sfstruse(sp)) && (!vp || (s = vmstrdup(vp, s)))) ? s : exnospace();
/ast/src/lib/libast/dir/
H A Dgetdents.c79 register char* sp; /* system */
88 sp = (char*)buf + siz - m - 1;
89 if (!(n = dirread(fd, sp, m))) return(0);
93 sp[n] = 0;
94 while (sp < (char*)buf + siz - m + n)
97 while (*sp >= '0' && *sp <= '9')
98 i = 10 * i + *sp++ - '0';
99 while (*sp && *sp !
[all...]

Completed in 97 milliseconds

1234567891011>>