/third_party/lwip/src/apps/http/makefsdata/ |
H A D | tinydir.h | 219 int tinydir_open(tinydir_dir *dir, const _tinydir_char_t *path); 221 int tinydir_open_sorted(tinydir_dir *dir, const _tinydir_char_t *path); 223 void tinydir_close(tinydir_dir *dir); 226 int tinydir_next(tinydir_dir *dir); 228 int tinydir_readfile(const tinydir_dir *dir, tinydir_file *file); 230 int tinydir_readfile_n(const tinydir_dir *dir, tinydir_file *file, size_t i); 232 int tinydir_open_subdir_n(tinydir_dir *dir, size_t i); 251 int tinydir_open(tinydir_dir *dir, const _tinydir_char_t *path) in tinydir_open() argument 263 if (dir == NULL || path == NULL || _tinydir_strlen(path) == 0) in tinydir_open() 274 /* initialise dir */ in tinydir_open() 342 tinydir_open_sorted(tinydir_dir *dir, const _tinydir_char_t *path) tinydir_open() argument 405 tinydir_close(tinydir_dir *dir) tinydir_open() argument 438 tinydir_next(tinydir_dir *dir) tinydir_open() argument 485 tinydir_readfile(const tinydir_dir *dir, tinydir_file *file) tinydir_open() argument [all...] |
/third_party/vulkan-loader/loader/ |
H A D | dirent_on_windows.c | 33 DIR *dir = 0; in opendir() local 41 if ((dir = (DIR *)loader_alloc(pAllocator, sizeof *dir, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND)) != 0 && in opendir() 42 (dir->name = (char *)loader_calloc(pAllocator, full_length, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND)) != 0) { in opendir() 43 loader_strncpy(dir->name, full_length, name, base_length); in opendir() 44 loader_strncat(dir->name, full_length, all, strlen(all)); in opendir() 46 if ((dir->handle = (handle_type)_findfirst(dir->name, &dir->info)) != -1) { in opendir() 47 dir in opendir() 67 closedir(const VkAllocationCallbacks *pAllocator, DIR *dir) closedir() argument 87 readdir(DIR *dir) readdir() argument 102 rewinddir(DIR *dir) rewinddir() argument [all...] |
/third_party/node/test/parallel/ |
H A D | test-fs-opendir.js | 47 const dir = fs.opendirSync(testDir); 49 const dirent = dir.readSync(); 57 // dir.read should return null when no more entries exist 58 assert.strictEqual(dir.readSync(), null); 61 assert.strictEqual(dir.path, testDir); 63 dir.closeSync(); 65 assert.throws(() => dir.readSync(), dirclosedError); 66 assert.throws(() => dir.closeSync(), dirclosedError); 70 fs.opendir(testDir, common.mustSucceed((dir) => { 72 dir [all...] |
H A D | test-fs-rmdir-recursive.js | 72 function removeAsync(dir) { 74 fs.rmdir(dir, common.mustCall((err) => { 78 fs.rmdir(dir, { recursive: false }, common.mustCall((err) => { 82 fs.rmdir(dir, { recursive: true }, common.mustSucceed(() => { 84 fs.rmdir(dir, { recursive: true }, common.mustCall((err) => { 87 fs.rmdir(dir, common.mustCall((err) => { 99 let dir = nextDirPath(); 100 makeNonEmptyDirectory(4, 10, 2, dir, true); 101 removeAsync(dir); 104 dir [all...] |
H A D | test-fs-mkdir-recursive-eaccess.js | 25 function makeDirectoryReadOnly(dir) { 29 execSync(`icacls ${dir} /deny "everyone:(OI)(CI)(DE,DC,AD,WD)"`); 31 fs.chmodSync(dir, '444'); 36 function makeDirectoryWritable(dir) { 38 execSync(`icacls ${dir} /remove:d "everyone"`); 44 const dir = path.join(tmpdir.path, `mkdirp_${n++}`); 45 fs.mkdirSync(dir); 46 const codeExpected = makeDirectoryReadOnly(dir); 49 fs.mkdirSync(path.join(dir, '/foo'), { recursive: true }); 53 makeDirectoryWritable(dir); [all...] |
/third_party/alsa-lib/modules/mixer/simple/ |
H A D | sbase.c | 54 static long to_user(struct selem_base *s, int dir, struct helem_base *c, long value) 58 return s->dir[dir].min; 59 n = (int64_t) (value - c->min) * (s->dir[dir].max - s->dir[dir].min); 60 return s->dir[dir].min + (n + (c->max - c->min) / 2) / (c->max - c->min); 63 static long from_user(struct selem_base *s, int dir, struc 77 unsigned int dir, ok_flag; update_ranges() local 112 is_ops(snd_mixer_elem_t *elem, int dir, int cmd, int val) is_ops() argument 154 get_range_ops(snd_mixer_elem_t *elem, int dir, long *min, long *max) get_range_ops() argument 173 set_range_ops(snd_mixer_elem_t *elem, int dir, long min, long max) set_range_ops() argument 188 get_volume_ops(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long *value) get_volume_ops() argument [all...] |
/third_party/alsa-lib/modules/mixer/simple/python/ |
H A D | common.py | 20 def opsIsChannel(self, dir, chn): 23 def opsGetRange(self, dir): 24 return (0, self.min[dir], self.max[dir]) 26 def opsSetRange(self, dir, min, max): 27 self.min[dir] = min 28 self.max[dir] = max 30 def volumeToUser(self, info, dir, value): 34 return self.min[dir] 35 n = (value - min) * (self.max[dir] [all...] |
/third_party/alsa-lib/include/ |
H A D | pcm_old.h | 72 int snd_pcm_hw_params_get_rate(const snd_pcm_hw_params_t *params, int *dir); 73 unsigned int snd_pcm_hw_params_get_rate_min(const snd_pcm_hw_params_t *params, int *dir); 74 unsigned int snd_pcm_hw_params_get_rate_max(const snd_pcm_hw_params_t *params, int *dir); 75 int snd_pcm_hw_params_test_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); 76 int snd_pcm_hw_params_set_rate(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir); 77 int snd_pcm_hw_params_set_rate_min(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); 78 int snd_pcm_hw_params_set_rate_max(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir); 80 unsigned int snd_pcm_hw_params_set_rate_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int *dir); 81 unsigned int snd_pcm_hw_params_set_rate_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir); 82 unsigned int snd_pcm_hw_params_set_rate_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, int *dir); [all...] |
/third_party/rust/crates/rustix/tests/fs/ |
H A D | renameat.rs | 15 let dir = openat( in test_renameat() 23 let _ = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat() 24 let before = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_renameat() 25 renameat(&dir, "foo", &dir, "bar").unwrap(); in test_renameat() 26 let renamed = statat(&dir, "bar", AtFlags::empty()).unwrap(); in test_renameat() 38 let dir = openat( in test_renameat_overwrite() 46 let _ = openat(&dir, "foo", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat_overwrite() 47 let _ = openat(&dir, "bar", OFlags::CREATE | OFlags::WRONLY, Mode::empty()).unwrap(); in test_renameat_overwrite() 48 let before = statat(&dir, "fo in test_renameat_overwrite() [all...] |
/third_party/ltp/testcases/commands/unzip/ |
H A D | unzip01.sh | 24 creating: dir/ 25 creating: dir/d1/ 26 creating: dir/d2/ 27 creating: dir/d3/ 28 creating: dir/d4/ 29 $EXTRACT_MATCH: dir/d1/f1 30 $EXTRACT_MATCH: dir/d1/f2 31 $EXTRACT_MATCH: dir/d1/f3 32 creating: dir/d2/d1/ 33 creating: dir/d [all...] |
/third_party/node/test/sequential/ |
H A D | test-fs-opendir-recursive.js | 86 const symlinkTargetDir = pathModule.join(symlinksRootPath, 'symlink-target-dir'); 91 fs.symlinkSync(symlinkTargetDir, pathModule.join(symlinksRootPath, 'symlink-src-dir')); 114 'symlinks', 'symlinks/symlink-src-dir', 'symlinks/symlink-src-file', 115 'symlinks/symlink-target-dir', 'symlinks/symlink-target-file', 142 function processDirSync(dir) { 144 let dirent = dir.readSync(); 147 dirent = dir.readSync(); 155 const dir = fs.opendirSync(testDir, { recursive: true }); 156 processDirSync(dir); 157 dir [all...] |
/third_party/skia/tests/ |
H A D | RRectInPathTest.cpp | 15 SkPathDirection* dir, unsigned* start) { in path_contains_rrect() 17 REPORTER_ASSERT(reporter, SkPathPriv::IsRRect(path, &out, dir, start)); in path_contains_rrect() 19 recreatedPath.addRRect(out, *dir, *start); in path_contains_rrect() 44 SkPathDirection dir, unsigned start) { in inner_path_contains_rrect() 54 path.addRRect(in, dir, start); in inner_path_contains_rrect() 58 REPORTER_ASSERT(reporter, outDir == dir && outStart == start); in inner_path_contains_rrect() 63 SkPathDirection dir, unsigned start) { in path_contains_rrect_check() 64 SkRRect out = inner_path_contains_rrect(reporter, in, dir, start); in path_contains_rrect_check() 72 SkPathDirection dir, unsigned start) { in path_contains_rrect_nocheck() 73 SkRRect out = inner_path_contains_rrect(reporter, in, dir, star in path_contains_rrect_nocheck() 14 path_contains_rrect(skiatest::Reporter* reporter, const SkPath& path, SkPathDirection* dir, unsigned* start) path_contains_rrect() argument 43 inner_path_contains_rrect(skiatest::Reporter* reporter, const SkRRect& in, SkPathDirection dir, unsigned start) inner_path_contains_rrect() argument 62 path_contains_rrect_check(skiatest::Reporter* reporter, const SkRRect& in, SkPathDirection dir, unsigned start) path_contains_rrect_check() argument 71 path_contains_rrect_nocheck(skiatest::Reporter* reporter, const SkRRect& in, SkPathDirection dir, unsigned start) path_contains_rrect_nocheck() argument 79 path_contains_rrect_check(skiatest::Reporter* reporter, const SkRect& r, SkVector v[4], SkPathDirection dir, unsigned start) path_contains_rrect_check() argument 88 ForceIsRRect_Private(SkPath* path, SkPathDirection dir, unsigned start) ForceIsRRect_Private() argument 93 force_path_contains_rrect(skiatest::Reporter* reporter, SkPath& path, SkPathDirection dir, unsigned start) force_path_contains_rrect() argument [all...] |
H A D | OSPathTest.cpp | 14 * Will use SkOSPath::Join to append filename to dir, test that it works correctly, 17 * @param dir String representing the path to a folder. May or may not 22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, in test_dir_with_file() argument 29 // fullName should be "dir<SkOSPath::SEPARATOR>file" in test_dir_with_file() 30 SkString fullName = SkOSPath::Join(dir.c_str(), filename.c_str()); in test_dir_with_file() 32 // fullName should be the combined size of dir and file, plus one if in test_dir_with_file() 33 // dir did not include the final path separator. in test_dir_with_file() 34 size_t expectedSize = dir.size() + filename.size(); in test_dir_with_file() 35 if (!dir.endsWith(SkOSPath::SEPARATOR) && !dir in test_dir_with_file() [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | libc_dirent.cpp | 28 DIR *dir = opendir("/dev/block"); in Bm_function_Opendir() local 29 if (dir == nullptr) { in Bm_function_Opendir() 32 benchmark::DoNotOptimize(dir); in Bm_function_Opendir() 34 closedir(dir); in Bm_function_Opendir() 41 const char* dir = "/dev/block"; in Bm_function_ScanDir() local 44 int n = scandir(dir, &entry, nullptr, alphasort); in Bm_function_ScanDir() 61 DIR *dir = opendir("/dev/block"); in Bm_function_Closedir() local 62 if (dir == nullptr) { in Bm_function_Closedir() 67 benchmark::DoNotOptimize(closedir(dir)); in Bm_function_Closedir() 73 DIR *dir in Bm_function_Readdir() local 96 DIR *dir = fdopendir(fd); Bm_function_Fdopendir() local 107 DIR *dir = opendir("/data/local"); Bm_function_Rewinddir() local [all...] |
/third_party/python/Lib/test/ |
H A D | test_tempfile.py | 98 def nameCheck(self, name, dir, pre, suf): 103 if dir is not None: 107 if type(dir) is str or isinstance(dir, os.PathLike) else 117 if (dir, pre, suf) == (None, None, None): 121 self.assertEqual(os.path.abspath(ndir), os.path.abspath(dir), 122 "file %r not in directory %r" % (name, dir)) 320 dir = tempfile.mkdtemp() 322 with support.swap_attr(tempfile, 'tempdir', dir): 325 os_helper.rmtree(dir) [all...] |
/third_party/musl/src/dirent/ |
H A D | readdir.c | 13 struct dirent *readdir(DIR *dir) in readdir() argument 16 PARAM_CHECK(dir); in readdir() 20 if (dir->buf_pos >= dir->buf_end) { in readdir() 21 int len = __syscall(SYS_getdents, dir->fd, dir->buf, sizeof dir->buf); in readdir() 26 dir->buf_end = len; in readdir() 27 dir->buf_pos = 0; in readdir() 29 de = (void *)(dir in readdir() [all...] |
/third_party/skia/src/pathops/ |
H A D | SkPathOpsWinding.cpp | 47 static int xy_index(SkOpRayDir dir) { in xy_index() argument 48 return static_cast<int>(dir) & 1; in xy_index() 51 static SkScalar pt_xy(const SkPoint& pt, SkOpRayDir dir) { in pt_xy() argument 52 return (&pt.fX)[xy_index(dir)]; in pt_xy() 55 static SkScalar pt_yx(const SkPoint& pt, SkOpRayDir dir) { in pt_yx() argument 56 return (&pt.fX)[!xy_index(dir)]; in pt_yx() 59 static double pt_dxdy(const SkDVector& v, SkOpRayDir dir) { in pt_dxdy() argument 60 return (&v.fX)[xy_index(dir)]; in pt_dxdy() 63 static double pt_dydx(const SkDVector& v, SkOpRayDir dir) { in pt_dydx() argument 64 return (&v.fX)[!xy_index(dir)]; in pt_dydx() 67 rect_side(const SkRect& r, SkOpRayDir dir) rect_side() argument 71 sideways_overlap(const SkRect& rect, const SkPoint& pt, SkOpRayDir dir) sideways_overlap() argument 76 less_than(SkOpRayDir dir) less_than() argument 80 ccw_dxdy(const SkDVector& v, SkOpRayDir dir) ccw_dxdy() argument 106 rayCheck(const SkOpRayHit& base, SkOpRayDir dir, SkOpRayHit** hits, SkArenaAlloc* allocator) rayCheck() argument 121 rayCheck(const SkOpRayHit& base, SkOpRayDir dir, SkOpRayHit** hits, SkArenaAlloc* allocator) rayCheck() argument 243 SkOpRayDir dir = hitBase.makeTestBase(this, t); sortableTop() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/dirent/ |
H A D | seekdir.c | 39 DIR *dir = opendir(path); in seekdir_0100() local 40 if (dir == NULL) { in seekdir_0100() 47 while ((result = readdir(dir)) != NULL) { in seekdir_0100() 51 offset = telldir(dir); in seekdir_0100() 56 result = readdir(dir); in seekdir_0100() 65 seekdir(dir, offset); in seekdir_0100() 70 result = readdir(dir); in seekdir_0100() 79 closedir(dir); in seekdir_0100() 89 DIR *dir = opendir(path); in seekdir_0200() local 90 if (dir in seekdir_0200() 129 DIR *dir = NULL; seekdir_0300() local [all...] |
/third_party/ltp/lib/ |
H A D | tst_fs_link_count.c | 43 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir) in tst_fs_fill_hardlinks_() argument 49 if (stat(dir, &s) == -1 && errno == ENOENT) in tst_fs_fill_hardlinks_() 50 SAFE_MKDIR(cleanup, dir, 0744); in tst_fs_fill_hardlinks_() 52 SAFE_STAT(cleanup, dir, &s); in tst_fs_fill_hardlinks_() 54 tst_brkm(TBROK, cleanup, "%s is not directory", dir); in tst_fs_fill_hardlinks_() 58 sprintf(base_filename, "%s/testfile0", dir); in tst_fs_fill_hardlinks_() 62 sprintf(link_filename, "%s/testfile%d", dir, i); in tst_fs_fill_hardlinks_() 99 sprintf(link_filename, "%s/testfile%d", dir, j); in tst_fs_fill_hardlinks_() 106 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir) in tst_fs_fill_subdirs_() argument 113 if (stat(dir, in tst_fs_fill_subdirs_() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_mestimate.c | 109 int x, int y, int x_mv, int y_mv, int dir) in add_mv_data() 117 mv->source = dir ? 1 : -1; in add_mv_data() 129 add_mv_data(((AVMotionVector *) sd->data) + mv_count++, me_ctx->mb_size, x_mb, y_mb, mv[0], mv[1], dir);\ 147 int mb_x, mb_y, dir; in filter_frame() local 186 for (dir = 0; dir < 2; dir++) { in filter_frame() 187 me_ctx->data_ref = (dir ? s->next : s->prev)->data[0]; in filter_frame() 218 ADD_PRED(preds[0], s->mv_table[0][mb_i - 1][dir][0], s->mv_table[0][mb_i - 1][dir][ in filter_frame() 108 add_mv_data(AVMotionVector *mv, int mb_size, int x, int y, int x_mv, int y_mv, int dir) add_mv_data() argument [all...] |
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_log.c | 220 const ngtcp2_stream *fr, const char *dir) { in log_fr_stream() 225 NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type | fr->flags, fr->stream_id, in log_fr_stream() 231 const ngtcp2_ack *fr, const char *dir) { in log_fr_ack() 239 NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type, fr->largest_ack, in log_fr_ack() 249 NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type, largest_ack, min_ack, in log_fr_ack() 259 NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type, largest_ack, in log_fr_ack() 267 NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type, fr->ecn.ect0, in log_fr_ack() 273 const ngtcp2_padding *fr, const char *dir) { in log_fr_padding() 275 NGTCP2_LOG_FRM_HD_FIELDS(dir), fr->type, fr->len); in log_fr_padding() 280 const char *dir) { in log_fr_reset_stream() 219 log_fr_stream(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_stream *fr, const char *dir) log_fr_stream() argument 230 log_fr_ack(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_ack *fr, const char *dir) log_fr_ack() argument 272 log_fr_padding(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_padding *fr, const char *dir) log_fr_padding() argument 278 log_fr_reset_stream(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_reset_stream *fr, const char *dir) log_fr_reset_stream() argument 289 log_fr_connection_close(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_connection_close *fr, const char *dir) log_fr_connection_close() argument 307 log_fr_max_data(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_max_data *fr, const char *dir) log_fr_max_data() argument 314 log_fr_max_stream_data(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_max_stream_data *fr, const char *dir) log_fr_max_stream_data() argument 324 log_fr_max_streams(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_max_streams *fr, const char *dir) log_fr_max_streams() argument 331 log_fr_ping(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_ping *fr, const char *dir) log_fr_ping() argument 337 log_fr_data_blocked(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_data_blocked *fr, const char *dir) log_fr_data_blocked() argument 345 log_fr_stream_data_blocked(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_stream_data_blocked *fr, const char *dir) log_fr_stream_data_blocked() argument 355 log_fr_streams_blocked(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_streams_blocked *fr, const char *dir) log_fr_streams_blocked() argument 364 log_fr_new_connection_id(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_new_connection_id *fr, const char *dir) log_fr_new_connection_id() argument 382 log_fr_stop_sending(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_stop_sending *fr, const char *dir) log_fr_stop_sending() argument 392 log_fr_path_challenge(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_path_challenge *fr, const char *dir) log_fr_path_challenge() argument 403 log_fr_path_response(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_path_response *fr, const char *dir) log_fr_path_response() argument 414 log_fr_crypto(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_crypto *fr, const char *dir) log_fr_crypto() argument 423 log_fr_new_token(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_new_token *fr, const char *dir) log_fr_new_token() argument 442 log_fr_retire_connection_id(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_retire_connection_id *fr, const char *dir) log_fr_retire_connection_id() argument 451 log_fr_handshake_done(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_handshake_done *fr, const char *dir) log_fr_handshake_done() argument 458 log_fr_datagram(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_datagram *fr, const char *dir) log_fr_datagram() argument 466 log_fr(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const ngtcp2_frame *fr, const char *dir) log_fr() argument 745 log_pkt_hd(ngtcp2_log *log, const ngtcp2_pkt_hd *hd, const char *dir) log_pkt_hd() argument [all...] |
/third_party/NuttX/fs/dirent/ |
H A D | fs_opendir.c | 87 struct fs_dirent_s *dir = NULL; in opendir() local 110 dir = (struct fs_dirent_s *)calloc(1, sizeof(struct fs_dirent_s)); in opendir() 111 if (!dir) in opendir() 123 dir->fd_position = 0; /* This is the position in the read stream */ in opendir() 127 ret = vp->vop->Opendir(vp, dir); in opendir() 135 free(dir); in opendir() 138 dir->fd_status = DIRENT_MAGIC; in opendir() 139 dir->fd_root = vp; in opendir() 141 return ((DIR *)dir); in opendir() 160 struct fs_dirent_s *dir in do_opendir() local [all...] |
/third_party/python/Lib/ |
H A D | tempfile.py | 114 def _sanitize_params(prefix, suffix, dir): 116 output_type = _infer_return_type(prefix, suffix, dir) 124 if dir is None: 126 dir = gettempdir() 128 dir = gettempdirb() 129 return prefix, suffix, dir, output_type 187 We determine whether or not a candidate temp dir is usable by 195 for dir in dirlist: 196 if dir != _os.curdir: 197 dir [all...] |
/third_party/eudev/src/udev/ |
H A D | udevadm-info.c | 196 static void cleanup_dir(DIR *dir, mode_t mask, int depth) { in cleanup_dir() argument 202 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { in cleanup_dir() 207 if (fstatat(dirfd(dir), dent->d_name, &stats, AT_SYMLINK_NOFOLLOW) != 0) in cleanup_dir() 214 dir2 = fdopendir(openat(dirfd(dir), dent->d_name, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC)); in cleanup_dir() 218 (void) unlinkat(dirfd(dir), dent->d_name, AT_REMOVEDIR); in cleanup_dir() 220 (void) unlinkat(dirfd(dir), dent->d_name, 0); in cleanup_dir() 225 DIR *dir; in cleanup_db() local 229 dir = opendir(UDEV_ROOT_RUN "/udev/data"); in cleanup_db() 230 if (dir ! in cleanup_db() [all...] |
/third_party/zlib/nintendods/ |
H A D | Makefile | 55 export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ 56 $(foreach dir,$(DATA),$(CURDIR)/$(dir)) 60 CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c))) 61 CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp))) 62 SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/* [all...] |