/freebsd-10-stable/sys/compat/svr4/ |
H A D | svr4_dirent.h | 40 char d_name[SVR4_MAXNAMLEN + 1]; member in struct:svr4_dirent 47 char d_name[SVR4_MAXNAMLEN + 1]; member in struct:svr4_dirent64 50 #define SVR4_NAMEOFF(dp) ((char *)&(dp)->d_name - (char *)dp)
|
/freebsd-10-stable/contrib/dtc/ |
H A D | fstree.c | 42 if (streq(de->d_name, ".") 43 || streq(de->d_name, "..")) 46 tmpnam = join_path(dirname, de->d_name); 61 prop = build_property(xstrdup(de->d_name), 71 newchild = name_node(newchild, xstrdup(de->d_name));
|
/freebsd-10-stable/usr.sbin/pw/ |
H A D | rm_r.c | 59 if (strcmp(e->d_name, ".") == 0 || strcmp(e->d_name, "..") == 0) 62 if (fstatat(dirfd, e->d_name, &st, AT_SYMLINK_NOFOLLOW) != 0) 65 rm_r(dirfd, e->d_name, uid); 67 unlinkat(dirfd, e->d_name, 0);
|
H A D | cpdir.c | 75 if (strcmp(e->d_name, ".") == 0 || strcmp(e->d_name, "..") == 0) 78 p = e->d_name; 86 copymkdir(homefd, p, openat(skelfd, e->d_name, O_DIRECTORY), 92 (len = readlinkat(skelfd, e->d_name, lnk, sizeof(lnk) -1)) 103 if ((srcfd = openat(skelfd, e->d_name, O_RDONLY)) == -1)
|
/freebsd-10-stable/sys/sys/ |
H A D | dirent.h | 54 __uint8_t d_namlen; /* length of string in d_name */ 57 char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ member in struct:dirent 59 char d_name[255 + 1]; /* name must be no longer than this */ member in struct:dirent 86 * without the d_name field, plus enough space for the name with a terminating
|
/freebsd-10-stable/contrib/gdb/gdb/ |
H A D | gdb_dirent.h | 27 # define NAMELEN(dirent) strlen ((dirent)->d_name) /* OK: strlen d_name */
|
/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | dirent.h | 44 sizeof(((struct dirent *)NULL)->d_name) + \
|
/freebsd-10-stable/sys/i386/ibcs2/ |
H A D | ibcs2_dirent.h | 55 char d_name[1]; member in struct:ibcs2_dirent
|
/freebsd-10-stable/gnu/usr.bin/grep/ |
H A D | savedir.c | 35 # define NAMLEN(dirent) strlen((dirent)->d_name) 133 if (dp->d_name[0] != '.' 134 || (dp->d_name[1] != '\0' 135 && (dp->d_name[1] != '.' || dp->d_name[2] != '\0'))) 140 && !isdir1 (dir, dp->d_name)) 166 namep = stpcpy (namep, dp->d_name) + 1;
|
/freebsd-10-stable/lib/libc/gen/ |
H A D | scandir.c | 54 * d_name field, plus enough space for the name and a terminating nul byte 59 ((sizeof(struct dirent) - sizeof(dp)->d_name) + \ 93 bcopy(d->d_name, p->d_name, p->d_namlen + 1); 135 return (strcoll((*d1)->d_name, (*d2)->d_name));
|
H A D | getcwd.c | 52 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 53 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 176 if (fstatat(_dirfd(dir), dp->d_name, &s, 210 bcopy(dp->d_name, bpt, dp->d_namlen);
|
/freebsd-10-stable/sys/boot/common/ |
H A D | ls.c | 104 if (strcmp(d->d_name, ".") && strcmp(d->d_name, "..")) { 108 buf = malloc(strlen(path) + strlen(d->d_name) + 2); 109 sprintf(buf, "%s/%s", path, d->d_name); 115 (int)sb.st_size, d->d_name); 117 sprintf(lbuf, " %c %s\n", typestr[d->d_type], d->d_name);
|
/freebsd-10-stable/contrib/diff/src/ |
H A D | dir.c | 94 char *d_name = next->d_name; local 98 if (d_name[0] == '.' 99 && (d_name[1] == 0 || (d_name[1] == '.' && d_name[2] == 0))) 102 if (excluded_filename (excluded, d_name)) 112 memcpy (data + data_used, d_name, d_size);
|
/freebsd-10-stable/share/examples/sunrpc/dir/ |
H A D | dir_proc.c | 43 nl->name = malloc(strlen(d->d_name)+1); 44 strcpy(nl->name, d->d_name);
|
/freebsd-10-stable/usr.sbin/config/ |
H A D | mkheaders.c | 60 dp->d_name);
|
/freebsd-10-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-closefrom.c | 35 # define NAMLEN(dirent) strlen((dirent)->d_name) 82 fd = strtol(dent->d_name, &endp, 10); 83 if (dent->d_name != endp && *endp == '\0' &&
|
H A D | getcwd.c | 48 (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \ 49 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) 173 memcpy(bup, dp->d_name, dp->d_namlen + 1); 210 memcpy(bpt, dp->d_name, dp->d_namlen);
|
/freebsd-10-stable/sys/ufs/ufs/ |
H A D | dir.h | 81 u_int8_t d_namlen; /* length of string in d_name */ 82 char d_name[MAXNAMLEN + 1];/* name with length <= MAXNAMLEN */ member in struct:direct 107 * without the d_name field, plus enough space for the name with a terminating 113 (((uintptr_t)&((struct direct *)0)->d_name + \ 114 ((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)
|
/freebsd-10-stable/usr.sbin/ctm/mkCTM/ |
H A D | mkctm.c | 118 if (!strcmp(de->d_name, ".")) return 0; 119 if (!strcmp(de->d_name, "..")) return 0; 127 strlen(de->d_name) + 3); 132 strcat(buf, "/"); strcat(buf, de->d_name); 135 pfx, name, de->d_name, 137 fprintf(logf, "%s %s%s\n", pfx, name, de->d_name); 139 fprintf(stderr, "%s %s%s\n", pfx, name, de->d_name); 147 char *p = alloca(strlen(name)+strlen(de->d_name)+2); 149 strcpy(p, name); strcat(p, de->d_name); strcat(p, "/"); 154 strlen(de->d_name) [all...] |
/freebsd-10-stable/libexec/rtld-aout/ |
H A D | shlib.c | 276 if(strlen(dp->d_name) < 3 + namelen + 2 || /* lib+xxx+.a */ 277 strncmp(dp->d_name, "lib", 3) != 0 || 278 strncmp(dp->d_name + 3, name, namelen) != 0 || 279 dp->d_name[3+namelen] != '.') 282 extension = dp->d_name + 3 + namelen + 1; /* a or so.* */ 306 strcpy(dot_so_name, dp->d_name); 311 strcpy(dot_a_name, dp->d_name);
|
/freebsd-10-stable/release/picobsd/tinyware/aps/ |
H A D | main.c | 57 if(e->d_name[0]=='.') continue; 59 if(e->d_name[0]=='c') continue; 60 sprintf(buf,"/proc/%s/status",e->d_name);
|
/freebsd-10-stable/crypto/openssh/ |
H A D | sftp-glob.c | 80 * Solaris defines dirent->d_name as a one byte array and expects 84 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); 86 strlcpy(ret->d_name, od->dir[od->offset++]->filename, 87 sizeof(ret->d_name));
|
/freebsd-10-stable/contrib/netbsd-tests/fs/kernfs/ |
H A D | t_basic.c | 62 ATF_REQUIRE_STREQ(dent->d_name, "."); 64 ATF_REQUIRE_STREQ(dent->d_name, ".."); 66 ATF_REQUIRE_STREQ(dent->d_name, "boottime");
|
/freebsd-10-stable/contrib/netbsd-tests/fs/hfs/ |
H A D | t_pathconvert.c | 64 if (strchr(dirent->d_name, '/')) 65 atf_tc_fail("dirent with slash: %s", dirent->d_name); 66 if (0 == strcmp(FUNNY_FILENAME, dirent->d_name))
|
/freebsd-10-stable/contrib/libreadline/ |
H A D | posixdir.h | 31 # define D_NAMLEN(d) (strlen ((d)->d_name))
|