/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server/ |
H A D | minimal-ws-server.c | 12 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 14 * You can change that by changing mount.origin. 37 static const struct lws_http_mount mount = { variable 40 /* .origin */ "./mount-origin", /* serve from dir */ 90 info.mounts = &mount; in main()
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount05.c | 21 * Test for feature MS_BIND of mount. 22 * "Perform a bind mount, making a file or a directory subtree visible 27 #include <sys/mount.h> 71 TEST(mount(mntpoint_src, mntpoint_des, fstype, MS_BIND, NULL)); in main() 74 tst_resm(TFAIL | TTERRNO, "mount(2) failed"); in main() 79 tst_resm(TPASS, "bind mount is ok"); in main()
|
H A D | mount04.c | 17 * Verify that mount(2) returns -1 and sets errno to EPERM if the user 22 #include <sys/mount.h> 46 TEST(mount(device, mntpoint, fs_type, 0, NULL)); in verify_mount() 50 tst_resm(TPASS | TTERRNO, "mount() failed expectedly"); in verify_mount() 53 "mount() was expected to fail with EPERM"); in verify_mount() 58 tst_resm(TFAIL, "mount() succeeded unexpectedly"); in verify_mount() 64 tst_resm(TFAIL | TTERRNO, "mount() returned %li", TEST_RETURN); in verify_mount()
|
H A D | mount06.c | 21 * Test for feature MS_MOVE of mount(2). 22 * "Move an existing mount point to the new location." 26 #include <sys/mount.h> 74 TEST(mount(mntpoint_src, mntpoint_des, fs_type, MS_MOVE, NULL)); in main() 77 tst_resm(TFAIL | TTERRNO, "mount(2) failed"); in main() 81 tst_resm(TPASS, "move mount is ok"); in main() 83 tst_resm(TFAIL, "move mount does not work"); in main() 136 * Turn current dir into a private mount point being a parent in setup() 137 * mount which is required by move mount in setup() [all...] |
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-form-get/ |
H A D | minimal-http-server-form-get.c | 80 /* default mount serves the URL space from ./mount-origin */ 82 static const struct lws_http_mount mount = { variable 85 /* .origin */ "./mount-origin", /* serve from dir */ 131 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/ |
H A D | minimal-ws-server-pmd-bulk.c | 11 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 13 * You can change that by changing mount.origin. 54 static const struct lws_http_mount mount = { variable 57 /* .origin */ "./mount-origin", /* serve from dir */ 114 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-deaddrop/ |
H A D | minimal-http-server-deaddrop.c | 33 * teach the /get mount how to present various filetypes to the client... 90 /* wire up / to serve from ./mount-origin (protected by basic auth) */ 92 static const struct lws_http_mount mount = { variable 95 /* .origin */ "./mount-origin", /* serve from dir */ 150 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-eventlib/ |
H A D | minimal-http-server-eventlib.c | 13 * "./mount-origin" of the directory it was started in. 14 * You can change that by changing mount.origin below. 23 static const struct lws_http_mount mount = { variable 26 /* .origin */ "./mount-origin", /* serve from dir */ 82 info.mounts = &mount; in main()
|
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-proxy-fallback/ |
H A D | minimal-raw-proxy-fallback.c | 34 static const struct lws_http_mount mount = { variable 37 /* .origin */ "./mount-origin", /* serve from dir */ 101 info.mounts = &mount; in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | charge_reserved_hugetlb.sh | 25 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 28 mount -t cgroup2 none $cgroup_path 33 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 36 mount -t cgroup memory,hugetlb $cgroup_path 288 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge 342 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | charge_reserved_hugetlb.sh | 28 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 31 mount -t cgroup2 none $cgroup_path 36 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 39 mount -t cgroup memory,hugetlb $cgroup_path 291 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge 345 mount -t hugetlbfs -o pagesize=${MB}M,size=256M none /mnt/huge
|
/third_party/NuttX/fs/nfs/ |
H A D | rpc_clnt.c | 761 error = strncpy_s(request.mountd.mount.rpath, sizeof(request.mountd.mount.rpath), in rpcclnt_connect() 768 request.mountd.mount.len = txdr_unsigned(sizeof(request.mountd.mount.rpath)); in rpcclnt_connect() 781 error = fxdr_unsigned(uint32_t, response.mdata.mount.status); in rpcclnt_connect() 784 nfs_debug_error("Bad mount status: %d\n", error); in rpcclnt_connect() 788 rpc->rc_fhsize = fxdr_unsigned(uint32_t, response.mdata.mount.fhandle.length); in rpcclnt_connect() 789 memcpy(&rpc->rc_fh, &response.mdata.mount.fhandle.handle, rpc->rc_fhsize); in rpcclnt_connect() 857 * Un-mount the NFS file system.
|
/foundation/filemanagement/storage_service/services/storage_daemon/volume/src/ |
H A D | external_volume_info.cpp | 23 #include <sys/mount.h> 106 int32_t ret = mount(devPath_.c_str(), mountPath_.c_str(), fsType_.c_str(), mountFlags, ""); in DoMount4Ext() 118 int32_t ret = mount(devPath_.c_str(), mountPath_.c_str(), fsType, mountFlags, mountData.c_str()); in DoMount4Hmfs() 133 "mount.ntfs", in DoMount4Ntfs() 150 "mount.exfat", in DoMount4Exfat() 163 return mount(devPath_.c_str(), mountPath_.c_str(), fsType_.c_str(), mountFlags, mountData.c_str()); in DoMount4OtherType() 177 LOGE("volume mount path %{public}s exists, please remove first", GetMountPath().c_str()); in DoMount() 183 LOGE("the volume %{public}s create mount file %{public}s failed", in DoMount() 188 LOGI("Ready to mount: external volume fstype is %{public}s, mountflag is %{public}d", fsType_.c_str(), mountFlags); in DoMount() 206 LOGI("external volume mount succes in DoMount() [all...] |
/kernel/linux/linux-5.10/samples/seccomp/ |
H A D | user-trap.c | 19 #include <sys/mount.h> 115 fprintf(stderr, "huh? trapped something besides mount? %d\n", req->data.nr); in handle_req() 125 * mount to go. in handle_req() 183 if (mount(source, target, NULL, req->data.args[3], NULL) < 0) { in handle_req() 185 perror("actual mount"); in handle_req() 226 * Drop privileges. We definitely can't mount as uid 1000. in main() 247 * Try a bad mount just for grins. in main() 249 if (mount("/dev/sda", "/tmp/foo", NULL, 0, NULL) != -1) { in main() 255 perror("bad error from mount"); in main() 262 if (mount("/tm in main() [all...] |
/kernel/linux/linux-6.6/samples/seccomp/ |
H A D | user-trap.c | 19 #include <sys/mount.h> 115 fprintf(stderr, "huh? trapped something besides mount? %d\n", req->data.nr); in handle_req() 125 * mount to go. in handle_req() 183 if (mount(source, target, NULL, req->data.args[3], NULL) < 0) { in handle_req() 185 perror("actual mount"); in handle_req() 226 * Drop privileges. We definitely can't mount as uid 1000. in main() 247 * Try a bad mount just for grins. in main() 249 if (mount("/dev/sda", "/tmp/foo", NULL, 0, NULL) != -1) { in main() 255 perror("bad error from mount"); in main() 262 if (mount("/tm in main() [all...] |
/third_party/rust/crates/rustix/src/fs/ |
H A D | mod.rs | 51 mod mount; modules 205 pub use mount::{bind_mount, change_mount, mount, move_mount, recursive_bind_mount, remount};
|
/kernel/linux/linux-5.10/Documentation/target/ |
H A D | target-export-device | 40 # Load the target modules and mount the config file system 43 mount | grep -q ^configfs || mount -t configfs none $CONFIGFS
|
/kernel/linux/linux-6.6/Documentation/target/ |
H A D | target-export-device | 40 # Load the target modules and mount the config file system 43 mount | grep -q ^configfs || mount -t configfs none $CONFIGFS
|
/kernel/linux/linux-5.10/tools/testing/selftests/gpio/ |
H A D | gpio-mockup.sh | 6 #2: sysfs/debugfs not mount 43 SYSFS=`mount -t sysfs | head -1 | awk '{ print $3 }'` 50 DEBUGFS=`mount -t debugfs | head -1 | awk '{ print $3 }'`
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_cgrp2_tc.sh | 48 mount -t cgroup2 none $CGRP2_ROOT || return $? 118 echo "mount: "; mount | egrep '(cgroup2|bpf)'; echo
|
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-threads-smp/ |
H A D | minimal-ws-server.c | 16 * To keep it simple, it serves stuff in the subdirectory "./mount-origin" of 18 * You can change that by changing mount.origin. 47 static const struct lws_http_mount mount = { variable 50 /* .origin */ "./mount-origin", /* serve from dir */ 165 info.mounts = &mount; in main()
|
/third_party/ltp/include/lapi/ |
H A D | fsmount.h | 14 #include <sys/mount.h> 18 # include <linux/mount.h>
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-eventlib-demos/ |
H A D | minimal-http-server-eventlib-demos.c | 13 * "./mount-origin" of the directory it was started in. 14 * You can change that by changing mount.origin below. 41 * mount handlers for sections of the URL space 47 "./mount-origin/candide-uncompressed.zip", /* handler */ 65 "./mount-origin/candide.zip", /* handler */ 100 }, mount = { variable 103 /* .origin */ "./mount-origin", /* serve from dir */ 161 info.mounts = &mount; in main()
|
/third_party/ltp/lib/ |
H A D | tst_supported_fs_types.c | 9 #include <sys/mount.h> 86 ret = mount("/dev/zero", template, fs_type, 0, NULL); in has_kernel_support() 112 sprintf(buf, "mount.%s >/dev/null 2>&1", fs_type); in has_kernel_support()
|
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-fallback-http-server/ |
H A D | minimal-raw-fallback-http-server.c | 12 * "./mount-origin" of the directory it was started in. 13 * You can change that by changing mount.origin below. 30 static const struct lws_http_mount mount = { variable 33 /* .origin */ "./mount-origin", /* serve from dir */ 114 info.mounts = &mount; in main()
|