/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/libpz/ |
H A D | pzsplit.c | 119 freeid(Dt_t* dt, Void_t* ip, Dtdisc_t* disc) argument 121 if (((Id_t*)ip)->sp) 122 sfclose(((Id_t*)ip)->sp); 123 free(ip); 134 register Id_t* ip; local 160 for (ip = (Id_t*)dtfirst(dp->ids); ip; ip = (Id_t*)dtnext(dp->ids, ip)) 161 if (n = sfstrtell(ip 302 Id_t* ip; local 485 register Id_t* ip; local 718 Id_t* ip; local [all...] |
/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/lib/libodelta/ |
H A D | delta.c | 103 static int putMove(Move* ip) argument 107 inst = ip->type; 108 inst |= (NBYTE(ip->size)&07) << 3; 109 if(ip->type == DELTA_MOVE) 111 inst |= NBYTE(ip->addr)&07; 113 delputl(NBYTE(ip->size),ip->size) < 0 || 114 delputl(NBYTE(ip->addr),ip->addr) < 0) 120 delputl(NBYTE(ip 130 register Move *ip = (Move*) malloc(sizeof(Move)); local 146 delMove(Move* ip) argument 161 register Move *ip; local 234 register Move *ip, *last; local 442 register Move *ip; local [all...] |
/ast/src/lib/libast/string/ |
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 | 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 | 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);
|
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);
|
/ast/src/cmd/3d/ |
H A D | pathreal.c | 127 register char* ip; local 241 ip = state.path.name + elementsof(state.path.name); 242 while (sp < ip && (*sp = *cp++)) 247 if (!(ip = pathcanon(sp + safe_dir, sizeof(state.path.name) - safe_dir, 0))) 258 while (*--ip == '/'); 259 *++ip = 0; 261 else if ((type & P_SLASH) && *(ip - 1) != '/') 262 *ip++ = '/'; 263 if (*(ip - 1) == '/' && ip 553 register char* ip; local [all...] |
/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/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/lib/libcs/ |
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...] |
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...] |
/ast/src/lib/libpp/ |
H A D | ppproto.c | 84 char* ip; /* input buffer pointer */ member in struct:Proto_s 510 #define CACHEIN() (ip=proto->ip) 512 #define GETCHR() (*(unsigned char*)ip++) 517 #define SYNCIN() (proto->ip=ip) 519 #define UNGETCHR() (ip--) 577 register char* ip; local 619 proto->tp = ip; 621 bp = ip; 2533 register char* ip = proto->ip; local [all...] |
/ast/src/cmd/std/ |
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/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/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/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/INIT/ |
H A D | proto.c | 1313 char* ip; member in struct:Proto_s 2843 register char* ip; local 2880 do{(ip=proto->ip);(op=proto->op);call=proto->call;}while(0); 2885 proto->tp = ip; 2887 bp = ip; 2892 while (!(state = rp[c = (*(unsigned char*)ip++)])); 2896 if ((n = ip - bp - 1) > 0) 2898 ip = bp; 2899 do switch( n) { default : memcopy( op, ip, 4776 register char* ip = proto->ip; local [all...] |
/ast/src/lib/libuu/ |
H A D | uulib.h | 34 Sfio_t* ip; \
|
/ast/src/cmd/pzip/ |
H A D | r2c.c | 87 * convert one file from ip to op 91 r2c(const char* file, Sfio_t* ip, Sfio_t* op) argument 108 while (s = sfgetr(ip, t, 0)) 110 n = sfvalue(ip); 163 if (sfgetr(ip, -1, 0)) 174 Sfio_t* ip; local 229 ip = sfstdin; 231 else if (!(ip = sfopen(NiL, file, "r"))) 236 r2c(file, ip, sfstdout); 237 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/mailx/ |
H A D | cmd1.c | 263 register struct msg* ip; local 265 for (ip = msgvec; ip->m_index; ip++) 266 CALL(printhead)(ip->m_index, who); 267 if (--ip >= msgvec) 268 state.msg.dot = state.msg.list + ip->m_index - 1; 331 register struct msg* ip; local 344 for (ip = msgvec; ip 412 register struct msg* ip; local 469 register struct msg* ip; local 579 register struct msg* ip; local 741 register struct msg* ip; local 887 register struct msg* ip; local [all...] |