Home
last modified time | relevance | path

Searched refs:mknod (Results 1 - 25 of 80) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/getxattr/
H A Dgetxattr02.c130 if (mknod(FIFO, S_IFIFO | 0777, 0) == -1) in setup()
135 if (mknod(CHR, S_IFCHR | 0777, dev) == -1) in setup()
139 if (mknod(BLK, S_IFBLK | 0777, 0) == -1) in setup()
143 if (mknod(SOCK, S_IFSOCK | 0777, 0) == -1) in setup()
/third_party/ltp/testcases/kernel/security/tomoyo/
H A Dtomoyo_new_file_test.c240 show_result(mknod(filename, S_IFIFO | 0644, 0), 1); in stage_file_test()
243 show_result(mknod(filename, S_IFIFO | 0644, 0), 0); in stage_file_test()
405 show_result(mknod(filename, S_IFREG | 0644, 0), 1); in stage_file_test()
408 show_result(mknod(filename, S_IFREG | 0644, 0), 0); in stage_file_test()
413 show_result(mknod(filename, S_IFCHR | 0644, MKDEV(1, 3)), 1); in stage_file_test()
416 show_result(mknod(filename, S_IFCHR | 0644, MKDEV(1, 3)), 0); in stage_file_test()
421 show_result(mknod(filename, S_IFBLK | 0644, MKDEV(1, 0)), 1); in stage_file_test()
424 show_result(mknod(filename, S_IFBLK | 0644, MKDEV(1, 0)), 0); in stage_file_test()
429 show_result(mknod(filename, S_IFIFO | 0644, 0), 1); in stage_file_test()
432 show_result(mknod(filenam in stage_file_test()
[all...]
H A Dtomoyo_file_test.c147 show_prompt("mknod(S_IFREG)"); in stage_file_test()
148 show_result(mknod(mknod_reg_path, S_IFREG, 0)); in stage_file_test()
150 show_prompt("mknod(S_IFCHR)"); in stage_file_test()
151 show_result(mknod(mknod_chr_path, S_IFCHR, MKDEV(1, 3))); in stage_file_test()
153 show_prompt("mknod(S_IFBLK)"); in stage_file_test()
154 show_result(mknod(mknod_blk_path, S_IFBLK, MKDEV(1, 0))); in stage_file_test()
156 show_prompt("mknod(S_IFIFO)"); in stage_file_test()
157 show_result(mknod(mknod_fifo_path, S_IFIFO, 0)); in stage_file_test()
159 show_prompt("mknod(S_IFSOCK)"); in stage_file_test()
160 show_result(mknod(mknod_sock_pat in stage_file_test()
[all...]
/third_party/ltp/testcases/kernel/syscalls/mknod/
H A Dmknod06.c25 * 1) mknod(2) returns -1 and sets errno to EEXIST if specified path
27 * 2) mknod(2) returns -1 and sets errno to EFAULT if pathname points
29 * 3) mknod(2) returns -1 and sets errno to ENOENT if the directory
31 * 4) mknod(2) returns -1 and sets errno to ENAMETOOLONG if the pathname
33 * 5) mknod(2) returns -1 and sets errno to ENOTDIR if the directory
37 * mknod() should fail with return value -1 and set expected errno.
91 int setup1(); /* setup function to test mknod for EEXIST */
92 int setup3(); /* setup function to test mknod for ENOTDIR */
93 int longpath_setup(); /* setup function to test mknod for ENAMETOOLONG */
142 * Call mknod( in main()
[all...]
H A Dmknod02.c11 * Verify that if mknod(2) creates a filesystem node in a directory which
43 TST_EXP_PASS(mknod(TEMP_NODE, MODE1, 0), "mknod(%s, %o, 0)", TEMP_NODE, MODE1); in run()
H A Dmknod01.c11 * Verify that mknod(2) successfully creates a filesystem node with
39 TST_EXP_PASS(mknod(PATH, tcases[i], dev), in run()
40 "mknod(PATH, %o, %ld)", in run()
H A Dmknod09.c23 * Verify that, mknod() fails with -1 and sets errno to EINVAL if the mode is
27 * mknod() should fail with return value -1 and sets expected errno.
97 * Call mknod(2) to test condition. in main()
101 TEST(mknod(TNODE, MODE_RWX, 0)); in main()
103 /* Check return code from mknod(2) */ in main()
105 tst_resm(TFAIL, "mknod() returned %ld, " in main()
110 tst_resm(TPASS, "mknod() fails with expected " in main()
113 tst_resm(TFAIL, "mknod() fails, %s, " in main()
/third_party/toybox/scripts/
H A Druntest.sh202 mknod tmpdir4chroot/dev/tty c 5 0
203 mknod tmpdir4chroot/dev/null c 1 3
204 mknod tmpdir4chroot/dev/zero c 1 5
/third_party/ltp/testcases/kernel/device-drivers/nls/
H A DuserBlockNLS.c120 rc = mknod(DEVICE_NAME, in open_block_device()
140 rc = mknod(DEVICE_NAME, in open_block_device()
/third_party/ltp/testcases/kernel/device-drivers/usb/user_usb/
H A Duser_tusb.c72 rc = mknod(DEVICE_NAME, in tusbopen()
91 rc = mknod(DEVICE_NAME, in tusbopen()
/third_party/ltp/testcases/kernel/device-drivers/dev_sim_framework/user_space/
H A Duser_tmod.c91 rc = mknod(DEVICE_NAME, in tmodopen()
110 rc = mknod(DEVICE_NAME, in tmodopen()
/third_party/ltp/testcases/kernel/device-drivers/include/
H A DuserBlockInclude.c120 rc = mknod(DEVICE_NAME, in open_block_device()
140 rc = mknod(DEVICE_NAME, in open_block_device()
/third_party/ltp/testcases/kernel/device-drivers/base/user_base/
H A Duser_tbase.c87 rc = mknod("/dev/tbase", in tbaseopen()
106 rc = mknod("/dev/tbase", in tbaseopen()
/third_party/ltp/testcases/kernel/device-drivers/agp/user_space/
H A Duser_tagp.c87 rc = mknod(DEVICE_NAME, in tagpopen()
106 rc = mknod(DEVICE_NAME, in tagpopen()
/third_party/musl/src/stat/
H A Dmkfifo.c11 return mknod(path, mode | S_IFIFO, 0); in mkfifo()
H A Dmknod.c6 int mknod(const char *path, mode_t mode, dev_t dev) in mknod() function
H A D__xstat.c34 return mknod(path, mode, *dev); in __xmknod()
/third_party/musl/libc-test/src/functionalext/supplement/stat/
H A Dmknod.c29 int ret = mknod(pathname, TEST_MODE, 0); in mknod_0100()
/third_party/musl/porting/liteos_a/user/src/stat/
H A Dmknod.c6 int mknod(const char *path, mode_t mode, dev_t dev) in mknod() function
/third_party/toybox/toys/posix/
H A Dmkfifo.c49 if (mknod(*s, S_IFIFO | TT.mode, 0) < 0) perror_msg_raw(*s); in mkfifo_main()
/third_party/toybox/toys/lsb/
H A Dmknod.c0 /* mknod.c - make block or character special file
5 * http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/mknod.html
7 USE_MKNOD(NEWTOY(mknod, "<2>4m(mode):"USE_MKNOD_Z("Z:"), TOYFLAG_BIN|TOYFLAG_UMASK))
10 bool "mknod"
13 usage: mknod [-m MODE] NAME TYPE [MAJOR MINOR]
25 usage: mknod [-Z CONTEXT] ...
55 if (mknod(*toys.optargs, mode|modes[type], dev_makedev(major, minor))) in mknod_main()
/third_party/ltp/testcases/kernel/device-drivers/drm/user_space/
H A Duser_tdrm.c85 rc = mknod(DEVICE_NAME, in tdrmopen()
104 rc = mknod(DEVICE_NAME, in tdrmopen()
/third_party/ltp/testcases/kernel/fs/stream/
H A Dstream02.c23 >KEYS: < fseek() mknod() fopen()
69 if (mknod(tempfile1, (S_IFIFO | 0666), 0) != 0) { in main()
70 tst_resm(TFAIL, "mknod failed in block0: %s", in main()
/third_party/f2fs-tools/scripts/
H A Dspo_test.sh56 $F2FS_DIR/stress_test/fsstress/fsstress -z -f link=0 -f mkdir=3 -f mknod=3 -f rmdir=2 -f symlink=3 -f truncate=4 -f write=10 -f creat=10 -f unlink=5 -f rename=5 -f fsync=10 -p 10 -n 10000 -l 0 -d $MNT &
/third_party/eudev/test/
H A Dtest-udev.c155 mknod(udev_device_get_devnode(dev), mode, udev_device_get_devnum(dev)); in main()

Completed in 6 milliseconds

1234