Lines Matching refs:open
89 /* use an indirect system call to open our test file.
90 * I picked open since it uses a path pointer which grows to 64 bits in an LP64 environment.
94 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
95 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
213 my_fd = open( my_pathp, O_RDONLY, 0 );
215 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
216 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
256 my_fd = open( my_pathp, O_RDWR, 0 );
258 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
259 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
441 * Test close, fpathconf, fstat, open, pathconf system calls.
471 my_fd = open( my_pathp, O_WRONLY, 0 );
473 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
474 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
531 my_fd = open( my_pathp, (O_RDWR | O_TRUNC | O_APPEND), 0 );
533 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
534 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
674 my_fd = open( my_pathp, O_RDWR, 0 );
676 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
677 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
834 my_fd = open( &g_target_path[0], O_RDONLY, 0 );
836 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
837 printf( "\t we attempted to open -> \"%s\" \n", &g_target_path[0] );
960 my_fd = open( my_pathp, O_RDONLY, 0 );
962 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
963 printf( "\t we attempted to open -> \"%s\" \n", &g_target_path[0] );
1107 my_fd = open( my_pathp, O_RDWR, 0 );
1109 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
1110 printf( "\t we attempted to open -> \"%s\" \n", &g_target_path[0] );
1325 /* open kernel to use as test file for fstatfs */
1326 my_fd = open( "/mach_kernel", O_RDONLY, 0 );
1328 printf( "open call failed. got errno %d - %s. \n", errno, strerror( errno ) );
1843 my_fd = open( my_pathp, O_RDWR, 0 );
1845 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
1846 printf( "open failed with wrong error - should be EPERM \n" );
1850 /* this open should work OK */
1851 my_fd = open( my_pathp, O_RDONLY, 0 );
1853 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
1874 my_fd = open( my_pathp, O_RDWR, 0 );
1876 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
2313 my_fd = open( my_pathp, O_RDWR, 0 );
2315 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
2917 my_fd = open( my_pathp, O_RDONLY, 0 );
2919 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3002 my_fd = open(&my_name[0], O_RDONLY );
3004 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3320 /* open our test file and use fcntl to get / set file descriptor flags */
3321 my_fd = open( my_pathp, O_RDONLY, 0 );
3323 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3532 my_fd = open( my_pathp, O_RDWR, 0 );
3534 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3696 my_fd = open( my_pathp, O_RDWR, 0 );
3698 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3723 my_child_fd = open( my_pathp, O_RDWR, 0 );
3725 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3835 /* open read end of fifo */
3836 my_child_fd = open( my_pathp, O_RDWR, 0 );
3838 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3864 /* parent process - open write end of fifo
3866 my_fd = open( my_pathp, O_WRONLY, 0 );
3868 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4092 my_fd = open( &g_target_path[0], (O_RDONLY), 0 );
4094 printf( "open failed with error %d - \"%s\" \n", errno, strerror( errno) );
4164 my_fd = open( &g_target_path[0], (O_RDONLY), 0 );
4166 printf( "open failed with error %d - \"%s\" \n", errno, strerror( errno) );
4260 my_fd1 = open( my_file1_pathp, O_RDWR, 0 );
4262 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4286 my_fd2 = open( my_file2_pathp, O_RDWR, 0 );
4288 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4309 my_fd1 = open( my_file1_pathp, O_RDONLY, 0 );
4311 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4611 my_fd_list[ i ] = open( my_pathp, O_RDWR, 0 );
4613 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4702 my_fd_list[ 0 ] = open( my_pathp, O_RDWR, 0 );
4704 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4874 my_fd = open( my_pathp, O_RDWR, 0 );
4876 printf( "open call failed with error %d - \"%s\" \n", errno, strerror( errno) );