Searched refs:ip (Results 1 - 25 of 122) sorted by relevance

12345

/ast/src/cmd/tests/sfio/
H A Dtstatus.c24 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 Dpzsplit.c119 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 Dmsgcvt.c130 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 Ddelta.c103 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 Dfmtgid.c62 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 Dfmtuid.c62 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 Dfmtfs.c59 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 Dstruid.c67 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 Dstrgid.c72 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 Dpathreal.c127 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 Dhtml2db.c48 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 Dcodex.c203 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 Dcsattr.c48 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 Dmsglist.c111 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 Dmsgblast.c42 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 Dppproto.c84 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 Dtsort.c93 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 Dastquery.c49 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 Dnocomment.c75 * 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 Ddss-scan.h45 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 Dproto.c1313 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 Duulib.h34 Sfio_t* ip; \
/ast/src/cmd/pzip/
H A Dr2c.c87 * 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 Dopen.c174 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 Dcmd1.c263 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...]

Completed in 44 milliseconds

12345