Home
last modified time | relevance | path

Searched refs:fs (Results 1 - 25 of 1369) sorted by relevance

12345678910>>...55

/third_party/node/test/parallel/
H A Dtest-fs-null-bytes.js25 const fs = require('fs');
54 check(fs.access, fs.accessSync, 'foo\u0000bar');
55 check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK);
56 check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar', 'abc');
57 check(fs
[all...]
H A Dtest-trace-events-fs-async.js5 const fs = require('fs');
24 const fs = require('fs');
25 fs.writeFileSync('fs0.txt', '123', 'utf8');
26 fs.access('fs0.txt', () => {
27 fs.unlinkSync('fs0.txt');
32 const fs = require('fs');
33 fs
[all...]
H A Dtest-fs-truncate.js26 const fs = require('fs');
36 const msg = 'Using fs.truncate with a file descriptor is deprecated.' +
37 ' Please use fs.ftruncate with a file descriptor instead.';
40 fs.writeFileSync(filename, data);
41 stat = fs.statSync(filename);
44 fs.truncateSync(filename, 1024);
45 stat = fs.statSync(filename);
48 fs.truncateSync(filename);
49 stat = fs
[all...]
H A Dtest-fs-chmod.js26 const fs = require('fs');
31 // Need to hijack fs.open/close to make sure that things
33 fs._open = fs.open;
34 fs._openSync = fs.openSync;
35 fs.open = open;
36 fs.openSync = openSync;
37 fs
[all...]
H A Dtest-fs-rm.js6 const fs = require('fs');
11 const { validateRmOptionsSync } = require('internal/fs/utils');
24 fs.mkdirSync(gitDirectory);
29 fs.mkdirSync(dirname, common.mustNotMutateObjectDeep({ recursive: true }));
30 fs.writeFileSync(path.join(dirname, 'text.txt'), 'hello', 'utf8');
35 fs.writeFileSync(path.join(dirname, `f-${depth}-${f}`), '', options);
40 fs.symlinkSync(
47 fs.symlinkSync(
55 fs
[all...]
H A Dtest-fs-access.js4 // This tests that fs.access and fs.accessSync works as expected
15 const fs = require('fs');
27 fs.writeFileSync(file, '');
28 fs.chmodSync(file, mode);
35 // On non-Windows supported platforms, fs.access(readOnlyFile, W_OK, ...)
67 assert.strictEqual(typeof fs.F_OK, 'number');
68 assert.strictEqual(typeof fs.R_OK, 'number');
69 assert.strictEqual(typeof fs
[all...]
H A Dtest-fs-mkdir.js25 const fs = require('fs');
36 // fs.mkdir creates directory using assigned path
40 fs.mkdir(pathname, common.mustCall(function(err) {
42 assert.strictEqual(fs.existsSync(pathname), true);
46 // fs.mkdir creates directory with assigned mode value
50 fs.mkdir(pathname, 0o777, common.mustCall(function(err) {
52 assert.strictEqual(fs.existsSync(pathname), true);
56 // fs.mkdir creates directory with mode passed as an options object
60 fs
[all...]
H A Dtest-fs-chmod-mask.js3 // This tests that the lower bits of mode > 0o777 still works in fs APIs.
8 const fs = require('fs');
30 fs.writeFileSync(file, 'test', 'utf-8');
32 fs.chmod(file, input, common.mustSucceed(() => {
33 assert.strictEqual(fs.statSync(file).mode & 0o777, mode);
39 fs.writeFileSync(file, 'test', 'utf-8');
41 fs.chmodSync(file, input);
42 assert.strictEqual(fs.statSync(file).mode & 0o777, mode);
47 fs
[all...]
H A Dtest-fs-mkdtemp.js5 const fs = require('fs');
13 assert(fs.existsSync(folder));
19 const tmpFolder = fs.mkdtempSync(path.join(tmpdir.path, 'foo.'));
22 assert(fs.existsSync(tmpFolder));
24 const utf8 = fs.mkdtempSync(path.join(tmpdir.path, '\u0222abc.'));
27 assert(fs.existsSync(utf8));
29 fs.mkdtemp(path.join(tmpdir.path, 'bar.'), common.mustCall(handler));
33 fs.mkdtemp(path.join(tmpdir.path, 'bar.'), {}, common.mustCall(handler));
36 'For details see: https://nodejs.org/api/fs
[all...]
H A Dtest-fs-rmdir-recursive.js6 const fs = require('fs');
8 const { validateRmdirOptions } = require('internal/fs/utils');
12 'In future versions of Node.js, fs.rmdir(path, { recursive: true }) ' +
13 'will be removed. Use fs.rm(path, { recursive: true }) instead',
24 fs.mkdirSync(dirname, { recursive: true });
25 fs.writeFileSync(path.join(dirname, 'text.txt'), 'hello', 'utf8');
30 fs.writeFileSync(path.join(dirname, `f-${depth}-${f}`), '', options);
35 fs.symlinkSync(
42 fs
[all...]
H A Dtest-fs-utimes.js26 const fs = require('fs');
33 fs.symlinkSync('unoent-entry', lpath);
35 function stat_resource(resource, statSync = fs.statSync) {
39 const stats = fs.fstatSync(resource);
44 fs.fsyncSync(resource);
45 return fs.fstatSync(resource);
49 mtime = fs._toUnixTimestamp(mtime);
51 const real_mtime = fs._toUnixTimestamp(stats.mtime);
66 // Sub-second precision is OS and fs dependan
[all...]
H A Dtest-fs-assert-encoding-error.js4 const fs = require('node:fs');
16 fs.readFile(testPath, options, common.mustNotCall());
20 fs.readFileSync(testPath, options);
24 fs.readdir(testPath, options, common.mustNotCall());
28 fs.readdirSync(testPath, options);
32 fs.readlink(testPath, options, common.mustNotCall());
36 fs.readlinkSync(testPath, options);
40 fs.writeFile(testPath, 'data', options, common.mustNotCall());
44 fs
[all...]
/third_party/ffmpeg/libavfilter/
H A Dframesync.c69 static int consume_from_fifos(FFFrameSync *fs);
71 void ff_framesync_preinit(FFFrameSync *fs) in ff_framesync_preinit() argument
73 if (fs->class) in ff_framesync_preinit()
75 fs->class = &framesync_class; in ff_framesync_preinit()
76 av_opt_set_defaults(fs); in ff_framesync_preinit()
79 int ff_framesync_init(FFFrameSync *fs, AVFilterContext *parent, unsigned nb_in) in ff_framesync_init() argument
86 ff_framesync_preinit(fs); in ff_framesync_init()
87 fs->parent = parent; in ff_framesync_init()
88 fs->nb_in = nb_in; in ff_framesync_init()
90 fs in ff_framesync_init()
96 framesync_eof(FFFrameSync *fs) framesync_eof() argument
103 framesync_sync_level_update(FFFrameSync *fs) framesync_sync_level_update() argument
119 ff_framesync_configure(FFFrameSync *fs) ff_framesync_configure() argument
169 framesync_advance(FFFrameSync *fs) framesync_advance() argument
216 framesync_pts_extrapolate(FFFrameSync *fs, unsigned in, int64_t pts) framesync_pts_extrapolate() argument
223 framesync_inject_frame(FFFrameSync *fs, unsigned in, AVFrame *frame) framesync_inject_frame() argument
236 framesync_inject_status(FFFrameSync *fs, unsigned in, int status, int64_t pts) framesync_inject_status() argument
248 ff_framesync_get_frame(FFFrameSync *fs, unsigned in, AVFrame **rframe, unsigned get) ff_framesync_get_frame() argument
285 ff_framesync_uninit(FFFrameSync *fs) ff_framesync_uninit() argument
297 consume_from_fifos(FFFrameSync *fs) consume_from_fifos() argument
336 ff_framesync_activate(FFFrameSync *fs) ff_framesync_activate() argument
353 ff_framesync_init_dualinput(FFFrameSync *fs, AVFilterContext *parent) ff_framesync_init_dualinput() argument
371 ff_framesync_dualinput_get(FFFrameSync *fs, AVFrame **f0, AVFrame **f1) ff_framesync_dualinput_get() argument
391 ff_framesync_dualinput_get_writable(FFFrameSync *fs, AVFrame **f0, AVFrame **f1) ff_framesync_dualinput_get_writable() argument
[all...]
/third_party/node/deps/npm/node_modules/graceful-fs/
H A Dpolyfills.js29 function patch (fs) {
36 patchLchmod(fs)
40 if (!fs.lutimes) {
41 patchLutimes(fs)
44 // https://github.com/isaacs/node-graceful-fs/issues/4
47 // that a fs doesn't support the intended operation.
49 fs.chown = chownFix(fs.chown)
50 fs.fchown = chownFix(fs
[all...]
H A Dgraceful-fs.js1 var fs = require('fs')
14 gracefulQueue = Symbol.for('graceful-fs.queue')
16 previousSymbol = Symbol.for('graceful-fs.previous')
18 gracefulQueue = '___graceful-fs.queue'
19 previousSymbol = '___graceful-fs.previous'
43 if (!fs[gracefulQueue]) {
46 publishQueue(fs, queue)
48 // Patch fs.close/closeSync to shared queue version, because we need
50 // This is essential when multiple graceful-fs instance
[all...]
/third_party/FatFs/source/
H A Dff.c167 #define ABORT(fs, res) { fp->err = (BYTE)(res); LEAVE_FF(fs, res); }
176 #define LEAVE_FF(fs, res) { unlock_fs(fs, res); return res; }
178 #define LEAVE_FF(fs, res) { (void)fs; return res; }
181 #define LEAVE_FF(fs, res) return res
197 FATFS* fs; /* Object ID 1, volume (NULL:blank entry) */ member
742 FATFS* fs /* Filesystem object */ in lock_fs()
745 return (fs in lock_fs()
749 unlock_fs( FATFS* fs, FRESULT res ) unlock_fs() argument
871 empty_lock(FATFS* fs) empty_lock() argument
922 move_window( FATFS* fs, LBA_t sect ) move_window() argument
950 move_window_readdir( FATFS* fs, LBA_t sect ) move_window_readdir() argument
1023 clst2sect( FATFS* fs, DWORD clst ) clst2sect() argument
1047 FATFS *fs = obj->fs; get_fat() local
1095 put_fat( FATFS* fs, DWORD clst, DWORD val ) put_fat() argument
1161 FATFS *fs = obj->fs; remove_chain() local
1229 FATFS *fs = obj->fs; create_chain() local
1374 FATFS *fs = fp->obj.fs; clmt_clust() local
1398 dir_clear( FATFS *fs, DWORD clst ) dir_clear() argument
1447 FATFS *fs = dp->obj.fs; dir_sdi() local
1497 FATFS *fs = dp->obj.fs; dir_next() local
1561 FATFS *fs = dp->obj.fs; dir_alloc() local
1592 ld_clust( FATFS* fs, const BYTE* dir ) ld_clust() argument
1609 st_clust( FATFS* fs, BYTE* dir, DWORD cl ) st_clust() argument
1829 FATFS *fs = dp->obj.fs; dir_read() local
1886 FATFS *fs = dp->obj.fs; dir_read_massive() local
1945 FATFS *fs = dp->obj.fs; dir_find() local
2026 FATFS *fs = dp->obj.fs; dir_register() local
2109 FATFS *fs = dp->obj.fs; dir_remove() local
2163 FATFS *fs = dp->obj.fs; get_fileinfo() local
2559 FATFS *fs = dp->obj.fs; follow_path() local
2698 check_fs( FATFS* fs, LBA_t sect ) check_fs() argument
2735 find_volume( FATFS* fs, int vol ) find_volume() argument
2810 FATFS *fs; mount_volume() local
3058 f_mount( FATFS* fs, const TCHAR* path, BYTE opt ) f_mount() argument
3106 init_fatobj(FATFS *fs, BYTE fmt, QWORD start_sector) init_fatobj() argument
3207 find_fat_partition(FATFS *fs, los_part *part, BYTE *format, QWORD *start_sector) find_fat_partition() argument
3280 FATFS *fs; f_open() local
3547 FATFS *fs; f_read() local
3667 FATFS *fs; f_write() local
3804 FATFS *fs; f_sync() local
3863 FATFS *fs; f_close() local
3920 FATFS *fs; f_chdir() local
3963 FATFS *fs; f_getcwd() local
4063 FATFS *fs; f_lseek() local
4218 FATFS *fs; f_opendir() local
4273 FATFS *fs; f_closedir() local
4304 FATFS *fs; f_readdir() local
4477 FATFS *fs; f_getfree() local
4509 FATFS *fs; f_getclustinfo() local
4528 FATFS *fs; f_truncate() local
4603 FATFS *fs; f_unlink() local
4752 FATFS *fs; f_mkdir() local
4888 FATFS *fs; global() local
5050 FATFS *fs; global() local
5115 FATFS *fs; global() local
5155 FATFS *fs; global() local
5222 set_volumn_label(FATFS *fs, const TCHAR *label) global() argument
5297 FATFS *fs; global() local
5326 FATFS *fs; global() local
5485 FATFS *fs; global() local
6906 FATFS *fs; global() local
[all...]
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_cb_feedback.c127 struct feedback_stage *fs = feedback_stage(stage); in feedback_tri() local
129 _mesa_feedback_token(fs->ctx, (GLfloat) GL_POLYGON_TOKEN); in feedback_tri()
130 _mesa_feedback_token(fs->ctx, (GLfloat) 3); /* three vertices */ in feedback_tri()
131 feedback_vertex(fs->ctx, draw, prim->v[0]); in feedback_tri()
132 feedback_vertex(fs->ctx, draw, prim->v[1]); in feedback_tri()
133 feedback_vertex(fs->ctx, draw, prim->v[2]); in feedback_tri()
140 struct feedback_stage *fs = feedback_stage(stage); in feedback_line() local
142 if (fs->reset_stipple_counter) { in feedback_line()
143 _mesa_feedback_token(fs->ctx, (GLfloat) GL_LINE_RESET_TOKEN); in feedback_line()
144 fs in feedback_line()
157 struct feedback_stage *fs = feedback_stage(stage); feedback_point() local
174 struct feedback_stage *fs = feedback_stage(stage); feedback_reset_stipple_counter() local
191 struct feedback_stage *fs = CALLOC_STRUCT(feedback_stage); draw_glfeedback_stage() local
215 struct feedback_stage *fs = feedback_stage(stage); select_tri() local
224 struct feedback_stage *fs = feedback_stage(stage); select_line() local
233 struct feedback_stage *fs = feedback_stage(stage); select_point() local
264 struct feedback_stage *fs = CALLOC_STRUCT(feedback_stage); draw_glselect_stage() local
[all...]
/third_party/ntfs-3g/include/fuse-lite/
H A Dfuse.h564 int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf);
565 int fuse_fs_fgetattr(struct fuse_fs *fs, const char *path, struct stat *buf,
567 int fuse_fs_rename(struct fuse_fs *fs, const char *oldpath,
569 int fuse_fs_unlink(struct fuse_fs *fs, const char *path);
570 int fuse_fs_rmdir(struct fuse_fs *fs, const char *path);
571 int fuse_fs_symlink(struct fuse_fs *fs, const char *linkname,
573 int fuse_fs_link(struct fuse_fs *fs, const char *oldpath, const char *newpath);
574 int fuse_fs_release(struct fuse_fs *fs, const char *path,
576 int fuse_fs_open(struct fuse_fs *fs, const char *path,
578 int fuse_fs_read(struct fuse_fs *fs, cons
[all...]
/third_party/node/test/pummel/
H A Dtest-fs-watch-file.js26 const fs = require('fs');
57 fs.writeFileSync(filepathOne, 'hello');
60 () => { fs.watchFile(filepathOne); },
65 fs.watchFile(filepathOne, function() {
66 fs.unwatchFile(filepathOne);
71 fs.writeFileSync(filepathOne, 'world');
77 fs.writeFileSync(filepathTwoAbs, 'howdy');
80 () => { fs.watchFile(filepathTwo); },
86 fs
[all...]
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_pipe_fs.c46 struct svga_fragment_shader *fs; in svga_create_fs_state() local
50 fs = (struct svga_fragment_shader *) in svga_create_fs_state()
53 if (!fs) in svga_create_fs_state()
62 tmp.tokens = fs->base.tokens; in svga_create_fs_state()
64 fs->generic_inputs = svga_get_generic_inputs_mask(&fs->base.tgsi_info); in svga_create_fs_state()
66 fs->base.get_dummy_shader = svga_get_compiled_dummy_fragment_shader; in svga_create_fs_state()
68 svga_remap_generics(fs->base.info.generic_inputs_mask, in svga_create_fs_state()
69 fs->generic_remap_table); in svga_create_fs_state()
71 fs in svga_create_fs_state()
82 struct svga_fragment_shader *fs = (struct svga_fragment_shader *) shader; svga_bind_fs_state() local
94 struct svga_fragment_shader *fs = (struct svga_fragment_shader *) shader; svga_delete_fs_state() local
[all...]
/third_party/vulkan-loader/tests/
H A Dloader_testing_main.cpp59 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "null_dir"); in main()
60 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "icd_manifests"); in main()
61 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "icd_env_vars_manifests"); in main()
62 fs::delete_folder(fs::path(FRAMEWORK_BUILD_DIRECTORY) / "explicit_layer_manifests"); in main()
63 fs::delete_folder(fs in main()
[all...]
/third_party/mesa3d/src/gallium/frontends/glx/xlib/
H A Dglx_usefont.c166 isvalid(XFontStruct * fs, unsigned int which) in isvalid() argument
172 rows = fs->max_byte1 - fs->min_byte1 + 1; in isvalid()
173 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1; in isvalid()
177 if ((fs->min_char_or_byte2 > which) || (fs->max_char_or_byte2 < which)) in isvalid()
184 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
185 (fs->max_char_or_byte2 < byte2) || in isvalid()
186 (fs in isvalid()
220 XFontStruct *fs; glXUseXFont() local
[all...]
/third_party/mesa3d/src/glx/
H A Dxfont.c170 isvalid(XFontStruct * fs, int which) in isvalid() argument
176 rows = fs->max_byte1 - fs->min_byte1 + 1; in isvalid()
177 pages = fs->max_char_or_byte2 - fs->min_char_or_byte2 + 1; in isvalid()
181 if ((fs->min_char_or_byte2 > which) || (fs->max_char_or_byte2 < which)) in isvalid()
188 if ((fs->min_char_or_byte2 > byte2) || in isvalid()
189 (fs->max_char_or_byte2 < byte2) || in isvalid()
190 (fs in isvalid()
223 XFontStruct *fs; DRI_glXUseXFont() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dffv1.c61 av_cold int ff_ffv1_init_slice_state(const FFV1Context *f, FFV1Context *fs) in ff_ffv1_init_slice_state() argument
65 fs->plane_count = f->plane_count; in ff_ffv1_init_slice_state()
66 fs->transparency = f->transparency; in ff_ffv1_init_slice_state()
68 PlaneContext *const p = &fs->plane[j]; in ff_ffv1_init_slice_state()
70 if (fs->ac != AC_GOLOMB_RICE) { in ff_ffv1_init_slice_state()
89 if (fs->ac == AC_RANGE_CUSTOM_TAB) { in ff_ffv1_init_slice_state()
92 fs->c. one_state[ j] = f->state_transition[j]; in ff_ffv1_init_slice_state()
93 fs->c.zero_state[256 - j] = 256 - fs->c.one_state[j]; in ff_ffv1_init_slice_state()
104 FFV1Context *fs in ff_ffv1_init_slices_state() local
124 FFV1Context *fs = av_mallocz(sizeof(*fs)); ff_ffv1_init_slice_contexts() local
168 ff_ffv1_clear_slice_state(const FFV1Context *f, FFV1Context *fs) ff_ffv1_clear_slice_state() argument
210 FFV1Context *fs = s->slice_context[j]; ff_ffv1_close() local
[all...]
/third_party/rust/crates/rustix/tests/fs/
H A Dfile.rs5 rustix::fs::accessat( in test_file()
6 rustix::fs::cwd(), in test_file()
8 rustix::fs::Access::READ_OK, in test_file()
9 rustix::fs::AtFlags::empty(), in test_file()
14 rustix::fs::openat( in test_file()
15 rustix::fs::cwd(), in test_file()
17 rustix::fs::OFlags::RDONLY, in test_file()
18 rustix::fs::Mode::empty(), in test_file()
24 let file = rustix::fs::openat( in test_file()
25 rustix::fs in test_file()
[all...]

Completed in 11 milliseconds

12345678910>>...55