Searched refs:fpath (Results 1 - 16 of 16) sorted by path

/freebsd-11-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_vfsops.c77 char fpath[MAXPATHLEN]; local
83 sprintf(fpath, "%s/file", path);
84 fd = rump_sys_open(fpath, O_RDWR | O_CREAT, 0777);
97 if (rump_sys_getfh(fpath, NULL, &fhsize) == -1) {
106 if (rump_sys_getfh(fpath, fhp, &fhsize) == -1)
/freebsd-11-stable/tools/regression/priv/
H A Dpriv_vfs_chflags.c50 static char fpath[1024]; variable
73 setup_file("priv_vfs_chflags_froot_setup: fpath", fpath, UID_ROOT,
84 setup_file("priv_vfs_chflags_fowner_setup: fpath", fpath, UID_OWNER,
95 setup_file("priv_vfs_chflags_fowner_setup: fpath", fpath, UID_OTHER,
108 flags = getflags(fpath);
110 error = chflags(fpath, flags);
132 flags = getflags(fpath);
[all...]
H A Dpriv_vfs_chmod.c49 static char fpath[1024]; variable
56 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_ROOT, GID_WHEEL,
66 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_OWNER,
76 setup_file("priv_vfs_chmod_setup: fpath", fpath, UID_OTHER,
87 error = chmod(fpath, 0640);
105 error = chmod(fpath, 0640);
124 error = chmod(fpath, 064
[all...]
H A Dpriv_vfs_chown.c54 static char fpath[1024]; variable
64 setup_file("priv_vfs_chown_uid: fpath", fpath, UID_ROOT, GID_WHEEL,
75 error = chown(fpath, UID_OWNER, -1);
98 setup_file("priv_vfs_chown_mygid: fpath", fpath, asroot ? UID_ROOT :
109 error = chown(fpath, -1, asroot ? GID_WHEEL : GID_OWNER);
132 setup_file("priv_vfs_chown_othergid: fpath", fpath, asroot ? UID_ROOT
143 error = chown(fpath,
[all...]
H A Dpriv_vfs_clearsugid.c64 static char fpath[1024]; variable
76 if (stat(fpath, &sb) < 0) {
77 warn("%s stat(%s)", test_case, fpath);
95 setup_file("priv_vfs_clearsugid_setup: fpath", fpath, UID_OWNER,
105 if (chown(fpath, -1, asroot ? GID_WHEEL : GID_OWNER) < 0)
120 if (extattr_set_file(fpath, EA_NAMESPACE, EA_NAME, EA_DATA, EA_SIZE)
133 fd = open(fpath, O_RDWR);
149 (void)unlink(fpath);
H A Dpriv_vfs_extattr_system.c53 static char fpath[1024]; variable
64 setup_file("priv_vfs_extattr_system_setup: fpath", fpath, UID_ROOT,
76 ret = extattr_set_file(fpath, EA_NAMESPACE, EA_NAME, EA_DATA,
103 (void)unlink(fpath);
H A Dpriv_vfs_fhopen.c48 static char fpath[1024]; variable
56 setup_file("private_vfs_fhopen_setup: fpath", fpath, UID_ROOT,
59 if (getfh(fpath, &fh) < 0) {
60 warn("priv_vfs_fhopen_setup: getfh(%s)", fpath);
94 (void)unlink(fpath);
H A Dpriv_vfs_fhstat.c48 static char fpath[1024]; variable
56 setup_file("priv_vfs_fhstat_setup: fpath", fpath, UID_ROOT,
59 if (getfh(fpath, &fh) < 0) {
60 warn("priv_vfs_fhstat_setup: getfh(%s)", fpath);
88 (void)unlink(fpath);
H A Dpriv_vfs_fhstatfs.c47 static char fpath[1024]; variable
55 setup_file("priv_vfs_fhstatfs_setup: fpath", fpath, UID_ROOT,
58 if (getfh(fpath, &fh) < 0) {
59 warn("priv_vfs_fhstatfs_setup: getfh(%s)", fpath);
90 (void)unlink(fpath);
H A Dpriv_vfs_generation.c50 static char fpath[1024]; variable
68 setup_file("priv_vfs_generation_setup: fpath", fpath,
70 if (stat(fpath, &sb) < 0) {
71 warn("priv_vfs_generation_setup: fstat(%s)", fpath);
72 (void)unlink(fpath);
90 error = stat(fpath, &sb);
117 (void)unlink(fpath);
H A Dpriv_vfs_getfh.c46 static char fpath[1024]; variable
52 setup_file("priv_vfs_getfh_setup: fpath", fpath, UID_ROOT, GID_WHEEL,
63 error = getfh(fpath, &fh);
78 (void)unlink(fpath);
H A Dpriv_vfs_setgid.c49 static char fpath[1024]; variable
56 setup_file("priv_vfs_setgid_fowner: fpath", fpath, UID_OWNER,
67 setup_file("priv_vfs_setgid_forther: fpath", fpath, UID_OWNER,
78 error = chmod(fpath, 0600 | S_ISGID);
98 error = chmod(fpath, 0600 | S_ISGID);
118 (void)unlink(fpath);
H A Dpriv_vfs_stickyfile.c46 char fpath[1024]; variable
79 setup_file("priv_vfs_stickyfile_fowner_setup: fpath", fpath,
90 setup_file("priv_vfs_stickyfile_fother_setup: fpath", fpath,
141 error = chmod(fpath, 0600 | S_ISTXT);
161 error = chmod(fpath, 0600 | S_ISTXT);
191 (void)unlink(fpath);
H A Dpriv_vfs_utimes.c50 static char fpath[1024]; variable
57 setup_file("priv_vfs_utimes_froot_setup: fpath", fpath,
67 setup_file("priv_vfs_utimes_fowner_setup: fpath", fpath,
83 setup_file("priv_vfs_utimes_fother_setup: fpath", fpath,
99 error = utimes(fpath, tv);
117 error = utimes(fpath, NULL);
142 error = utimes(fpath, t
[all...]
/freebsd-11-stable/tools/tools/kdrv/
H A DKernelDriver586 if {[scan $line "\# filei386: %s" fpath] == 1} {
587 set f [file tail $fpath];
588 set Drv(filei386:$f) "[file dirname $fpath]/";
625 if {[scan $line "\# fileconf: %s" fpath] == 1} {
626 set f [file tail $fpath];
627 set Drv(fileconf:$f) "[file dirname $fpath]/";
698 if {[scan $line "\# file: %s" fpath] == 1} {
699 set f [file tail $fpath];
700 set Drv(filei386:$f) "[file dirname $fpath]/";
738 if {[scan $line "\# file: %s" fpath]
[all...]
/freebsd-11-stable/usr.sbin/boot0cfg/
H A Dboot0cfg.c123 const char *bpath, *fpath; local
131 fpath = NULL;
157 fpath = optarg;
202 if (fpath)
203 write_mbr(fpath, O_CREAT | O_TRUNC, mbr, mbr_size);

Completed in 194 milliseconds