Lines Matching refs:mknod
25 * 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(2) to test different test conditions.
146 TEST(mknod(node_name, MODE_RWX, 0));
148 /* Check return code from mknod(2) */
151 "mknod() returned %ld, expected "
158 tst_resm(TPASS, "mknod() fails, %s, errno:%d",
161 tst_resm(TFAIL, "mknod() fails, %s, errno:%d, "
209 * no_setup() - Some test conditions for mknod(2) do not any setup.
233 * setup1() - setup function for a test condition for which mknod(2)
235 * This function creates a node using mknod(2) and tries to create
241 /* Create a node using mknod */
242 if (mknod("tnode_1", MODE_RWX, 0) < 0) {
250 * setup3() - setup function for a test condition for which mknod(2)
259 /* Create a node using mknod */
260 if (mknod("tnode", MODE_RWX, 0) < 0) {