/ast/src/cmd/tests/sfio/ |
H A D | tstatus.c | 24 Sfio_t* ip; local 28 if(!(ip = sfopen((Sfio_t*)0, "/dev/null", "r"))) 33 n = (int)sfmove(ip, op, SF_UNBOUND, -1); 37 if(!sfeof(ip)) 38 terror("sfeof(ip) expected"); 42 if(sferror(ip)) 43 terror("sferror(ip) not expected"); 47 if(sfclose(ip)) 48 terror("sfclose(ip)");
|
/ast/src/lib/libast/port/ |
H A D | astquery.c | 49 Sfio_t* ip; local 76 ip = rfp; 81 ip = sfstdin; 87 for (n = c = sfgetc(ip);; c = sfgetc(ip))
|
/ast/src/lib/libast/string/ |
H A D | fmtfs.c | 59 register Id_t* ip; local 75 else if (ip = (Id_t*)dtmatch(dict, &st->st_dev)) 76 return ip->name; 84 if (!dict || !(ip = newof(0, Id_t, 1, strlen(s)))) 93 strcpy(ip->name, s); 96 dtinsert(dict, ip); 97 return ip->name;
|
H A D | fmtgid.c | 62 register Id_t* ip; local 76 else if (ip = (Id_t*)dtmatch(dict, &gid)) 77 return ip->name; 93 if (dict && (ip = newof(0, Id_t, 1, strlen(name)))) 95 ip->id = gid; 96 strcpy(ip->name, name); 97 dtinsert(dict, ip); 98 return ip->name;
|
H A D | fmtuid.c | 62 register Id_t* ip; local 76 else if (ip = (Id_t*)dtmatch(dict, &uid)) 77 return ip->name; 93 if (dict && (ip = newof(0, Id_t, 1, strlen(name)))) 95 ip->id = uid; 96 strcpy(ip->name, name); 97 dtinsert(dict, ip); 98 return ip->name;
|
H A D | strgid.c | 72 register Id_t* ip; local 86 else if (ip = (Id_t*)dtmatch(dict, name)) 87 return ip->id; 114 if (dict && (ip = newof(0, Id_t, 1, strlen(name)))) 116 strcpy(ip->name, name); 117 ip->id = id >= 0 ? id : -2; 118 dtinsert(dict, ip);
|
H A D | struid.c | 67 register Id_t* ip; local 80 else if (ip = (Id_t*)dtmatch(dict, name)) 81 return ip->id; 102 if (dict && (ip = newof(0, Id_t, 1, strlen(name)))) 104 strcpy(ip->name, name); 105 ip->id = id >= 0 ? id : -2; 106 dtinsert(dict, ip);
|
/ast/src/lib/libcs/ |
H A D | msgblast.c | 42 Msg_file_t* ip; local 92 (ap++)->file = ip = (Msg_file_t*)vp; 93 for (n = 0; n < sizeof(*ip) / sizeof(ip->fid[0]); n++) 94 ip->fid[n] = msggetu(&b, e); 95 vp = (char**)(((char*)ip) + sizeof(*ip)); 136 (ap++)->file = ip = (Msg_file_t*)vp; 139 for (n = 0; n < sizeof(*ip) / sizeof(ip [all...] |
H A D | csattr.c | 48 register Info_t* ip; local 64 if (!(ip = (Info_t*)hashlook(tp, h, HASH_CREATE|HASH_SIZE(sizeof(Info_t)+strlen(s)+1), NiL))) 71 strcpy(ip->data, s); 92 register Info_t* ip; local 114 do if (!(ip = (Info_t*)hashnext(pt))) 119 } while (n && streq(ip->name, CS_HOST_LOCAL)); 121 return ip->name; 124 b += sfsprintf(b, x - b, "%s", ip->name); 130 if (!(ip = (Info_t*)hashlook(tp, name, HASH_LOOKUP, NiL))) 137 return csaddr(state, ip [all...] |
H A D | msglist.c | 111 Msg_file_t* ip; local 150 ip = (ap++)->file; 151 r += sfprintf(sp, " %lu", ip->fid[0]); 152 for (n = 1; n < sizeof(*ip) / sizeof(ip->fid[0]); n++) 153 r += sfprintf(sp, "%s%ld", ip->fid[n] >= 0 ? "+" : "", ip->fid[n]); 186 ip = (ap++)->file; 189 r += sfprintf(sp, " %lu", ip->fid[0]); 190 for (n = 1; n < sizeof(*ip) / sizeo [all...] |
/ast/src/lib/libdss/ |
H A D | dss-scan.h | 45 Dssfile_t* ip; local 101 if (ip = dssfopen(dss, file, NiL, DSS_FILE_READ, NiL)) 105 dssfclose(ip); 108 while (record = dssfread(ip)) 111 dssfclose(ip); 114 dssfclose(ip);
|
/ast/src/cmd/html/ |
H A D | html2db.c | 48 flatten(const char* path, Sfio_t* ip, Sfio_t* op) argument 61 switch (c = sfgetc(ip)) 70 switch (c = sfgetc(ip)) 75 sfungetc(ip, c); 90 switch (c = sfgetc(ip)) 148 register Sfio_t* ip; local 173 ip = sfstdin; 175 else if (!(ip = sfopen(NiL, s, "r"))) 180 flatten(s, ip, sfstdout); 181 if (ip ! [all...] |
/ast/src/lib/libjcl/ |
H A D | open.c | 174 register Include_t* ip; local 176 if (!(ip = vmnewof(jcl->vm, 0, Include_t, 1, file ? strlen(file) : 0))) 181 ip->sp = jcl->sp; 183 ip->file = error_info.file; 184 error_info.file = file ? strcpy(ip->path, file) : (char*)0; 185 ip->line = error_info.line; 187 ip->prev = jcl->include; 188 jcl->include = ip; 205 Include_t* ip; local 207 if (!(ip [all...] |
/ast/src/cmd/pax/ |
H A D | nocomment.c | 75 * get next token on ip 79 token(register Sfio_t* ip) argument 89 switch (c = sfgetc(ip)) 98 sfungetc(ip, c); 105 sfungetc(ip, c); 120 * uncomment ip into op 124 nocomment(register Sfio_t* ip, Sfio_t* op) argument 146 c = sfgetc(ip); 156 sfmove(ip, op, SF_UNBOUND, -1); 160 switch (c = sfgetc(ip)) [all...] |
/ast/src/cmd/builtin/ |
H A D | uudecode.c | 86 Sfio_t* ip; local 103 ip = sfstdin; 158 ip = sfstdin; 159 else if (!(ip = sfopen(NiL, ipath, "rt"))) 162 uudecode(uu, ip, op, SF_UNBOUND, opath);
|
H A D | uuencode.c | 86 Sfio_t* ip; local 103 ip = sfstdin; 159 ip = sfstdin; 160 else if (!(ip = sfopen(NiL, ipath, "rt"))) 166 uuencode(uu, ip, op, SF_UNBOUND, epath);
|
H A D | what.c | 75 what(const char* file, Sfio_t* ip, Sfio_t* op) argument 89 if (buf = (unsigned char*)sfreserve(ip, SF_UNBOUND, 0)) 92 if ((mid = sfvalue(ip)) <= (index = 3)) 117 if (!(buf = (unsigned char*)sfreserve(ip, SF_UNBOUND, 0))) 119 if ((mid = sfvalue(ip)) <= (index = 3)) 184 if (!(buf = (unsigned char*)sfreserve(ip, SF_UNBOUND, 0))) 186 e = (s = b = buf) + (mid = sfvalue(ip)); 226 if (sfvalue(ip))
|
/ast/src/lib/libast/comp/ |
H A D | catopen.c | 76 Sfio_t* ip; local 86 if ((s = mcfind(NiL, name, LC_MESSAGES, flag, path, sizeof(path))) && (ip = sfopen(NiL, s, "r"))) 91 mc = mcopen(ip); 92 sfclose(ip);
|
/ast/src/lib/libpz/ |
H A D | pzinflate.c | 29 restore(register Pz_t* pz, Pzpart_t* pp, register Sfio_t* ip, Sfio_t* op, register unsigned char* pat, register unsigned char* buf, size_t row, size_t m, register size_t* map, register unsigned char** mix, register size_t* inc) argument 38 PZGETZ(pz, ip, z, i); 59 PZGETP(pz, ip, z, i, break); 63 PZGETP(pz, ip, z, i, break);
|
/ast/src/cmd/mailx/ |
H A D | edit.c | 83 register struct msg* ip; local 92 for (ip = msgvec; ip->m_index; ip++) { 93 if (ip > msgvec) { 97 note(PROMPT, "Edit message %d [ynq]? ", ip->m_index); 106 state.msg.dot = mp = state.msg.list + ip->m_index - 1;
|
/ast/src/cmd/msgcc/ |
H A D | msgcvt.c | 130 decode(Sfio_t* ip) argument 136 if ((c = sfgetc(ip)) == EOF) 142 while ((c = sfgetc(ip)) != EOF && c != ';') 185 sfungetc(ip, name[i]); 207 sfnext(Sfio_t* ip) argument 211 while (isspace(c = sfgetc(ip))); 216 html2msg(register Sfio_t* ip, register Sfio_t* op, int flags) argument 222 while ((c = sfgetc(ip)) != EOF) 225 if ((c = sfnext(ip)) == 'O' && 226 (c = sfnext(ip)) 430 msg2html(register Sfio_t* ip, register Sfio_t* op, register int flags) argument [all...] |
/ast/src/cmd/std/ |
H A D | iconv.c | 144 Sfio_t* ip; local 228 ip = sfstdin; 230 else if (!(ip = sfopen(NiL, file, "r"))) 236 iconv_move(cvt, ip, sfstdout, SF_UNBOUND, &id); 237 if (!id.errors && (!sfeof(ip) || sferror(ip))) 251 if (ip != sfstdin) 252 sfclose(ip);
|
H A D | tsort.c | 93 tsort(Sfio_t* ip) argument 106 while (s = sfgetr(ip, '\n', 1)) 134 if (sfvalue(ip)) 152 Sfio_t* ip; local 173 ip = sfstdin; 174 else if (!(ip = sfopen(NiL, *argv, "r"))) 176 tsort(ip); 177 if (ip != sfstdin) 178 sfclose(ip);
|
/ast/src/cmd/codex/ |
H A D | codex.c | 203 Sfio_t* ip; local 216 ip = sfstdin; 227 ip = 0; 241 if (!(buf = sfreserve(ip, CODEX_IDENT, SF_LOCKR)) && !(buf = sfreserve(ip, sfvalue(ip), SF_LOCKR))) 243 if (codexid(buf, sfvalue(ip), ident, sizeof(ident))) 247 sfread(ip, buf, 0); 276 if (!ip && !op) 277 ip [all...] |
/ast/src/cmd/cs/ |
H A D | css.c | 74 acceptf(Css_t* css, Cssfd_t* fp, Csid_t* ip, char** av, Cssdisc_t* disc) argument 82 con->id = *ip;
|