Searched defs:os (Results 1 - 18 of 18) sorted by relevance

/ast/src/cmd/tests/sfio/
H A Dtpopen.c25 char *s, *endos, *os = "one\ntwo\nthree\n"; local
36 if(sfwrite(f,os,strlen(os)) != (ssize_t)strlen(os))
52 endos = os + strlen(os);
55 if(strncmp(s,os,n) != 0)
56 { s[n-1] = os[n-1] = 0;
57 terror("Input=%s, Expect=%s",s,os);
59 os
[all...]
H A Dtstring.c37 char *s, *os, *endos; local
57 os = "123\n456\n789\n";
58 if(!(f = sfopen((Sfio_t*)0,os,"s")))
61 endos = os + strlen(os);
64 if(s != os)
66 os += sfvalue(f);
69 if(os != endos)
H A Dtpool.c42 char *s, *os, *s1, *s2, *s3; local
64 os = "1234567890\n";
65 on = strlen(os);
67 if(sfputr(f1,os,-1) < 0)
144 if((os = sfreserve(f2,SF_UNBOUND,0)) )
/ast/src/lib/libast/misc/
H A Dftwalk.c61 int os; local
117 os = e->status;
150 e->status = os;
/ast/src/cmd/probe/
H A Dprobe.c215 char* os; local
239 os = sfreserve(of, 0, 0);
245 if (memcmp(ns, os, nz))
248 oz = sfread(of, os, nz);
/ast/src/cmd/tests/cdt/
H A Dtrehash.c124 Obj_t *os, *or; local
139 if((os = dtinsert(dt,or)) != or)
140 tinfo("\t\tProcess %d(%d): Insert %s, get %0x", p,pid,or->str,os);
141 else os->flag |= INSERT;
142 if((os = dtsearch(dt, or)) != or)
150 os = dtsearch(dt,or);
151 if(os != or)
153 p,pid, or->str, proc->obj[k].str, os);
H A Dtsafehash.c124 Obj_t *os, *or; local
139 if((os = dtinsert(dt,or)) != or)
140 tinfo("\t\tProcess %d(%d): Insert %s, get %0x", p,pid,or->str,os);
141 else os->flag |= INSERT;
142 if((os = dtsearch(dt, or)) != or)
150 os = dtsearch(dt,or);
151 if(os != or)
153 p,pid, or->str, proc->obj[k].str, os);
H A Dtsafetree.c126 Obj_t *os, *or; local
141 if((os = dtinsert(dt,or)) != or)
142 tinfo("\t\tProcess %d(%d): Insert %s, get %0x", p,pid,or->str,os);
143 else os->flag |= INSERT;
144 if((os = dtsearch(dt, or)) != or)
152 os = dtsearch(dt,or);
153 if(os != or)
155 p,pid, or->str, proc->obj[k].str, os);
H A Dtvsafehash.c235 Obj_t *os, *om, obj; local
272 { if(!(os = vmalloc(shmdc->vm, sizeof(Obj_t))) )
274 os->dval = k;
275 if(dtinsert(shmdt, os) != os)
296 { Obj_t obj, *om, *os; local
300 os = dtsearch(shmdt, &obj);
301 if(om && os)
303 if(!om && !os)
H A Dtvsaferehash.c237 Obj_t *os, *om, obj; local
274 { if(!(os = vmalloc(shmdc->vm, sizeof(Obj_t))) )
276 os->dval = k;
277 if(dtinsert(shmdt, os) != os)
298 { Obj_t obj, *om, *os; local
302 os = dtsearch(shmdt, &obj);
303 if(om && os)
305 if(!om && !os)
H A Dtvsafetree.c234 Obj_t *os, *om, obj; local
271 { if(!(os = vmalloc(shmdc->vm, sizeof(Obj_t))) )
273 os->dval = k;
274 if(dtinsert(shmdt, os) != os)
295 { Obj_t obj, *om, *os; local
299 os = dtsearch(shmdt, &obj);
300 if(om && os)
302 if(!om && !os)
/ast/src/lib/libvcodex/Vchuff/
H A Dvchuffpart.c231 ssize_t sz, os, s, n; local
253 for(os = 0; os < sz; )
265 if((os += s) > sz)
/ast/src/lib/libcmd/
H A Dcp.c206 preserve(State_t* state, const char* path, struct stat* ns, struct stat* os) argument
210 if ((state->preserve & PRESERVE_TIME) && tmxtouch(path, tmxgetatime(os), tmxgetmtime(os), TMX_NOTIME, 0))
214 n = ((ns->st_uid != os->st_uid) << 1) | (ns->st_gid != os->st_gid);
215 if (n && chown(state->path, os->st_uid, os->st_gid))
219 error(ERROR_SYSTEM|2, "%s: cannot reset group to %s", path, fmtgid(os->st_gid));
222 error(ERROR_SYSTEM|2, "%s: cannot reset owner to %s", path, fmtuid(os->st_uid));
225 error(ERROR_SYSTEM|2, "%s: cannot reset owner to %s and group to %s", path, fmtuid(os
[all...]
/ast/src/lib/libz/
H A Dzlib.h113 int os; /* operating system */ member in struct:gz_header_s
675 deflate(). The text, time, os, extra field, name, and comment information
686 the time set to zero, and os set to 255, with no extra, name, or comment
828 The text, time, xflags, and os fields are filled in with the gzip header
/ast/src/lib/libast/regex/
H A Dregnexec.c298 * os is start of old pos array, ns is start of new,
305 better(Env_t* env, Pos_t* os, Pos_t* ns, Pos_t* oend, Pos_t* nend, int level) argument
316 DEBUG_CODE(0x0080,{sfprintf(sfstdout, " %-*.*sold ", (level + 3) * 4, (level + 3) * 4, "");for (oe = os; oe < oend; oe++)sfprintf(sfstdout, "<%d,%d,%d>", oe->p - env->beg, oe->serial, oe->be);sfprintf(sfstdout, "\n %-*.*snew ", (level + 3) * 4, (level + 3) * 4, "");for (oe = ns; oe < nend; oe++)sfprintf(sfstdout, "<%d,%d,%d>", oe->p - env->beg, oe->serial, oe->be);sfprintf(sfstdout, "\n");},{0;});
318 return DEBUG_TEST(0x8000,(os < oend),(0));
319 if (os >= oend)
321 n = os->serial;
329 if (ns->p > os->p)
331 if (os->p > ns->p)
333 oe = os;
357 if (k = better(env, os
383 _better(Env_t* env, Pos_t* os, Pos_t* ns, Pos_t* oend, Pos_t* nend, int level) argument
[all...]
/ast/src/cmd/nmake/
H A Dscan.c1156 char* os; local
1160 os = ns = internal.scan->name;
1163 os = q->rule->name;
1167 error(1, "%s: scan strategy %s overrides %s", u->name, ns, os);
/ast/src/cmd/sort/
H A Dmain.c855 struct stat os; local
1107 if (!n && !fstat(sffileno(sp->op), &os) && os.st_dev == is.st_dev && os.st_ino == is.st_ino)
1112 if (!stat(key->output, &os))
1114 if (!n && os.st_dev == is.st_dev && os.st_ino == is.st_ino)
1118 else if (!fs3d(FS3D_TEST) || !iview(&os))
1126 else if (os.st_dev == is.st_dev && os
[all...]
/ast/src/cmd/re/
H A Dtestregex.c1166 expand(char* os, char* ot) argument
1168 char* s = os;
1190 for (t = ot; os < s; *t++ = *os++);
1192 os = ot;
1215 return os;

Completed in 80 milliseconds