/macosx-10.10/xnu-2782.1.97/tools/tests/xnu_quick_test/ |
H A D | xattr_tests.c | 26 char * my_pathp = NULL; local 33 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 39 *my_pathp = 0x00; 40 strcat( my_pathp, &g_target_path[0] ); 41 strcat( my_pathp, "/" ); 44 my_err = create_random_name( my_pathp, 1 ); 50 my_err = setxattr( my_pathp, XATTR_TEST_NAME, &my_xattr_data[0], sizeof(my_xattr_data), 0, 0 ); 57 my_result = listxattr( my_pathp, NULL, 0, 0 ); 70 my_result = getxattr( my_pathp, XATTR_TEST_NAME, &my_buffer[0], sizeof(my_buffer), 0, 0 ); 83 my_err = removexattr( my_pathp, XATTR_TEST_NAM [all...] |
H A D | tests.c | 74 char * my_pathp; local 77 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 83 *my_pathp = 0x00; 84 strcpy( my_pathp, &g_target_path[0] ); 85 strcat( my_pathp, "/" ); 88 my_err = create_random_name( my_pathp, 1 ); 96 my_fd = syscall( SYS_open, my_pathp, (O_RDWR | O_EXCL), 0 ); 99 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp ); 112 if ( my_pathp != NULL ) { 113 remove( my_pathp ); 188 char * my_pathp = NULL; local 453 char * my_pathp = NULL; local 632 char * my_pathp = NULL; local 771 char * my_pathp = NULL; local 901 char * my_pathp = NULL; local 1115 char * my_pathp = NULL; local 1845 char * my_pathp = NULL; local 1901 char * my_pathp = NULL; local 2302 char * my_pathp = NULL; local 2485 char * my_pathp = NULL; local 2856 char * my_pathp = NULL; local 3097 char * my_pathp = NULL; local 3175 char * my_pathp = NULL; local 3355 char * my_pathp = NULL; local 3546 char * my_pathp = NULL; local 3693 char * my_pathp = NULL; local 3791 char * my_pathp = NULL; local 3909 char * my_pathp = NULL; local 4175 char * my_pathp = NULL; local 4492 char * my_pathp = NULL; local 4697 char * my_pathp; local 5433 char * my_pathp = NULL; local 5706 char * my_pathp = NULL; local 5909 char * my_pathp = NULL; local 6171 char * my_pathp = NULL; local 6441 char * my_pathp = NULL; local 6560 char * my_pathp = NULL; local 6864 char * my_pathp = NULL; local [all...] |
H A D | misc.c | 87 char * my_pathp = NULL; local 92 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 98 strcpy( my_pathp, the_target_dirp ); 99 strcat( my_pathp, the_namep ); 103 my_err = stat( my_pathp, &my_sb ); 115 my_err = rmdir( my_pathp ); 126 my_err = unlink( my_pathp ); 138 my_fd = open( my_pathp, (O_RDWR | O_CREAT | O_EXCL), 152 if ( my_pathp != NULL ) { 154 remove( my_pathp ); [all...] |
H A D | 32bit_inode_tests.c | 42 char * my_pathp = NULL; local 71 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 77 *my_pathp = 0x00; 78 strcat( my_pathp, &g_target_path[0] ); 79 strcat( my_pathp, "/" ); 82 my_err = create_random_name( my_pathp, 1 ); 88 my_file_namep = strrchr( my_pathp, '/' ); 137 if ( my_pathp != NULL ) { 138 remove( my_pathp ); 139 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MA [all...] |
H A D | memory_tests.c | 39 char * my_pathp = NULL; local 48 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 54 *my_pathp = 0x00; 55 strcat( my_pathp, &g_target_path[0] ); 56 strcat( my_pathp, "/" ); 59 my_err = create_random_name( my_pathp, 1 ); 114 my_fd = open( my_pathp, O_RDWR, 0 ); 324 if ( my_pathp != NULL ) { 325 remove( my_pathp ); 326 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MA [all...] |
H A D | kqueue_tests.c | 146 char * my_pathp = NULL; local 156 kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 162 *my_pathp = 0x00; 163 strcat( my_pathp, &g_target_path[0] ); 164 strcat( my_pathp, "/" ); 167 my_err = create_random_name( my_pathp, 1 ); 172 my_fd = open( my_pathp, O_RDWR, 0 ); 217 my_err = unlink( my_pathp ); 525 if ( my_pathp != NULL ) { 526 remove( my_pathp ); [all...] |