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 */
162 * Call mknod(2) to test different test conditions.
166 TEST(mknod(node_name, MODE_RWX, 0));
168 /* Check return code from mknod(2) */
171 "mknod() returned %ld, expected "
178 tst_resm(TPASS, "mknod() fails, %s, errno:%d",
181 tst_resm(TFAIL, "mknod() fails, %s, errno:%d, "
235 * no_setup() - Some test conditions for mknod(2) do not any setup.
259 * setup1() - setup function for a test condition for which mknod(2)
261 * This function creates a node using mknod(2) and tries to create
267 /* Create a node using mknod */
268 if (mknod("tnode_1", MODE_RWX, 0) < 0) {
276 * setup3() - setup function for a test condition for which mknod(2)
285 /* Create a node using mknod */
286 if (mknod("tnode", MODE_RWX, 0) < 0) {