Searched refs:ent (Results 1 - 25 of 38) sorted by relevance

12

/ast/src/lib/libardir/
H A Dtestar.c28 Ardirent_t* ent; local
40 while (ent = ardirnext(dir))
44 ent->mtime = touch;
45 ardirchange(dir, ent);
46 sfprintf(sfstdout, "touch %s\n", ent->name);
49 sfprintf(sfstdout, "%s %8u %8u %8llu %8llu %s %s\n", fmtmode(ent->mode, 1), ent->uid, ent->gid, ent->size, ent
[all...]
H A Dardir.c79 ardircopy(Ardir_t* ar, Ardirent_t* ent, int fd) argument
87 if (ent->offset < 0)
93 if (lseek(ar->fd, ent->offset, SEEK_SET) != ent->offset)
95 z = ent->size;
120 z = ent->size;
125 ardirchange(Ardir_t* ar, Ardirent_t* ent) argument
132 return (*ar->meth->changef)(ar, ent);
H A Dar-pdp11.c134 pdpchange(Ardir_t* ar, Ardirent_t* ent) argument
145 swapput(state->swap, (char*)&state->header.ar_date, sizeof(state->header.ar_date), (intmax_t)ent->mtime);
H A Dar-s5r0.c164 s5r0change(Ardir_t* ar, Ardirent_t* ent) argument
175 swapput(0, (char*)&state->member.arf_date, sizeof(state->member.arf_date), (intmax_t)ent->mtime);
/ast/src/lib/libcmd/
H A Drm.c106 rm(State_t* state, register FTSENT* ent) argument
113 if (ent->fts_info == FTS_NS || ent->fts_info == FTS_ERR || ent->fts_info == FTS_SLNONE)
116 error(2, "%s: not found", ent->fts_path);
118 else if (state->fs3d && iview(ent->fts_statp))
119 fts_set(NiL, ent, FTS_SKIP);
120 else switch (ent->fts_info)
126 if (!beenhere(ent))
128 if (!chmod(ent
334 FTSENT* ent; local
[all...]
H A Dcp.c236 visit(State_t* state, register FTSENT* ent) argument
255 if (ent->fts_info == FTS_DC)
257 error(2, "%s: directory causes cycle", ent->fts_path);
258 fts_set(NiL, ent, FTS_SKIP);
261 if (ent->fts_level == 0)
263 base = ent->fts_name;
264 len = ent->fts_namelen;
269 state->presiz = ent->fts_pathlen;
275 state->presiz -= base - ent->fts_name;
276 base = ent
686 FTSENT* ent; local
[all...]
H A Dchmod.c167 register FTSENT*ent; local
268 while (!sh_checksig(context) && (ent = fts_read(fts)))
269 switch (ent->fts_info)
282 error(ERROR_system(0), "%s: cannot change symlink mode", ent->fts_path);
295 mode = strperm(amode, &last, ent->fts_statp->st_mode);
296 if (show || (*chmodf)(ent->fts_accpath, mode) >= 0)
298 if (notify == 2 || notify == 1 && (mode&S_IPERM) != (ent->fts_statp->st_mode&S_IPERM))
299 sfprintf(sfstdout, "%s: mode changed to %0.4o (%s)\n", ent->fts_path, mode, fmtmode(mode, 1)+1);
302 error(ERROR_system(0), "%s: cannot change mode", ent->fts_path);
306 error(ERROR_warn(0), "%s: directory causes cycle", ent
[all...]
H A Dchgrp.c226 register FTSENT*ent; local
397 while (!sh_checksig(context) && (ent = fts_read(fts)))
398 switch (ent->fts_info)
412 error(ERROR_system(0), "%s: cannot change symlink owner/group", ent->fts_path);
423 if ((unsigned long)ent->fts_statp->st_ctime >= before)
429 keys[0].uid = keys[1].uid = ent->fts_statp->st_uid;
430 keys[0].gid = keys[2].gid = ent->fts_statp->st_gid;
452 uid = ent->fts_statp->st_uid;
454 gid = ent->fts_statp->st_gid;
459 error(ERROR_warn(0), "%s: uid and gid not mapped", ent
[all...]
H A Dcksum.c449 FTSENT* ent; local
596 while (!sh_checksig(context) && (ent = fts_read(fts)))
597 switch (ent->fts_info)
600 if (!(flags & FTS_PHYSICAL) || (flags & FTS_META) && ent->fts_level == 1)
601 fts_set(NiL, ent, FTS_FOLLOW);
604 if (sp = openfile(ent->fts_accpath, "rb"))
606 pr(&state, sfstdout, sp, ent->fts_path, state.permissions, ent->fts_statp, state.check);
611 error(ERROR_warn(0), "%s: directory causes cycle", ent->fts_path);
614 error(ERROR_system(0), "%s: cannot read directory", ent
[all...]
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c103 struct DataEntry *ent = DataSpool; local
105 while( ent != NULL ) {
106 if( strcmp( ent->fpath, fpath ) == 0 &&
107 strcmp( ent->key, key ) == 0 ) {
108 free( ent->data );
111 ent = ent->next;
113 if( ent == NULL ) {
114 ent = (struct DataEntry *) MallocZero( sizeof(*ent) );
133 struct DataEntry *ent = DataSpool; local
166 struct DataEntry *ent = DataSpool; local
[all...]
/ast/src/cmd/std/
H A Ddu.c98 mark(Dt_t* dict, Hit_t* key, FTSENT* ent) argument
112 error(1, "%s: file id dictionary out of space", ent->fts_path);
120 register FTSENT* ent; local
224 while (ent = fts_read(fts))
226 if (ent->fts_info != FTS_DP)
228 if (multiple && !ent->fts_level)
230 if (s = strrchr(ent->fts_path, '/'))
233 d = ent->fts_path;
246 fts_set(NiL, ent, FTS_SKIP);
252 hit.id.dev = ent
[all...]
H A Dpss.c116 if (!pss->ent && !(pss->ent = vmnewof(pss->vm, 0, Pssent_t, 1, 0)))
122 pe = pss->ent;
250 pss->ent = 0;
288 register struct dirent* ent; local
307 while (ent = readdir(dir))
309 if (D_NAMLEN(ent) + (base - path) + 1 > sizeof(path))
311 if (!sub && (ent->d_name[0] != 'c' && ent->d_name[0] != 't' && ent
[all...]
H A Dpsslib.h34 Pssent_t* ent; /* last entry */ \
H A Dpss-procfs.c148 struct dirent* ent;
156 if (!(ent = readdir(state->dir)))
158 pss->pid = (Pss_id_t)strtol(ent->d_name, &e, 10);
/ast/src/cmd/pax/
H A Dpax-ar.c33 Ardirent_t* ent; member in struct:Ar_s
77 if (!(ar->ent = ardirnext(ar->dir)))
82 f->name = ar->ent->name;
85 f->st->st_mode = X_IFREG|(ar->ent->mode&X_IPERM);
86 f->st->st_uid = ar->ent->uid;
87 f->st->st_gid = ar->ent->gid;
90 f->st->st_mtime = ar->ent->mtime;
91 f->st->st_size = ar->ent->size;
104 if (ar->ent->offset < 0)
111 if (ardircopy(ar->dir, ar->ent, wf
[all...]
/ast/src/cmd/nmake/
H A Darchive.c67 register Ardirent_t* ent; local
75 while (ent = ardirnext(ar))
79 if ((Seconds_t)ent->mtime > (Seconds_t)ar->st.st_mtime)
80 message((-1, "member %s is newer than archive %s", ent->name, name));
81 addfile(d, ent->name, ((r = staterule(RULE, NiL, ent->name, -1)) && ent->mtime == tmxsec(r->time)) ? r->time : tmxsns(ent->mtime, 0));
83 else if ((r = getrule(ent->name)) && r->status == TOUCH)
85 ent
[all...]
/ast/src/lib/libtk/library/demos/
H A Dfilebox.tcl26 entry $f.ent -width 20
27 button $f.but -text "Browse ..." -command "fileDialog $w $f.ent $i"
29 pack $f.ent -side left -expand yes -fill x
40 proc fileDialog {w ent operation} {
62 $ent delete 0 end
63 $ent insert 0 $file
64 $ent xview end
/ast/src/cmd/mailx/port/
H A Dmime.c178 register Ent_t* ent = (Ent_t*)object; local
181 while (cap = ent->cap)
183 ent->cap = cap->next;
186 free(ent);
196 register Ent_t* ent; local
292 ent = (Ent_t*)dtmatch(mp->cap, s);
295 if (ent)
300 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next)
308 ent->cap = cap;
310 ent
395 register Ent_t* ent = (Ent_t*)object; local
430 Ent_t* ent; local
573 register Ent_t* ent; local
[all...]
/ast/src/lib/libast/misc/
H A Dmime.c126 register Ent_t* ent = (Ent_t*)object; local
129 while (cap = ent->cap)
131 ent->cap = cap->next;
134 free(ent);
144 register Ent_t* ent; local
240 ent = (Ent_t*)dtmatch(mp->cap, s);
243 if (ent)
248 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next)
256 ent->cap = cap;
258 ent
344 register Ent_t* ent = (Ent_t*)object; local
387 Ent_t* ent; local
444 Ent_t* ent; local
636 register Ent_t* ent; local
[all...]
/ast/src/lib/libtk/library/
H A Dtkfbox.tcl686 focus $data(ent)
687 $data(ent) delete 0 end
688 $data(ent) insert 0 $data(selectFile)
689 $data(ent) select from 0
690 $data(ent) select to end
691 $data(ent) icursor end
819 set data(ent) [entry $f2.ent]
840 pack $f2.ent -expand yes -fill both -padx 2 -pady 2
855 bind $data(ent) <Retur
[all...]
/ast/src/cmd/codexlib/compress/
H A Dcompress.c155 #define ent zs->u.w.zs_ent macro
551 if (output(zs, p->sp, (code_int)ent, &p->sfdisc))
677 ent = *bp++;
683 fcode = (long)(((long)c << maxbits) + ent);
684 i = ((c << hshift) ^ ent); /* Xor hashing. */
687 ent = codetabof(i);
698 ent = codetabof(i);
703 nomatch: if (output(zs, f, (code_int) ent, dp) == -1)
706 ent = c;
/ast/src/lib/libz/
H A Dsfdclzw.c148 #define ent zs->u.w.zs_ent macro
473 if (output(zs, f, (code_int) ent, dp) == -1)
556 ent = *bp++;
570 fcode = (long)(((long)c << maxbits) + ent);
571 i = ((c << hshift) ^ ent); /* Xor hashing. */
574 ent = codetabof(i);
585 ent = codetabof(i);
590 nomatch: if (output(zs, f, (code_int) ent, dp) == -1)
593 ent = c;
/ast/src/cmd/mailx/
H A Dfio.c259 register FTSENT* ent; local
298 while (ent = fts_read(fts)) {
299 xp->next = strtol(ent->fts_name, &e, 10) + 1;
302 if (ent->fts_level > 0)
303 fts_set(NiL, ent, FTS_SKIP);
356 register FTSENT* ent; local
378 while (ent = fts_read(fts)) {
379 index = strtol(ent->fts_name, &e, 10);
382 if ((ent->fts_info & FTS_F) && (fp = fileopen(ent
[all...]
/ast/src/lib/libdll/
H A Ddllscan.c39 FTSENT* ent; \
393 while (!scan->ent || !(scan->ent = scan->ent->fts_link))
436 if ((scan->fts = fts_open((char**)t, FTS_LOGICAL|FTS_NOPOSTORDER|FTS_ONEPATH, vercmp)) && (scan->ent = fts_read(scan->fts)) && (scan->ent = fts_children(scan->fts, FTS_NOSTAT)))
440 } while (!strmatch(scan->ent->fts_name, scan->pat));
441 b = scan->ent->fts_name;
/ast/src/cmd/html/
H A Dhtmlrefs.c461 FTSENT* ent; local
466 while (ent = fts_read(fts))
468 if (state->external && ent->fts_info == FTS_D)
470 sfsprintf(state->buf, sizeof(state->buf) - 1, "%s/%s", ent->fts_path, state->index.data);
487 if (fts_set(NiL, ent, FTS_SKIP))
488 error(1, "%s: cannot skip", ent->fts_path);
495 return ent;
603 FTSENT* ent; local
612 while (ent = scan(state, fts))
613 add(state, ent
903 FTSENT* ent; local
[all...]

Completed in 75 milliseconds

12