Searched refs:up (Results 1 - 25 of 35) sorted by relevance

12

/ast/src/lib/libast/dir/
H A Dgetdents.c80 register struct dirent* up; /* user */
92 up = (struct dirent*)buf;
102 up->d_fileno = i;
103 u = up->d_name;
104 while ((*u = *sp++) && u < up->d_name + MAXNAMLEN) u++;
106 up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - up->d_name) + 1;
107 up
[all...]
/ast/src/lib/libast/comp/
H A Dgetoptl.c37 static Sfio_t* up; variable
49 if (!up || optstring != lastoptstring || longopts != lastlongopts)
51 if (!up && !(up = sfstropen()) || !(t = strdup(optstring)))
53 sfprintf(up, "[-1p%d]", flags);
57 sfprintf(up, "\n[%d:%s]", UCHAR_MAX + 1 + (o - longopts), o->name);
60 sfprintf(up, "\n[%c:%s]", o->val, o->name);
74 sfputc(up, ':');
76 sfputc(up, '?');
77 sfprintf(up, "[strin
[all...]
/ast/src/cmd/std/
H A Dtouch.c91 "times that can be set. These limitations may not show up until a "
123 Tv_t* up; local
131 up = 0;
156 up = &uv;
157 tmx2tv(t, up);
192 up = &uv;
196 tvgetatime(up, &st);
199 tvgetctime(up, &st);
202 tvgetmtime(up, &st);
207 else if (!use && !up)
[all...]
/ast/src/lib/libcs/
H A Dcsnote.c55 long up; local
57 if (sp->up < 0)
59 idle = -sp->up;
60 up = 0;
65 up = sp->up;
72 a = (encode(up) << 16) | encode(idle);
77 return touch(name, (encode(up) << 16) | encode(idle), (((sp->load >> 3) & 0377) << 24) | ((sp->pctsys & 0377) << 16) | ((sp->pctusr & 0377) << 8) | (sp->users & 0377), -1);
H A Dcsstat.c100 sp->up = -CS_STAT_DOWN;
106 if (!(sp->up = (((a >> 16) & 0x7ff) << ((a >> 27) & 0x1f))))
109 sp->up = -(((a & 0x7ff) << ((a >> 11) & 0x1f)) + (long)(state->time - (unsigned long)st.st_ctime));
H A Dcs.h168 long up; /* up (down<0) time in secs */ member in struct:__anon335
/ast/src/cmd/builtin/
H A Dwho.c167 static void outline(Sfio_t *out,register struct utmpx *up,register State_t* sp) argument
170 time_t t = up->ut_time;
172 char line[sizeof(up->ut_line)+6];
176 sfsprintf(line,sizeof(line),"/dev/%s\0",up->ut_line);
184 sfprintf(out,"%-*.*s %c %-*.*s %.12s ",sp->siz_user,sp->siz_user,up->ut_user,state,sp->siz_line,sp->siz_line,up->ut_line,date+4);
187 sfprintf(out,"%-*.*s %-*.*s %.12s ",sp->siz_user,sp->siz_user,up->ut_user,sp->siz_line,sp->siz_line,up->ut_line,date+4);
191 sfsprintf(line,sizeof(line),"/dev/%s\0",up->ut_line);
194 t = (t-(up
[all...]
/ast/src/cmd/ss/
H A Dss.c50 "[t:time?Sort by system up time.]"
161 if (a->stat.up < b->stat.up)
163 if (a->stat.up > b->stat.up)
248 sfprintf(sfstdout, "%-12s%4s%7s,%3d user%s idle%7s, load%3d.%02d, %%usr%3d, %%sys%3d\n", sp->name, sp->stat.up < 0 ? "down" : "up", fmtelapsed(sp->stat.up < 0 ? -sp->stat.up : sp->stat.up,
[all...]
H A Dssd.c250 if (ss->up < 0)
253 if (down) ss->up -= (long)(tm - down);
363 if (ss.up > 0)
364 ss.up = -ss.up;
653 ss.up = since(boottime);
/ast/src/cmd/ksh93/sh/
H A Dname.c1599 register union Value *up; local
1639 up= &np->nvalue;
1642 if(!np->nvalue.up || !nv_isarray(np))
1644 up = &u;
1645 up->up = &np->nvalue;
1649 else if(np->nvalue.up && nv_isarray(np) && (ap=nv_arrayptr(np)) && !ap->fixed)
1651 else if(np->nvalue.up && nv_isarray(np) && nv_arrayptr(np))
1653 up = np->nvalue.up;
2486 register union Value *up; local
2771 register union Value *up= &np->nvalue; local
2903 register union Value *up; local
[all...]
H A Darray.c198 register union Value *up; local
212 up = &mp->nvalue;
222 up = &np->nvalue;
224 up->cp = *(((char**)fp->data)+fp->curi);
226 up->cp = fp->data+fp->size*fp->curi;
233 up = &(ap->val[ap->cur]);
243 return(up);
249 union Value *up; local
254 up = &(ap->val[ap->cur]);
255 if(up
275 register union Value *up; local
607 register union Value *up; local
936 union Value *up; local
1029 union Value *up; local
[all...]
H A Dnvdisc.c254 union Value *up = np->nvalue.up; local
304 np->nvalue.up = up;
376 union Value *up = np->nvalue.up; local
410 np->nvalue.up = up;
/ast/src/lib/libpp/
H A Dppsearch.c114 register struct ppdirs* up; local
334 for (up = dp->info.subdir; up; up = up->next)
335 if (up->name == prefix)
337 if (!up)
339 up = newof(0, struct ppdirs, 1, 0);
340 up->name = prefix;
341 up
[all...]
/ast/src/lib/libtk/library/
H A Dscale.tcl69 tkScaleIncrement %W up little noRepeat
75 tkScaleIncrement %W up little noRepeat
81 tkScaleIncrement %W up big noRepeat
87 tkScaleIncrement %W up big noRepeat
133 tkScaleIncrement $w up little initial
180 # to set up auto-repeating of the action if that is desired. The
186 # dir - "up" means move value towards -from, "down" means
208 if {([$w cget -from] > [$w cget -to]) ^ ($dir == "up")} {
/ast/src/cmd/3d/
H A Dfs.c99 * return real fd for up under mount mp to be accessed by call
104 fsreal(register Mount_t* mp, long call, const char* up) argument
118 n = sfsprintf(s, sizeof(dev) - 1, "%s %-*s %s%s%-*s pwd=%s%s%s", msgname(call), lz, mp->logical, up, pz ? " physical=" : "", pz, mp->physical ? mp->physical : "", state.pwd, mp->fs->attr, mp->attr);
155 const char* up; local
177 up = 0;
208 if (sp) mp = getmount(sp, &up);
307 fd = strtol(up, (char**)&ep, 0);
328 else if ((sp = (const char*)fsreal(mp, MSG_open, up)) && (fd = fsfd(mp->fs)) > 0)
337 up = sp;
340 sp = up;
[all...]
H A Dpathreal.c416 const char* up; local
418 if ((mp = getmount(sp, &up)) && (mp->fs->flags & FS_NAME) && (sp = fsreal(mp, MSG_open, (char*)up)) && !LSTAT(sp, st))
/ast/src/cmd/tests/sfio/
H A Dtdisc.c144 char buf[1024], low[64], up[64]; local
154 u = up;
192 if(strcmp(s,up) != 0)
/ast/src/cmd/mailx/
H A Dlocal.c174 register struct name* up; local
177 up = dictsearch(&state.userid, name, INSERT);
178 if (!up->value)
179 up->flags = (pw = getpwnam(name)) ? pw->pw_uid : -1;
180 return up->flags;
/ast/src/cmd/coshell/
H A Dschedule.c249 ap->stat.up = -LOST;
411 if (a->global.set & SETUPDATE) sp->update = a->stat.up;
474 sp->stat.up = 0;
482 if (sp->stat.up < 0)
487 sp->stat.up = 0;
518 if (sp->stat.up < 0) sp->update = cs.time + CS_STAT_DOWN;
522 if (sp->fd > 0 && (2 * sp->stat.up) < (cs.time - sp->start)) shellclose(sp, -1);
525 message((-4, "%s: %s=%s idle=%s load=%s users=%d rank=%s", sp->name, sp->stat.up < 0 ? "down" : "up", fmtelapsed(sp->stat.up <
[all...]
/ast/src/lib/libdss/
H A Ddssopen.c228 Sfio_t* up; local
234 if (!(up = sfstropen()))
240 sfprintf(up, "%s", usage);
242 if (tagusage(dss_tags, up, &tagdisc))
244 sfclose(up);
247 sfputc(up, '}');
248 sfputc(up, '\n');
249 if (!(us = sfstruse(up)))
251 sfclose(up);
272 sfclose(up);
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dread.c296 /* set up state table based on IFS */
345 char buf[256],*var=buf,*cur,*end,*up,*v; local
355 up = cur = var;
408 ssize_t cx = cur - var, ux = up - var;
419 up = var + ux;
435 while (up < cur && (z = mbsize(up)) > 0)
437 up += z;
440 if((size -= x) > 0 && (up >= cur || z < 0) && ((flags & NN_FLAG) || z < 0 || m > c))
446 if(!binary && mbwide() && (up
[all...]
/ast/src/lib/libtk/library/demos/
H A Dbind.tcl4 # up for hypertext-like effects.
27 # Set up display styles.
40 The same tag mechanism that controls display styles in text widgets can also be used to associate Tcl commands with regions of text, so that mouse or keyboard actions on the text cause particular Tcl commands to be invoked. For example, in the text below the descriptions of the canvas demonstrations have been tagged. When you move the mouse over a demo description the description lights up, and when you press button 1 over a description then that particular demonstration is invoked.
H A Dtext.tcl33 2. Scanning. Press mouse button 2 in the text window and drag up or down.
/ast/src/cmd/ksh93/include/
H A Dname.h52 union Value *up; /* for indirect node */ member in union:Value
/ast/src/cmd/pax/
H A Dtestpax.sh25 # - don't clean up pax.tmp
26 # . exit on first failure (and don't clean up)
283 : clean up

Completed in 36 milliseconds

12