HomeSort by: relevance | last modified time | path
    Searched refs:dirp (Results 1 - 25 of 246) sorted by relevancy

1 2 3 4 5 6 7 8 910

  /src/external/gpl3/gdb/dist/gnulib/import/
rewinddir.c 31 rewinddir (DIR *dirp)
34 if (dirp->current != INVALID_HANDLE_VALUE)
35 FindClose (dirp->current);
38 dirp->status = -1;
39 dirp->current = FindFirstFile (dirp->dir_name_mask, &dirp->entry);
40 if (dirp->current == INVALID_HANDLE_VALUE)
45 dirp->status = -2;
49 dirp->status = ENOENT
    [all...]
closedir.c 40 closedir (DIR *dirp)
43 int fd = dirfd (dirp);
50 retval = closedir (dirp);
58 if (dirp->current != INVALID_HANDLE_VALUE)
59 FindClose (dirp->current);
60 free (dirp);
readdir.c 32 readdir (DIR *dirp)
46 switch (dirp->status)
54 if (!FindNextFile (dirp->current, &dirp->entry))
59 dirp->status = -2;
68 errno = dirp->status;
72 dirp->status = 0;
74 if (dirp->entry.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
76 else if (dirp->entry.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
78 else if ((dirp->entry.dwFileAttribute
    [all...]
opendir.c 63 DIR *dirp; local
65 dirp = opendir (dir_name);
66 if (dirp == NULL)
72 if (fd == -1 || _gl_register_dirp_fd (fd, dirp))
77 closedir (dirp);
91 struct gl_directory *dirp;
146 dirp =
150 if (dirp == NULL)
157 dirp->status = status;
158 dirp->current = current
    [all...]
dirfd.c 31 DIR *dirp; member in struct:dirp_fd_list
36 /* Register fd associated with dirp to dirp_fd_list. */
38 _gl_register_dirp_fd (int fd, DIR *dirp)
44 new_dirp_fd->dirp = dirp;
90 if (dirp_fd->dirp == dir_p)
  /src/external/gpl3/gdb.old/dist/gnulib/import/
rewinddir.c 31 rewinddir (DIR *dirp)
34 if (dirp->current != INVALID_HANDLE_VALUE)
35 FindClose (dirp->current);
38 dirp->status = -1;
39 dirp->current = FindFirstFile (dirp->dir_name_mask, &dirp->entry);
40 if (dirp->current == INVALID_HANDLE_VALUE)
45 dirp->status = -2;
49 dirp->status = ENOENT
    [all...]
closedir.c 40 closedir (DIR *dirp)
43 int fd = dirfd (dirp);
50 retval = closedir (dirp);
58 if (dirp->current != INVALID_HANDLE_VALUE)
59 FindClose (dirp->current);
60 free (dirp);
readdir.c 32 readdir (DIR *dirp)
46 switch (dirp->status)
54 if (!FindNextFile (dirp->current, &dirp->entry))
59 dirp->status = -2;
68 errno = dirp->status;
72 dirp->status = 0;
74 if (dirp->entry.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
76 else if (dirp->entry.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
78 else if ((dirp->entry.dwFileAttribute
    [all...]
opendir.c 63 DIR *dirp; local
65 dirp = opendir (dir_name);
66 if (dirp == NULL)
72 if (fd == -1 || _gl_register_dirp_fd (fd, dirp))
77 closedir (dirp);
91 struct gl_directory *dirp;
146 dirp =
150 if (dirp == NULL)
157 dirp->status = status;
158 dirp->current = current
    [all...]
dirfd.c 31 DIR *dirp; member in struct:dirp_fd_list
36 /* Register fd associated with dirp to dirp_fd_list. */
38 _gl_register_dirp_fd (int fd, DIR *dirp)
44 new_dirp_fd->dirp = dirp;
90 if (dirp_fd->dirp == dir_p)
  /src/lib/libc/gen/
readdir.c 57 _readdir_unlocked(DIR *dirp, int skipdeleted)
63 if (dirp->dd_loc >= dirp->dd_size) {
64 if (dirp->dd_flags & __DTF_READALL)
66 dirp->dd_loc = 0;
68 if (dirp->dd_loc == 0 && !(dirp->dd_flags & __DTF_READALL)) {
69 dirp->dd_seek = lseek(dirp->dd_fd, (off_t)0, SEEK_CUR);
70 dirp->dd_size = getdents(dirp->dd_fd
    [all...]
telldir.c 58 telldir(DIR *dirp)
63 mutex_lock((mutex_t *)dirp->dd_lock);
64 rv = _telldir_unlocked(dirp);
65 mutex_unlock((mutex_t *)dirp->dd_lock);
68 rv = _telldir_unlocked(dirp);
76 _telldir_unlocked(DIR *dirp)
80 for (lp = dirp->dd_internal; lp; lp = lp->dp_next)
81 if (lp->dp_seek == dirp->dd_seek &&
82 lp->dp_loc == dirp->dd_loc)
88 lp->dp_seek = dirp->dd_seek
    [all...]
rewinddir.c 56 rewinddir(DIR *dirp)
62 mutex_lock((mutex_t *)dirp->dd_lock);
65 fd = dirp->dd_fd;
66 _finidir(dirp);
67 dirp->dd_seek = lseek(fd, (off_t)0, SEEK_SET);
68 _initdir(dirp, fd, NULL);
71 mutex_unlock((mutex_t *)dirp->dd_lock);
closedir.c 62 closedir(DIR *dirp)
66 _DIAGASSERT(dirp != NULL);
70 mutex_lock((mutex_t *)dirp->dd_lock);
72 fd = dirp->dd_fd;
73 dirp->dd_fd = -1;
74 _finidir(dirp);
78 mutex_unlock((mutex_t *)dirp->dd_lock);
79 mutex_destroy((mutex_t *)dirp->dd_lock);
80 free(dirp->dd_lock);
83 free((void *)dirp);
    [all...]
seekdir.c 60 seekdir(DIR *dirp, long loc)
65 mutex_lock((mutex_t *)dirp->dd_lock);
66 _seekdir_unlocked(dirp, loc);
67 mutex_unlock((mutex_t *)dirp->dd_lock);
70 _seekdir_unlocked(dirp, loc);
opendir.c 78 DIR *dirp; local
84 dirp = __opendir_common(fd, name, flags);
85 if (dirp == NULL) {
90 return dirp;
118 DIR *dirp; local
123 if ((dirp = malloc(sizeof(*dirp))) == NULL)
125 dirp->dd_buf = NULL;
126 dirp->dd_internal = NULL;
129 if ((dirp->dd_lock = malloc(sizeof(mutex_t))) == NULL
    [all...]
initdir.c 56 _initdir(DIR *dirp, int fd, const char *name)
58 int flags = dirp->dd_flags;
116 dirp->dd_buf = buf;
123 dirp->dd_seek = lseek(fd, (off_t)0, SEEK_CUR);
157 dirp->dd_buf = buf;
166 dirp->dd_buf = buf;
241 dirp->dd_len = (int)len;
242 dirp->dd_size = ddptr - dirp->dd_buf;
244 dirp->dd_len = incr
    [all...]
  /src/distrib/utils/libhack/
opendir.c 60 DIR *dirp; local
72 (dirp = (DIR *)malloc(sizeof(DIR))) == NULL) {
82 dirp->dd_len = DIRBLKSIZ;
83 dirp->dd_buf = malloc((size_t)dirp->dd_len);
84 if (dirp->dd_buf == NULL) {
85 free(dirp);
89 dirp->dd_seek = 0;
92 dirp->dd_loc = 0;
93 dirp->dd_fd = fd
    [all...]
  /src/lib/libc/compat/gen/
compat__readdir_unlocked30.c 17 ___readdir_unlocked30(DIR *dirp)
19 return ___readdir_unlocked50(dirp, 1);
  /src/sbin/fsck_ext2fs/
pass2.c 225 struct ext2fs_direct *dirp = idesc->id_dirp; local
239 if (fs2h32(dirp->e2d_ino) != 0 && dirp->e2d_namlen == 1 &&
240 dirp->e2d_name[0] == '.') {
241 if (fs2h32(dirp->e2d_ino) != idesc->id_number) {
243 dirp->e2d_ino = h2fs32(idesc->id_number);
249 && (dirp->e2d_type != EXT2_FT_DIR)) {
251 dirp->e2d_type = EXT2_FT_DIR;
267 if (fs2h32(dirp->e2d_ino) != 0 && strcmp(dirp->e2d_name, "..") != 0)
    [all...]
  /src/sbin/fsck_lfs/
pass2.c 216 LFS_DIRHEADER *dirp = idesc->id_dirp; local
230 if (lfs_dir_getino(fs, dirp) != 0 && strcmp(lfs_dir_nameptr(fs, dirp), ".") == 0) {
231 if (lfs_dir_getino(fs, dirp) != idesc->id_number) {
234 lfs_dir_setino(fs, dirp, idesc->id_number);
238 if (lfs_dir_gettype(fs, dirp) != LFS_DT_DIR) {
241 lfs_dir_settype(fs, dirp, LFS_DT_DIR);
253 if (lfs_dir_getino(fs, dirp) != 0 && strcmp(lfs_dir_nameptr(fs, dirp), "..") != 0) {
255 lfs_dir_nameptr(fs, dirp));
    [all...]
  /src/sbin/fsck_ffs/
pass2.c 326 struct direct *dirp = idesc->id_dirp; local
339 if (!is_ufs2 && doinglevel2 && iswap32(dirp->d_ino) > 0 &&
340 iswap32(dirp->d_ino) < maxino) {
341 dirp->d_type = inoinfo(iswap32(dirp->d_ino))->ino_type;
349 if (dirp->d_ino != 0 && strcmp(dirp->d_name, ".") == 0) {
350 if (iswap32(dirp->d_ino) != idesc->id_number) {
353 dirp->d_ino = iswap32(idesc->id_number);
358 if (newinofmt && dirp->d_type != DT_DIR)
    [all...]
  /src/sbin/mount_qemufwcfg/
virtdir.c 180 VIRTDIR *dirp; local
182 dirp = emalloc(sizeof(*dirp));
183 dirp->dirname = estrdup(d);
184 dirp->dirnamelen = strlen(d);
185 dirp->tp = tp;
186 dirp->i = 0;
187 return dirp;
193 readvirtdir(VIRTDIR *dirp)
197 for ( ; dirp->i < dirp->tp->c; dirp->i++)
    [all...]
  /src/external/bsd/kyua-cli/dist/utils/fs/
lua_module.cpp 129 DIR** dirp = state.to_userdata< DIR* >(state.upvalue_index(1)); local
130 const struct dirent* entry = ::readdir(*dirp);
156 DIR** dirp = state.to_userdata< DIR* >(); local
159 if (*dirp != NULL) {
160 ::closedir(*dirp);
161 *dirp = NULL;
183 DIR** dirp = state.new_userdata< DIR* >(); local
192 *dirp = ::opendir(path.c_str());
193 if (*dirp == NULL) {
  /src/share/examples/refuse/virtdir/
virtdir.c 210 VIRTDIR *dirp; local
212 NEW(VIRTDIR, dirp, "openvirtdir", exit(EXIT_FAILURE));
213 dirp->dirname = strdup(d);
214 dirp->dirnamelen = strlen(d);
215 dirp->tp = tp;
216 dirp->i = 0;
217 return dirp;
223 readvirtdir(VIRTDIR *dirp)
227 for ( ; dirp->i < dirp->tp->c ; dirp->i++)
    [all...]

Completed in 58 milliseconds

1 2 3 4 5 6 7 8 910