Searched refs:dirp (Results 26 - 50 of 105) sorted by relevance

12345

/freebsd-9.3-release/gnu/usr.bin/patch/
H A Dbackupfile.c147 DIR *dirp; local
153 dirp = opendir (dir);
154 if (!dirp)
160 while ((dp = readdir (dirp)) != 0)
169 closedir (dirp);
/freebsd-9.3-release/usr.sbin/sysinstall/
H A Dmodules.c50 DIR *dirp; local
60 dirp = opendir(MODULESDIR);
61 if (dirp) {
62 while ((dp = readdir(dirp))) {
109 closedir(dirp);
/freebsd-9.3-release/usr.bin/rwho/
H A Drwho.c61 DIR *dirp; variable
115 if (chdir(_PATH_RWHODIR) || (dirp = opendir(".")) == NULL)
119 while ((dp = readdir(dirp))) {
/freebsd-9.3-release/contrib/groff/src/preproc/pic/
H A Dobject.cpp790 graphic_object *object_spec::make_box(position *curpos, direction *dirp) argument
824 if (!position_rectangle(p, curpos, dirp)) {
834 position *curpos, direction *dirp)
837 dir = *dirp; // ignore any direction in attribute list
944 graphic_object *object_spec::make_block(position *curpos, direction *dirp) argument
962 if (!position_rectangle(block, curpos, dirp)) {
982 graphic_object *object_spec::make_text(position *curpos, direction *dirp) argument
994 if (!position_rectangle(p, curpos, dirp)) {
1032 graphic_object *object_spec::make_ellipse(position *curpos, direction *dirp) argument
1053 if (!position_rectangle(p, curpos, dirp)) {
833 position_rectangle(rectangle_object *p, position *curpos, direction *dirp) argument
1081 make_circle(position *curpos, direction *dirp) argument
1129 make_move(position *curpos, direction *dirp) argument
1416 make_line(position *curpos, direction *dirp) argument
1732 make_arc(position *curpos, direction *dirp) argument
1794 make_linear(position *curpos, direction *dirp) argument
1824 make_object(position *curpos, direction *dirp) argument
[all...]
/freebsd-9.3-release/usr.sbin/mountd/
H A Dmountd.c180 void del_mlist(char *hostp, char *dirp);
1148 xdr_dir(XDR *xdrsp, char *dirp) argument
1150 return (xdr_string(xdrsp, &dirp, MNTPATHLEN));
1350 char *cp, *endcp, *dirp, *hst, *usr, *dom, savedc; local
1372 dirp = NULL;
1418 if (dirp != NULL) {
1432 if (dirp != NULL) {
1447 dirp = cp;
1490 dirp = add_expdir(&dirhead, cp, len);
1573 syslog(LOG_ERR, "V4:root, no dirp, ignore
1660 char *dirp; local
1996 dirp_search(struct dirlist *dp, char *dirp) argument
2389 do_mount(struct exportlist *ep, struct grouplist *grp, int exflags, struct xucred *anoncrp, char *dirp, int dirplen, struct statfs *fsb) argument
2903 char *host, *dirp, *cp; local
2937 del_mlist(char *hostp, char *dirp) argument
2973 add_mlist(char *hostp, char *dirp) argument
3073 check_dirpath(char *dirp) argument
[all...]
/freebsd-9.3-release/sbin/ldconfig/
H A Delfhints.c107 DIR *dirp; local
110 if ((dirp = opendir(dirs[i])) == NULL)
112 while ((dp = readdir(dirp)) != NULL) {
138 closedir(dirp);
/freebsd-9.3-release/usr.bin/ruptime/
H A Druptime.c69 DIR *dirp; variable
111 if (chdir(_PATH_RWHODIR) || (dirp = opendir(".")) == NULL)
187 rewinddir(dirp);
191 for (nhosts = hspace = 0; (dp = readdir(dirp)) != NULL;) {
/freebsd-9.3-release/contrib/opie/
H A Dglob.c366 DIR *dirp; local
368 dirp = opendir(*gpath == '\0' ? "." : gpath);
369 if (dirp == NULL) {
375 if (fstat(dirp->dd_fd, &stb) < 0)
382 while ((dp = readdir(dirp)) != NULL) {
390 closedir(dirp);
394 closedir(dirp);
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_pragma.c212 dt_dirpath_t *dirp; local
216 for (dirp = dt_list_next(&dtp->dt_lib_path); dirp != NULL;
217 dirp = dt_list_next(dirp)) {
218 (void) snprintf(lib, len, "%s/%s", dirp->dir_path, lname);
/freebsd-9.3-release/usr.sbin/lpr/common_source/
H A Dcommon.c125 DIR *dirp; local
129 if ((dirp = opendir(pp->spool_dir)) == NULL) {
133 if (fstat(dirp->dd_fd, &stbuf) < 0)
149 while ((d = readdir(dirp)) != NULL) {
179 closedir(dirp);
186 closedir(dirp);
/freebsd-9.3-release/sbin/fsck_ffs/
H A Dinode.c557 struct direct *dirp = idesc->id_dirp; local
559 if (dirp->d_ino != idesc->id_parent || idesc->id_entryno < 2) {
563 memmove(idesc->id_name, dirp->d_name, (size_t)dirp->d_namlen + 1);
570 struct direct *dirp = idesc->id_dirp; local
572 if (dirp->d_ino == 0)
574 if (strcmp(dirp->d_name, idesc->id_name) == 0 &&
575 dirp->d_ino >= ROOTINO && dirp->d_ino <= maxino) {
576 idesc->id_parent = dirp
585 struct direct *dirp = idesc->id_dirp; local
[all...]
/freebsd-9.3-release/sbin/fsdb/
H A Dfsdb.c406 struct direct *dirp = idesc->id_dirp; local
409 slot++, diroff, dirp->d_ino, dirp->d_reclen,
410 typename[dirp->d_type], dirp->d_namlen, dirp->d_name);
411 diroff += dirp->d_reclen;
785 struct direct *dirp = idesc->id_dirp; local
788 dirp->d_ino = idesc->id_parent;
828 struct direct *dirp local
[all...]
/freebsd-9.3-release/sys/ufs/ufs/
H A Dufs_dirhash.c797 * Insert information into the hash about a new directory entry. dirp
802 ufsdirhash_add(struct inode *ip, struct direct *dirp, doff_t offset) argument
822 slot = ufsdirhash_hash(dh, dirp->d_name, dirp->d_namlen);
833 ufsdirhash_adjfree(dh, offset, -DIRSIZ(0, dirp));
839 * is defined by the name in `dirp', which must exist at the specified
843 ufsdirhash_remove(struct inode *ip, struct direct *dirp, doff_t offset) argument
854 slot = ufsdirhash_findslot(dh, dirp->d_name, dirp->d_namlen, offset);
860 ufsdirhash_adjfree(dh, offset, DIRSIZ(0, dirp));
869 ufsdirhash_move(struct inode *ip, struct direct *dirp, doff_t oldoff, doff_t newoff) argument
1144 ufsdirhash_getprev(struct direct *dirp, doff_t offset) argument
[all...]
H A Dufs_lookup.c859 * that it left in nameidata. The argument dirp is the new directory
867 ufs_direnter(dvp, tvp, dirp, cnp, newdirbp, isrename)
870 struct direct *dirp;
889 newentrysize = DIRSIZ(OFSFMT(dvp), dirp);
920 dirp->d_reclen = DIRBLKSIZ;
923 bcopy((caddr_t)dirp, (caddr_t)bp->b_data + blkoff,newentrysize);
927 ufsdirhash_add(dp, dirp, dp->i_offset);
946 dirp->d_ino, newdirbp, 1))
1079 (ep->d_ino == WINO && namlen == dirp->d_namlen &&
1080 bcmp(ep->d_name, dirp
[all...]
/freebsd-9.3-release/contrib/nvi/common/
H A Drecover.c496 DIR *dirp; local
505 if (chdir(p) || (dirp = opendir(".")) == NULL) {
511 for (found = 0; (dp = readdir(dirp)) != NULL;) {
583 (void)closedir(dirp);
600 DIR *dirp; local
610 if ((dirp = opendir(rp)) == NULL) {
619 for (found = requested = 0; (dp = readdir(dirp)) != NULL;) {
730 (void)closedir(dirp);
/freebsd-9.3-release/contrib/tcsh/
H A Dtw.init.c164 struct dirent *dirp; local
169 if ((dirp = readdir(dfd)) != NULL) {
170 Strbuf_append(res, str2short(dirp->d_name));
207 DIR *dirp; local
225 if ((dirp = opendir(short2str(*pv))) == NULL)
228 cleanup_push(dirp, opendir_cleanup);
233 while ((dp = readdir(dirp)) != NULL) {
260 cleanup_until(dirp);
/freebsd-9.3-release/usr.bin/whereis/
H A Dwhereis.c261 struct dirent *dirp; local
331 while ((dirp = readdir(dir)) != NULL) {
345 if (dirp->d_name[0] == '.' ||
352 (dirp->d_name[0] >= 'A' && dirp->d_name[0] <= 'Z') ||
353 strcmp(dirp->d_name, "distfiles") == 0)
355 if ((b = malloc(sizeof PATH_PORTS + 1 + dirp->d_namlen))
360 strcat(b, dirp->d_name);
/freebsd-9.3-release/crypto/openssh/
H A Dsftp-server.c286 DIR *dirp; member in struct:Handle
312 handle_new(int use, const char *name, int fd, int flags, DIR *dirp) argument
328 handles[i].dirp = dirp;
381 return handles[handle].dirp;
441 ret = closedir(handles[handle].dirp);
983 DIR *dirp = NULL; local
990 dirp = opendir(path);
991 if (dirp == NULL) {
994 handle = handle_new(HANDLE_DIR, path, 0, 0, dirp);
1011 DIR *dirp; local
[all...]
/freebsd-9.3-release/usr.bin/locale/
H A Dlocale.c394 DIR *dirp; local
413 dirp = opendir(_PathLocale);
414 if (dirp == NULL)
418 while ((dp = readdir(dirp)) != NULL) {
428 closedir(dirp);
/freebsd-9.3-release/contrib/cvs/src/
H A Dfilesubr.c477 DIR *dirp; local
489 if ((dirp = CVS_OPENDIR (path)) == NULL)
496 while ((dp = CVS_READDIR (dirp)) != NULL)
514 CVS_CLOSEDIR(dirp);
523 CVS_CLOSEDIR(dirp);
535 CVS_CLOSEDIR (dirp);
539 CVS_CLOSEDIR (dirp);
/freebsd-9.3-release/bin/rcp/
H A Drcp.c441 DIR *dirp; local
445 if (!(dirp = opendir(name))) {
460 closedir(dirp);
468 closedir(dirp);
471 while ((dp = readdir(dirp))) {
484 (void)closedir(dirp);
/freebsd-9.3-release/crypto/heimdal/appl/rcp/
H A Drcp.c377 DIR *dirp; local
381 if (!(dirp = opendir(name))) {
396 closedir(dirp);
404 closedir(dirp);
407 while ((dp = readdir(dirp))) {
420 closedir(dirp);
/freebsd-9.3-release/usr.bin/msgs/
H A Dmsgs.c277 DIR *dirp; local
279 dirp = opendir(_PATH_MSGS);
280 if (dirp == NULL)
286 for (dp = readdir(dirp); dp != NULL; dp = readdir(dirp)){
319 closedir(dirp);
/freebsd-9.3-release/sys/fs/msdosfs/
H A Dmsdosfs_denode.c300 struct direntry *dirp; local
317 error = readde(dep, &bp, &dirp);
321 if (bcmp(dirp, &dir, sizeof(dir)) == 0) {
327 *dirp = dir;
/freebsd-9.3-release/usr.sbin/config/
H A Dmain.c594 DIR *dirp; local
609 if ((dirp = opendir(p)) == NULL)
611 while ((dp = readdir(dirp)) != NULL) {
633 (void)closedir(dirp);

Completed in 161 milliseconds

12345