/ast/src/cmd/tests/sfio/ |
H A D | tpopen.c | 25 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 D | tstring.c | 37 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 D | tpool.c | 42 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/cmd/tests/cdt/ |
H A D | tvsafehash.c | 235 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 D | tvsaferehash.c | 237 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 D | tvsafetree.c | 234 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)
|
H A D | trehash.c | 124 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 D | tsafehash.c | 124 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 D | tsafetree.c | 126 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);
|
/ast/src/lib/libast/misc/ |
H A D | ftwalk.c | 61 int os; local 117 os = e->status; 150 e->status = os;
|
/ast/src/lib/libvcodex/Vchuff/ |
H A D | vchuffpart.c | 231 ssize_t sz, os, s, n; local 253 for(os = 0; os < sz; ) 265 if((os += s) > sz)
|
/ast/src/lib/libcmd/ |
H A D | cp.c | 206 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/cmd/probe/ |
H A D | probe.c | 215 char* os; local 239 os = sfreserve(of, 0, 0); 245 if (memcmp(ns, os, nz)) 248 oz = sfread(of, os, nz);
|
/ast/src/cmd/sort/ |
H A D | main.c | 855 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/lib/libtksh/lib/tksh7.6/ |
H A D | init.tcl | 247 } elseif {$tcl_platform(os) == "Windows NT"} { 272 if {$tcl_platform(os) == "Windows NT"} {
|
/ast/src/lib/libast/regex/ |
H A D | regnexec.c | 298 * 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/re/ |
H A D | testregex.c | 1166 expand(char* os, char* ot) argument 1168 char* s = os; 1190 for (t = ot; os < s; *t++ = *os++); 1192 os = ot; 1215 return os;
|
/ast/src/lib/libz/ |
H A D | zlib.h | 113 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
|
H A D | inflate.c | 663 state->head->os = (int)(hold >> 8);
|
H A D | deflate.c | 610 put_byte(s, s->gzhead->os & 0xff);
|
/ast/src/cmd/INIT/ |
H A D | package.sh | 2022 expected=$1 host=$2 arch=$3 mach=$4 os=$5 sys=$6 rel=$7 ver=$8 2030 2) host= mach= arch=$1 os=$2 sys= rel= ;; 2031 *) host= mach=$2 arch=$1 os=$3 sys= rel= ;; 2033 case $os in 2035 eval `echo $os | $SED -e 's/^\([^0123456789.]*\)\.*\(.*\)/os=\1 rel=\2/'` 2039 *) arch=$canon mach= os= sys= rel= 2070 os=ncr 2087 then os=$3 2098 case $os i [all...] |
H A D | ratz.c | 2882 state->head->os = (int)(hold >> 8);
|