Lines Matching defs:my_pathp

74 	char *			my_pathp;
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 );
114 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
188 char * my_pathp = NULL;
196 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
208 *my_pathp = 0x00;
209 strcat( my_pathp, &g_target_path[0] );
210 strcat( my_pathp, "/" );
213 my_err = create_random_name( my_pathp, 1 );
218 my_fd = open( my_pathp, O_RDONLY, 0 );
221 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
261 my_fd = open( my_pathp, O_RDWR, 0 );
264 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
411 my_err = truncate( my_pathp, 0 );
417 my_err = stat( my_pathp, &my_sb );
436 if ( my_pathp != NULL ) {
437 remove( my_pathp );
438 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
453 char * my_pathp = NULL;
460 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
466 *my_pathp = 0x00;
467 strcat( my_pathp, &g_target_path[0] );
468 strcat( my_pathp, "/" );
471 my_err = create_random_name( my_pathp, 1 );
477 my_fd = open( my_pathp, O_WRONLY, 0 );
480 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
485 my_pconf_result = pathconf( my_pathp, _PC_PATH_MAX );
537 my_fd = open( my_pathp, (O_RDWR | O_TRUNC | O_APPEND), 0 );
540 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
617 if ( my_pathp != NULL ) {
618 remove( my_pathp );
619 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
632 char * my_pathp = NULL;
639 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
651 *my_pathp = 0x00;
653 strcat( my_pathp, &g_target_path[0] );
654 strcat( my_pathp, "/" );
657 my_err = create_random_name( my_pathp, 1 );
663 strcat( my_path2p, my_pathp );
667 my_err = stat( my_pathp, &my_sb );
676 printf( "stat structure looks bogus for test file \"%s\" \n", my_pathp );
682 my_fd = open( my_pathp, O_RDWR, 0 );
685 printf( "\t file we attempted to open -> \"%s\" \n", my_pathp );
703 my_err = link( my_pathp, my_path2p );
708 my_err = stat( my_pathp, &my_sb );
714 printf( "stat structure looks bogus for test file \"%s\" \n", my_pathp );
721 printf( "stat structure looks bogus for test file \"%s\" \n", my_pathp );
732 my_err = stat( my_pathp, &my_sb );
738 printf( "stat structure looks bogus for test file \"%s\" \n", my_pathp );
752 if ( my_pathp != NULL ) {
753 remove( my_pathp );
754 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
771 char * my_pathp = NULL;
779 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
785 *my_pathp = 0x00;
786 strcat( my_pathp, &g_target_path[0] );
787 strcat( my_pathp, "/" );
790 my_err = create_random_name( my_pathp, 1 );
798 my_err = stat( my_pathp, &my_sb );
811 my_file_namep = strrchr( my_pathp, '/' );
882 if ( my_pathp != NULL ) {
883 remove( my_pathp );
884 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
901 char * my_pathp = NULL;
911 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
917 *my_pathp = 0x00;
918 strcat( my_pathp, &g_target_path[0] );
919 strcat( my_pathp, "/" );
922 my_err = create_random_name( my_pathp, 1 );
929 my_err = chmod( my_pathp, S_IRWXU );
935 my_err = chmod( my_pathp, (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) );
942 my_err = access( my_pathp, (X_OK) );
960 my_err = stat( my_pathp, &my_sb );
1049 my_fd = open( my_pathp, O_RDONLY, 0 );
1062 my_err = stat( my_pathp, &my_sb );
1084 if ( my_pathp != NULL ) {
1085 remove( my_pathp );
1086 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
1120 char * my_pathp = NULL;
1130 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
1136 *my_pathp = 0x00;
1137 strcat( my_pathp, &g_target_path[0] );
1138 strcat( my_pathp, "/" );
1141 my_err = create_random_name( my_pathp, 1 );
1174 my_err = stat( my_pathp, &my_sb );
1200 my_err = chown( my_pathp, my_orig_uid, my_new_gid1 );
1207 my_err = stat( my_pathp, &my_sb );
1218 my_fd = open( my_pathp, O_RDWR, 0 );
1232 my_err = stat( my_pathp, &my_sb );
1243 my_err = symlink( my_pathp, my_link_pathp );
1296 if ( my_pathp != NULL ) {
1297 remove( my_pathp );
1298 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
1862 char * my_pathp = NULL;
1871 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
1877 *my_pathp = 0x00;
1878 strcat( my_pathp, "/dev/" );
1881 my_err = create_random_name( my_pathp, 0 );
1886 my_err = mknod( my_pathp, (S_IFCHR | S_IRWXU), 0 );
1889 printf( "path \"%s\" \n", my_pathp );
1902 if ( my_pathp != NULL ) {
1903 remove( my_pathp );
1904 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
1918 char * my_pathp = NULL;
1922 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
1928 *my_pathp = 0x00;
1929 strcat( my_pathp, &g_target_path[0] );
1930 strcat( my_pathp, "/" );
1933 my_err = create_random_name( my_pathp, 1 );
1939 my_err = stat( my_pathp, &my_sb );
1946 my_err = chflags( my_pathp, my_flags );
1953 my_fd = open( my_pathp, O_RDWR, 0 );
1961 my_fd = open( my_pathp, O_RDONLY, 0 );
1967 my_err = stat( my_pathp, &my_sb );
1984 my_fd = open( my_pathp, O_RDWR, 0 );
1999 if ( my_pathp != NULL ) {
2000 remove( my_pathp );
2001 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
2310 char * my_pathp = NULL;
2315 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
2321 *my_pathp = 0x00;
2322 strcat( my_pathp, &g_target_path[0] );
2323 strcat( my_pathp, "/" );
2326 my_err = create_random_name( my_pathp, 1 );
2338 my_fd = open( my_pathp, O_RDWR, 0 );
2421 if ( my_pathp != NULL ) {
2422 remove( my_pathp );
2423 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
2493 char * my_pathp = NULL;
2497 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
2503 *my_pathp = 0x00;
2504 strcat( my_pathp, &g_target_path[0] );
2505 strcat( my_pathp, "/" );
2508 my_err = create_random_name( my_pathp, 1 );
2731 if ( my_pathp != NULL ) {
2732 remove( my_pathp );
2733 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
2864 char * my_pathp = NULL;
2877 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
2883 *my_pathp = 0x00;
2884 strcat( my_pathp, &g_target_path[0] );
2885 strcat( my_pathp, "/" );
2888 my_err = create_random_name( my_pathp, 1 );
2894 my_err = acct( my_pathp );
2942 my_fd = open( my_pathp, O_RDONLY, 0 );
2978 if ( my_pathp != NULL ) {
2979 remove( my_pathp );
2980 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3085 char * my_pathp = NULL;
3090 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3096 *my_pathp = 0x00;
3097 strcat( my_pathp, &g_target_path[0] );
3098 strcat( my_pathp, "/" );
3101 my_err = create_random_name( my_pathp, 0 );
3112 my_err = mkdir( my_pathp, (S_IRWXU | S_IRWXG | S_IRWXO) );
3119 my_err = stat( my_pathp, &my_sb );
3130 my_err = rmdir( my_pathp );
3144 if ( my_pathp != NULL ) {
3145 rmdir( my_pathp );
3146 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3163 char * my_pathp = NULL;
3172 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3178 *my_pathp = 0x00;
3179 strcat( my_pathp, &g_target_path[0] );
3180 strcat( my_pathp, "/" );
3183 my_err = create_random_name( my_pathp, 0 );
3189 my_err = mkdir( my_pathp, (S_IRWXU | S_IRWXG | S_IRWXO) );
3210 my_err = chroot( my_pathp );
3250 if ( my_pathp != NULL ) {
3251 my_err = rmdir( my_pathp );
3253 printf( "rmdir failed with error %d - \"%s\" path %p\n", errno, strerror( errno), my_pathp );
3255 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3343 char * my_pathp = NULL;
3346 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3352 *my_pathp = 0x00;
3353 strcat( my_pathp, &g_target_path[0] );
3354 strcat( my_pathp, "/" );
3357 my_err = create_random_name( my_pathp, 1 );
3363 my_fd = open( my_pathp, O_RDONLY, 0 );
3465 if ( my_pathp != NULL ) {
3466 remove( my_pathp );
3467 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3536 char * my_pathp = NULL;
3550 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3556 *my_pathp = 0x00;
3557 strcat( my_pathp, &g_target_path[0] );
3558 strcat( my_pathp, "/" );
3561 my_err = create_random_name( my_pathp, 1 );
3602 my_err = stat( my_pathp, &my_sb );
3612 my_err = utimes( my_pathp, &my_utimes[0] );
3619 my_err = stat( my_pathp, &my_sb );
3632 my_fd = open( my_pathp, O_RDWR, 0 );
3647 my_err = stat( my_pathp, &my_sb );
3669 if ( my_pathp != NULL ) {
3670 remove( my_pathp );
3671 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3683 char * my_pathp = NULL;
3689 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3695 *my_pathp = 0x00;
3696 strcat( my_pathp, &g_target_path[0] );
3697 strcat( my_pathp, "/" );
3700 my_err = create_random_name( my_pathp, 1 );
3722 my_err = stat( my_pathp, &my_sb );
3730 my_err = rename( my_pathp, my_new_pathp );
3737 my_err = stat( my_pathp, &my_sb );
3761 if ( my_pathp != NULL ) {
3762 remove( my_pathp );
3763 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3781 char * my_pathp = NULL;
3784 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3790 *my_pathp = 0x00;
3791 strcat( my_pathp, &g_target_path[0] );
3792 strcat( my_pathp, "/" );
3795 my_err = create_random_name( my_pathp, 1 );
3801 my_fd = open( my_pathp, O_RDWR, 0 );
3828 my_child_fd = open( my_pathp, O_RDWR, 0 );
3883 if ( my_pathp != NULL ) {
3884 remove( my_pathp );
3885 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
3899 char * my_pathp = NULL;
3904 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
3910 *my_pathp = 0x00;
3911 strcat( my_pathp, &g_target_path[0] );
3912 strcat( my_pathp, "/" );
3915 my_err = create_random_name( my_pathp, 0 );
3920 my_err = mkfifo( my_pathp, (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) );
3943 my_child_fd = open( my_pathp, O_RDWR, 0 );
3973 my_fd = open( my_pathp, O_WRONLY, 0 );
4011 if ( my_pathp != NULL ) {
4012 remove( my_pathp );
4013 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
4170 char * my_pathp = NULL;
4205 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
4211 *my_pathp = 0x00;
4212 strcat( my_pathp, &g_target_path[0] );
4213 strcat( my_pathp, "/" );
4216 my_err = create_random_name( my_pathp, 1 );
4222 my_file_namep = strrchr( my_pathp, '/' );
4236 my_err = getattrlist( my_pathp, &my_attrlist, &my_attr_buf[0], sizeof(my_attr_buf[0]), 0 );
4259 my_err = setattrlist( my_pathp, &my_attrlist, &my_attr_buf[0].backup_time, sizeof(my_attr_buf[0].backup_time), 0 );
4311 if ( my_pathp != NULL ) {
4312 remove( my_pathp );
4313 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
4488 char * my_pathp = NULL;
4512 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
4518 *my_pathp = 0x00;
4519 strcat( my_pathp, &g_target_path[0] );
4520 strcat( my_pathp, "/" );
4523 my_err = create_file_with_name( my_pathp, "foo", 0 );
4525 printf( "failed to create a test file name in \"%s\" \n", my_pathp );
4529 my_err = create_file_with_name( my_pathp, "foobar", 0 );
4531 printf( "failed to create a test file name in \"%s\" \n", my_pathp );
4535 my_err = create_file_with_name( my_pathp, "foofoo", 0 );
4537 printf( "failed to create a test file name in \"%s\" \n", my_pathp );
4541 my_err = create_file_with_name( my_pathp, "xxxfoo", 0 );
4543 printf( "failed to create a test file name in \"%s\" \n", my_pathp );
4607 my_err = searchfs( my_pathp, &my_search_blk, &my_matches, 0, my_search_options, &my_search_state );
4665 if ( my_pathp != NULL ) {
4666 char * my_ptr = (my_pathp + strlen( my_pathp ));
4667 strcat( my_pathp, "foo" );
4668 remove( my_pathp );
4670 strcat( my_pathp, "foobar" );
4671 remove( my_pathp );
4673 strcat( my_pathp, "foofoo" );
4674 remove( my_pathp );
4676 strcat( my_pathp, "xxxfoo" );
4677 remove( my_pathp );
4678 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);
4697 char * my_pathp;
4726 my_pathp = my_file_paths[ i ];
4727 *my_pathp = 0x00;
4728 strcat( my_pathp, &g_target_path[0] );
4729 strcat( my_pathp, "/" );
4732 my_err = create_random_name( my_pathp, 1 );
4736 my_fd_list[ i ] = open( my_pathp, O_RDWR, 0 );
4827 my_fd_list[ 0 ] = open( my_pathp, O_RDWR, 0 );
5225 char * my_pathp = NULL;
5228 my_kr = vm_allocate((vm_map_t) mach_task_self(), (vm_address_t*)&my_pathp, PATH_MAX, VM_FLAGS_ANYWHERE);
5234 *my_pathp = 0x00;
5235 strcat( my_pathp, &g_target_path[0] );
5236 strcat( my_pathp, "/" );
5239 my_err = create_random_name( my_pathp, 1 );
5256 if ( my_pathp != NULL ) {
5257 remove( my_pathp );
5258 vm_deallocate(mach_task_self(), (vm_address_t)my_pathp, PATH_MAX);