/darwin-on-arm/xnu/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 1120 char * my_pathp = NULL; local 1862 char * my_pathp = NULL; local 1918 char * my_pathp = NULL; local 2310 char * my_pathp = NULL; local 2493 char * my_pathp = NULL; local 2864 char * my_pathp = NULL; local 3085 char * my_pathp = NULL; local 3163 char * my_pathp = NULL; local 3343 char * my_pathp = NULL; local 3536 char * my_pathp = NULL; local 3683 char * my_pathp = NULL; local 3781 char * my_pathp = NULL; local 3899 char * my_pathp = NULL; local 4170 char * my_pathp = NULL; local 4488 char * my_pathp = NULL; local 4697 char * my_pathp; local 5225 char * my_pathp = NULL; local [all...] |
H A D | misc.c | 85 char * my_pathp = NULL; local 90 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 96 strcpy( my_pathp, the_target_dirp ); 97 strcat( my_pathp, the_namep ); 101 my_err = stat( my_pathp, &my_sb ); 113 my_err = rmdir( my_pathp ); 124 my_err = unlink( my_pathp ); 136 my_fd = open( my_pathp, (O_RDWR | O_CREAT | O_EXCL), 150 if ( my_pathp != NULL ) { 152 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 | 105 char * my_pathp = NULL; local 117 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 123 *my_pathp = 0x00; 124 strcat( my_pathp, &g_target_path[0] ); 125 strcat( my_pathp, "/" ); 128 my_err = create_random_name( my_pathp, 1 ); 195 my_fd = open( my_pathp, O_RDWR, 0 ); 442 if ( my_pathp != NULL ) { 443 remove( my_pathp ); 444 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MA [all...] |
H A D | kqueue_tests.c | 150 char * my_pathp = NULL; local 162 kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE); 168 *my_pathp = 0x00; 169 strcat( my_pathp, &g_target_path[0] ); 170 strcat( my_pathp, "/" ); 173 my_err = create_random_name( my_pathp, 1 ); 178 my_fd = open( my_pathp, O_RDWR, 0 ); 223 my_err = unlink( my_pathp ); 535 if ( my_pathp != NULL ) { 536 remove( my_pathp ); [all...] |