Searched refs:my_fd (Results 1 - 5 of 5) sorted by relevance
/macosx-10.5.8/xnu-1228.15.4/tools/tests/xnu_quick_test/ |
H A D | shared_memory_tests.c | 92 int my_fd = -1; local 98 my_fd = shm_open( &my_name[0], (O_RDWR | O_CREAT | O_EXCL), S_IRWXU ); 99 if ( my_fd != -1 ) 107 if ( my_fd == -1 ) { 113 my_err = ftruncate( my_fd, 4096 ); 125 my_addr = (char *) mmap( NULL, 4096, (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 ); 138 if ( my_fd != -1 ) 139 close( my_fd );
|
H A D | xattr_tests.c | 24 int my_fd = -1; local 94 my_fd = open( my_pathp, O_RDONLY, 0 ); 95 if ( my_fd == -1 ) { 102 my_err = fsetxattr( my_fd, XATTR_TEST_NAME, &my_xattr_data[0], sizeof(my_xattr_data), 0, 0 ); 109 my_result = flistxattr( my_fd, NULL, 0, 0 ); 120 my_result = fgetxattr( my_fd, XATTR_TEST_NAME, &my_buffer[0], sizeof(my_buffer), 0, 0 ); 132 my_err = fremovexattr( my_fd, XATTR_TEST_NAME, 0 ); 139 my_result = flistxattr( my_fd, NULL, 0, 0 ); 156 if ( my_fd != -1 ) 157 close( my_fd ); [all...] |
H A D | memory_tests.c | 23 int my_fd = -1; local 87 my_fd = open( my_pathp, O_RDWR, 0 ); 88 if ( my_fd == -1 ) { 94 my_result = write( my_fd, my_bufp, (my_page_size * 10) ); 102 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 ); 162 lseek( my_fd, 0, SEEK_SET ); 164 my_result = read( my_fd, my_bufp, my_page_size ); 186 my_addr = (char *) mmap( NULL, (my_page_size * 2), (PROT_READ | PROT_WRITE), (MAP_FILE | MAP_SHARED), my_fd, 0 );
|
H A D | tests.c | 70 int my_fd = -1; local 92 my_fd = syscall( SYS_open, my_pathp, (O_RDWR | O_EXCL), 0 ); 93 if ( my_fd == -1 ) { 106 if ( my_fd != -1 ) 107 close( my_fd ); 182 int my_fd = -1; local 213 my_fd = open( my_pathp, O_RDONLY, 0 ); 214 if ( my_fd == -1 ) { 221 my_result = read( my_fd, my_bufp, 10); 237 my_result = write( my_fd, my_buf 447 int my_fd = -1; local 625 int my_fd = -1; local 762 int my_fd = -1; local 888 int my_fd = -1; local 1010 int my_fd = -1; local 1218 int my_fd = -1; local 1807 int my_fd = -1; local 2283 int my_fd = -1; local 2493 int my_fd = -1; local 2845 int my_fd = -1; local 2979 int my_fd = -1; local 3048 int my_fd = -1; local 3302 int my_fd = -1; local 3437 int my_fd = -1; local 3677 int my_fd = -1; local 3793 int my_fd = -1; local 4036 int my_fd = -1; local 4850 int my_fd = -1; local 5156 int my_fd = -1; local [all...] |
H A D | misc.c | 14 int my_fd = -1; local 34 my_fd = open( the_pathp, (O_RDWR | O_CREAT | O_EXCL), 36 if ( my_fd == -1 ) { 67 if ( my_fd != -1 ) 68 close( my_fd ); 83 int my_fd = -1; local 133 my_fd = open( my_pathp, (O_RDWR | O_CREAT | O_EXCL), 135 if ( my_fd == -1 ) { 139 close( my_fd );
|
Completed in 29 milliseconds