Lines Matching refs:my_err
69 int my_err;
84 my_err = create_random_name( my_pathp, 1 );
85 if ( my_err != 0 ) {
99 my_err = 0;
103 my_err = -1;
112 return( my_err );
121 int my_err, my_status;
135 my_err = stat( &g_target_path[0], &my_sb );
136 if ( my_err != 0 ) {
183 int my_err;
208 my_err = create_random_name( my_pathp, 1 );
209 if ( my_err != 0 ) {
238 my_err = errno;
248 if ( my_err != EBADF ) {
275 my_err = fsync( my_fd );
276 if ( my_err == -1 ) {
304 my_err = ftruncate( my_fd, 0 );
305 if ( my_err == -1 ) {
310 my_err = fstat( my_fd, &my_sb );
311 if ( my_err == -1 ) {
406 my_err = truncate( my_pathp, 0 );
407 if ( my_err == -1 ) {
412 my_err = stat( my_pathp, &my_sb );
413 if ( my_err == -1 ) {
422 my_err = 0;
426 my_err = -1;
437 return( my_err );
446 int my_err;
465 my_err = create_random_name( my_pathp, 1 );
466 if ( my_err != 0 ) {
505 my_err = errno;
518 my_err = errno;
523 else if ( my_err != EBADF ) {
524 printf( "read call should have failed with errno 9 (EBADF). actually failed with %d - \"%s\" \n", my_err, strerror( my_err) );
549 my_err = errno;
563 my_err = errno;
588 my_err = fstat( my_fd, &my_sb );
589 if ( my_err == -1 ) {
602 my_err = 0;
606 my_err = -1;
615 return( my_err );
624 int my_err;
649 my_err = create_random_name( my_pathp, 1 );
650 if ( my_err != 0 ) {
659 my_err = stat( my_pathp, &my_sb );
660 if ( my_err != 0 ) {
681 my_err = errno;
695 my_err = link( my_pathp, my_path2p );
696 if ( my_err != 0 ) {
700 my_err = stat( my_pathp, &my_sb );
701 if ( my_err != 0 ) {
719 my_err = unlink( my_path2p );
720 if ( my_err != 0 ) {
724 my_err = stat( my_pathp, &my_sb );
725 if ( my_err != 0 ) {
735 my_err = 0;
739 my_err = -1;
752 return( my_err );
761 int my_err;
780 my_err = create_random_name( my_pathp, 1 );
781 if ( my_err != 0 ) {
788 my_err = stat( my_pathp, &my_sb );
789 if ( my_err != 0 ) {
795 my_err = chdir( &g_target_path[0] );
796 if ( my_err != 0 ) {
803 my_err = stat( my_file_namep, &my_sb2 );
804 if ( my_err != 0 ) {
820 my_err = chdir( "/" );
821 if ( my_err != 0 ) {
827 my_err = stat( my_file_namep, &my_sb2 );
828 if ( my_err == 0 ) {
841 my_err = fchdir( my_fd );
842 if ( my_err == -1 ) {
847 my_err = stat( my_file_namep, &my_sb2 );
848 if ( my_err != 0 ) {
863 my_err = 0;
867 my_err = -1;
877 my_err = -1;
878 return( my_err );
887 int my_err;
903 my_err = create_random_name( my_pathp, 1 );
904 if ( my_err != 0 ) {
909 my_err = chmod( my_pathp, S_IRWXU );
910 if ( my_err == -1 ) {
915 my_err = chmod( my_pathp, (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) );
916 if ( my_err == -1 ) {
922 my_err = access( my_pathp, (X_OK) );
923 if ( my_err == 0 ) {
927 else if ( my_err == -1 ) {
932 my_err = errno;
934 if ( ( tmp == 0 && my_err != EPERM) || (tmp != 0 && my_err != EACCES) ) {
935 printf( "access failed with errno %d - %s. \n", my_err, strerror( my_err ) );
939 if ( ( tmp == 0 && my_err != EACCES) || (tmp != 0 && my_err != EACCES) ) {
940 printf( "access failed with errno %d - %s. \n", my_err, strerror( my_err ) );
947 my_err = stat( my_pathp, &my_sb );
948 if ( my_err != 0 ) {
967 my_err = fchmod( my_fd, S_IRWXU );
968 if ( my_err == -1 ) {
973 my_err = stat( my_pathp, &my_sb );
974 if ( my_err != 0 ) {
986 my_err = 0;
990 my_err = -1;
999 return( my_err );
1009 int my_err, my_group_count, i;
1031 my_err = create_random_name( my_pathp, 1 );
1032 if ( my_err != 0 ) {
1047 my_err = create_random_name( my_link_pathp, 0 );
1048 if ( my_err != 0 ) {
1061 my_err = stat( my_pathp, &my_sb );
1062 if ( my_err != 0 ) {
1089 my_err = chown( my_pathp, my_orig_uid, my_new_gid1 );
1090 if ( my_err != 0 ) {
1096 my_err = stat( my_pathp, &my_sb );
1097 if ( my_err != 0 ) {
1114 my_err = fchown( my_fd, my_orig_uid, my_new_gid2 );
1115 if ( my_err != 0 ) {
1121 my_err = stat( my_pathp, &my_sb );
1122 if ( my_err != 0 ) {
1132 my_err = symlink( my_pathp, my_link_pathp );
1133 if ( my_err != 0 ) {
1138 my_err = lstat( my_link_pathp, &my_sb );
1139 if ( my_err != 0 ) {
1147 my_err = lchown( my_link_pathp, my_orig_uid, my_new_gid1 );
1148 if ( my_err != 0 ) {
1154 my_err = lstat( my_link_pathp, &my_sb );
1155 if ( my_err != 0 ) {
1176 my_err = 0;
1180 my_err = -1;
1193 return( my_err );
1216 int my_err, my_count, i;
1244 my_err = statfs( "/", my_statfsp );
1245 if ( my_err == -1 ) {
1277 my_err = statfs64( "/", my_statfs64p );
1278 if ( my_err == -1 ) {
1318 my_err = getattrlist( "/", &my_attrlist, &my_attr_buf, sizeof(my_attr_buf), 0 );
1319 if ( my_err != 0 ) {
1334 my_err = fstatfs64( my_fd, my_statfs64p );
1335 if ( my_err == -1 ) {
1349 my_err = fstatfs( my_fd, my_statfsp );
1350 if ( my_err == -1 ) {
1369 my_err = statfs( "/mach_kernel", my_statfsp );
1370 if ( my_err == -1 ) {
1386 my_err = 0;
1390 my_err = -1;
1402 return( my_err );
1411 int my_err, my_status;
1418 my_err = pipe( &my_fildes[0] );
1419 if ( my_err != 0 ) {
1496 my_err = 0;
1500 my_err = -1;
1507 return( my_err );
1517 int my_err, my_status;
1522 my_err = 0;
1527 my_err = issetugid( );
1529 if ( my_err == 1 ) {
1535 if ( my_err == 0 ) {
1569 my_err = syscall( SYS_settid, 4444, 5555 );
1570 //my_err = settid( 4444, 5555 );
1571 if (my_err != 0) {
1576 my_err = syscall( SYS_gettid, &my_temp_uid, &my_temp_gid );
1577 //my_err = gettid( &my_temp_uid, &my_temp_gid );
1578 if (my_err != 0) {
1592 my_err = syscall( SYS_settid, KAUTH_UID_NONE, KAUTH_GID_NONE );
1593 //my_err = settid( KAUTH_UID_NONE, KAUTH_GID_NONE );
1594 if (my_err != 0) {
1614 my_err = syscall( SYS_settid_with_pid, getppid( ), 1 );
1615 //my_err = settid_with_pid, my_target_pid, 1 );
1616 if (my_err != 0) {
1624 my_err = syscall( SYS_settid_with_pid, 0, 0 );
1625 //my_err = settid_with_pid( my_target_pid, 0 );
1626 if (my_err != 0) {
1635 my_err = getauid( &my_au_id );
1636 if (my_err != 0) {
1643 my_err = setauid( &my_temp_au_id );
1644 if (my_err != 0) {
1650 my_err = getauid( &my_temp_au_id );
1651 if (my_err != 0) {
1662 my_err = setauid( &my_au_id );
1663 if (my_err != 0) {
1669 my_err = getauid( &my_temp_au_id );
1670 if (my_err != 0) {
1681 my_err = setuid( my_euid );
1682 if ( my_err == -1 ) {
1692 my_err = seteuid( my_euid );
1693 if ( my_err == -1 ) {
1703 my_err = setuid( my_ruid );
1704 if ( my_err == -1 ) {
1737 my_err = 0;
1741 my_err = -1;
1744 return( my_err );
1753 int my_err;
1758 my_err = 0;
1772 my_err = create_random_name( my_pathp, 0 );
1773 if ( my_err != 0 ) {
1777 my_err = mknod( my_pathp, (S_IFCHR | S_IRWXU), 0 );
1778 if ( my_err == -1 ) {
1786 my_err = 0;
1790 my_err = -1;
1797 return( my_err );
1806 int my_err;
1823 my_err = create_random_name( my_pathp, 1 );
1824 if ( my_err != 0 ) {
1829 my_err = stat( my_pathp, &my_sb );
1830 if ( my_err != 0 ) {
1836 my_err = chflags( my_pathp, my_flags );
1837 if ( my_err != 0 ) {
1857 my_err = stat( my_pathp, &my_sb );
1858 if ( my_err != 0 ) {
1864 my_err = fchflags( my_fd, my_flags );
1865 if ( my_err != 0 ) {
1880 my_err = 0;
1884 my_err = -1;
1893 return( my_err );
1923 int my_err, my_status;
2138 int my_err, i;
2148 my_err = 0;
2184 my_err = setgroups( (my_orig_group_count - 1), &my_groups[0] );
2185 if ( my_err == -1 ) {
2206 my_err = setgroups( my_orig_group_count, &my_groups[0] );
2207 if ( my_err == -1 ) {
2226 my_err = setegid( my_new_gid );
2227 if ( my_err == -1 ) {
2237 my_err = setegid( my_effective_gid );
2238 if ( my_err == -1 ) {
2244 my_err = setgid( my_new_gid );
2245 if ( my_err == -1 ) {
2255 my_err = setgid( my_real_gid );
2256 if ( my_err == -1 ) {
2261 my_err = 0;
2265 my_err = -1;
2268 return( my_err );
2282 int my_err;
2301 my_err = create_random_name( my_pathp, 1 );
2302 if ( my_err != 0 ) {
2328 my_err = ftruncate( my_fd, 0 );
2329 if ( my_err == -1 ) {
2376 my_err = dup2( my_fd, my_newfd );
2377 if ( my_err == -1 ) {
2385 my_err = 0;
2389 my_err = -1;
2400 return( my_err );
2411 int my_err;
2423 my_err = profil( my_bufferp, (1024 * 1000), 0, 32768 );
2424 if ( my_err == -1 ) {
2429 my_err = getrusage( RUSAGE_SELF, &my_rusage );
2430 if ( my_err == -1 ) {
2446 my_err = profil( my_bufferp, (1024 * 1000), 0, 0 );
2447 if ( my_err == -1 ) {
2452 my_err = 0;
2456 my_err = -1;
2462 return( my_err );
2492 int my_err, my_status;
2508 my_err = create_random_name( my_pathp, 1 );
2509 if ( my_err != 0 ) {
2543 my_err = sigaltstack( NULL, &my_sigaltstack );
2544 if ( my_err == -1 ) {
2558 my_err = sigaction( SIGUSR1, &my_sigaction, NULL );
2559 if ( my_err == -1 ) {
2566 my_err = sigsuspend( &my_sigset );
2567 if ( my_err == -1 ) {
2581 my_err = sigprocmask( SIG_BLOCK, &my_sigset, NULL );
2582 if ( my_err == -1 ) {
2589 my_err = sigprocmask( 0, NULL, &my_sigset );
2590 if ( my_err == -1 ) {
2604 my_err = sigwait( &my_sigset, &my_signal );
2605 if ( my_err == -1 ) {
2618 my_err = sigprocmask( SIG_UNBLOCK, &my_sigset, NULL );
2619 if ( my_err == -1 ) {
2631 my_err = setitimer( ITIMER_VIRTUAL, &my_timer, NULL );
2632 if ( my_err == -1 ) {
2636 my_err = setitimer( ITIMER_PROF, &my_timer, NULL );
2637 if ( my_err == -1 ) {
2648 my_err = sigaction( SIGALRM, &my_sigaction, NULL );
2649 if ( my_err == -1 ) {
2656 my_err = setitimer( ITIMER_REAL, &my_timer, NULL );
2657 if ( my_err == -1 ) {
2665 my_err = sigsuspend( &my_sigset );
2666 if ( my_err == -1 ) {
2680 my_err = getitimer( ITIMER_REAL, &my_timer );
2681 if ( my_err == -1 ) {
2697 my_err = kill( my_pid, SIGUSR1 );
2698 if ( my_err == -1 ) {
2705 my_err = kill( my_pid, SIGUSR1 );
2706 if ( my_err == -1 ) {
2722 my_err = 0;
2726 my_err = -1;
2735 return( my_err );
2744 int my_err, my_status;
2749 my_err = 0;
2772 my_err = -1;
2780 my_err = -1;
2788 my_err = setlogin( my_new_namep );
2789 if ( my_err == -1 ) {
2791 my_err = -1;
2799 my_err = -1;
2804 my_err = -1;
2808 my_err = 0;
2813 exit( my_err );
2828 my_err = 0;
2832 my_err = -1;
2835 return( my_err );
2844 int my_err, my_status;
2854 my_err = 0;
2868 my_err = create_random_name( my_pathp, 1 );
2869 if ( my_err != 0 ) {
2874 my_err = acct( my_pathp );
2875 if ( my_err == -1 ) {
2892 my_err = execv( "/usr/bin/true", (char **) 0 );
2910 my_err = acct( NULL );
2911 if ( my_err == -1 ) {
2946 my_err = 0;
2955 my_err = 0;
2959 my_err = -1;
2968 return( my_err );
2978 int my_err, my_result;
3009 my_err = ioctl( my_fd, DKIOCGETBLOCKCOUNT, &my_block_count );
3010 if ( my_err == -1 ) {
3016 my_err = ioctl( my_fd, DKIOCGETBLOCKSIZE, &my_blksize );
3017 if ( my_err == -1 ) {
3029 my_err = 0;
3033 my_err = -1;
3038 return( my_err );
3047 int my_err;
3064 my_err = create_random_name( my_pathp, 0 );
3065 if ( my_err != 0 ) {
3066 printf( "create_random_name failed with error %d\n", my_err );
3075 my_err = mkdir( my_pathp, (S_IRWXU | S_IRWXG | S_IRWXO) );
3076 if ( my_err == -1 ) {
3082 my_err = stat( my_pathp, &my_sb );
3083 if ( my_err != 0 ) {
3093 my_err = rmdir( my_pathp );
3094 if ( my_err == -1 ) {
3098 my_err = 0;
3102 my_err = -1;
3115 return( my_err );
3124 int my_err, my_status;
3130 my_err = 0;
3144 my_err = create_random_name( my_pathp, 0 );
3145 if ( my_err != 0 ) {
3150 my_err = mkdir( my_pathp, (S_IRWXU | S_IRWXG | S_IRWXO) );
3151 if ( my_err == -1 ) {
3171 my_err = chroot( my_pathp );
3172 if ( my_err != 0 ) {
3178 my_err = stat( "/", &my_sb );
3179 if ( my_err != 0 ) {
3204 my_err = 0;
3208 my_err = -1;
3212 my_err = rmdir( my_pathp );
3213 if ( my_err != 0 ) {
3218 return( my_err );
3227 int my_err = 0, i = 0;
3250 my_err = setsid( );
3251 if ( my_err == 0 || errno != EPERM ) {
3257 my_err = setsid( );
3258 if ( my_err == -1 ) {
3279 my_err = setpgid( 0, my_process_group );
3280 if ( my_err != -1 ) {
3285 my_err = 0;
3289 my_err = -1;
3292 return( my_err );
3301 int my_err, my_result, my_tmep;
3315 my_err = create_random_name( my_pathp, 1 );
3316 if ( my_err != 0 ) {
3358 my_err = 0;
3362 my_err = -1;
3371 return( my_err );
3380 int my_err;
3394 my_err = setpriority( PRIO_PROCESS, 0, my_new_priority );
3395 if ( my_err == -1 ) {
3414 my_err = setpriority( PRIO_PROCESS, 0, 0 );
3415 if ( my_err == -1 ) {
3420 my_err = 0;
3424 my_err = -1;
3427 return( my_err );
3436 int my_err;
3447 my_err = 0;
3461 my_err = create_random_name( my_pathp, 1 );
3462 if ( my_err != 0 ) {
3466 my_err = gettimeofday( &my_orig_time, &my_tz );
3467 if ( my_err == -1 ) {
3475 my_err = settimeofday( &my_temp_time, NULL );
3476 if ( my_err == -1 ) {
3481 my_err = gettimeofday( &my_temp_time, NULL );
3482 if ( my_err == -1 ) {
3495 my_err = settimeofday( &my_temp_time, NULL );
3496 if ( my_err == -1 ) {
3502 my_err = stat( my_pathp, &my_sb );
3503 if ( my_err != 0 ) {
3512 my_err = utimes( my_pathp, &my_utimes[0] );
3513 if ( my_err == -1 ) {
3519 my_err = stat( my_pathp, &my_sb );
3520 if ( my_err != 0 ) {
3540 my_err = futimes( my_fd, &my_utimes[0] );
3541 if ( my_err == -1 ) {
3547 my_err = stat( my_pathp, &my_sb );
3548 if ( my_err != 0 ) {
3560 my_err = 0;
3564 my_err = -1;
3573 return( my_err );
3582 int my_err;
3598 my_err = create_random_name( my_pathp, 1 );
3599 if ( my_err != 0 ) {
3613 my_err = create_random_name( my_new_pathp, 0 );
3614 if ( my_err != 0 ) {
3619 my_err = stat( my_pathp, &my_sb );
3620 if ( my_err != 0 ) {
3627 my_err = rename( my_pathp, my_new_pathp );
3628 if ( my_err == -1 ) {
3634 my_err = stat( my_pathp, &my_sb );
3635 if ( my_err == 0 ) {
3641 my_err = stat( my_new_pathp, &my_sb );
3642 if ( my_err != 0 ) {
3651 my_err = 0;
3655 my_err = -1;
3666 return( my_err );
3675 int my_err, my_status;
3690 my_err = create_random_name( my_pathp, 1 );
3691 if ( my_err != 0 ) {
3702 my_err = flock( my_fd, LOCK_EX );
3703 if ( my_err == -1 ) {
3730 my_err = flock( my_child_fd, (LOCK_EX | LOCK_NB) );
3731 if ( my_err == -1 ) {
3763 my_err = flock( my_fd, LOCK_UN );
3764 if ( my_err == -1 ) {
3769 my_err = 0;
3773 my_err = -1;
3782 return( my_err );
3791 int my_err, my_status;
3808 my_err = create_random_name( my_pathp, 0 );
3809 if ( my_err != 0 ) {
3813 my_err = mkfifo( my_pathp, (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) );
3814 if ( my_err != 0 ) {
3895 my_err = 0;
3899 my_err = -1;
3908 return( my_err );
3918 int my_err;
3924 my_err = 0;
3929 my_err = quotactl( "/mach_kernel", QCMD(Q_QUOTASTAT, USRQUOTA), 0, (caddr_t)&is_quotas_on );
3930 if ( my_err == -1 ) {
3937 my_err = 0;
3941 my_err = quotactl( "/mach_kernel", QCMD(Q_GETQUOTA, USRQUOTA), getuid(), (caddr_t)&my_quota_blk );
3942 if ( my_err == -1 ) {
3947 my_err = 0;
3951 my_err = -1;
3954 return( my_err );
3967 int my_err;
3971 my_err = getrlimit( RLIMIT_NOFILE, &my_current_rlimit );
3972 if ( my_err == -1 ) {
3983 my_err = setrlimit( RLIMIT_NOFILE, &my_rlimit );
3984 if ( my_err == -1 ) {
3991 my_err = getrlimit( RLIMIT_NOFILE, &my_rlimit );
3992 if ( my_err == -1 ) {
4010 my_err = 0;
4014 my_err = -1;
4017 return( my_err );
4035 int my_err, done, found_it, i;
4057 my_err = statfs( &g_target_path[0], &my_statfs_buf );
4058 if ( my_err == -1 ) {
4082 my_err = create_random_name( my_pathp, 1 );
4083 if ( my_err != 0 ) {
4133 my_err = getattrlist( my_pathp, &my_attrlist, &my_attr_buf[0], sizeof(my_attr_buf[0]), 0 );
4135 if ( my_err != 0 ) {
4138 my_err = 0;
4156 my_err = setattrlist( my_pathp, &my_attrlist, &my_attr_buf[0].backup_time, sizeof(my_attr_buf[0].backup_time), 0 );
4157 if ( my_err != 0 ) {
4175 my_err = getdirentriesattr( my_fd, &my_attrlist, &my_attr_buf[0], sizeof(my_attr_buf), &my_count,
4177 if ( my_err < 0 ) {
4198 my_err = 0;
4202 if(my_err != 0)
4203 my_err = -1;
4215 return( my_err );
4224 int my_err;
4234 my_err = statfs( &g_target_path[0], &my_statfs_buf );
4235 if ( my_err == -1 ) {
4241 my_err = 0;
4255 my_err = create_random_name( my_file1_pathp, 1 );
4256 if ( my_err != 0 ) {
4257 printf( "create_random_name my_err: %d\n", my_err );
4281 my_err = create_random_name( my_file2_pathp, 1 );
4282 if ( my_err != 0 ) {
4283 printf( "create_random_name my_err: %d\n", my_err );
4302 my_err = exchangedata( my_file1_pathp, my_file2_pathp, 0 );
4303 if ( my_err == -1 ) {
4326 my_err = 0;
4330 my_err = -1;
4345 return( my_err );
4379 int my_err, my_items_found = 0;
4392 my_err = statfs( &g_target_path[0], &my_statfs_buf );
4393 if ( my_err == -1 ) {
4399 my_err = 0;
4413 my_err = create_file_with_name( my_pathp, "foo", 0 );
4414 if ( my_err < 0 ) {
4419 my_err = create_file_with_name( my_pathp, "foobar", 0 );
4420 if ( my_err < 0 ) {
4425 my_err = create_file_with_name( my_pathp, "foofoo", 0 );
4426 if ( my_err < 0 ) {
4431 my_err = create_file_with_name( my_pathp, "xxxfoo", 0 );
4432 if ( my_err < 0 ) {
4492 my_err = searchfs( my_pathp, &my_search_blk, &my_matches, 0, my_search_options, &my_search_state );
4493 if ( my_err == -1 )
4494 my_err = errno;
4495 if ( (my_err == 0 || my_err == EAGAIN) && my_matches > 0 ) {
4527 if ( !(my_err == 0 || my_err == EAGAIN) ) {
4528 printf( "searchfs failed with error %d - \"%s\" \n", my_err, strerror( my_err) );
4531 } while ( my_err == EAGAIN );
4538 my_err = 0;
4542 my_err = -1;
4560 return( my_err );
4573 int my_err, i;
4607 my_err = create_random_name( my_pathp, 1 );
4608 if ( my_err != 0 ) {
4628 my_err = fcntl( my_fd_list[ 0 ], F_NOCACHE, 1 );
4629 if ( my_err != 0 ) {
4649 my_err = aio_write( my_aiocbp );
4650 if ( my_err != 0 ) {
4651 printf( "aio_write failed with error %d - \"%s\" \n", my_err, strerror( my_err) );
4656 my_err = aio_error( my_aiocbp );
4657 if ( my_err == EINPROGRESS ) {
4662 else if ( my_err == 0 ) {
4668 printf( "aio_error failed with error %d - \"%s\" \n", my_err, strerror( my_err ) );
4675 my_err = aio_read( my_aiocbp );
4678 my_err = aio_error( my_aiocbp );
4679 if ( my_err == EINPROGRESS ) {
4684 else if ( my_err == 0 ) {
4695 printf( "aio_read failed with error %d - \"%s\" \n", my_err, strerror( my_err ) );
4723 my_err = aio_write( my_aiocbp );
4724 if ( my_err != 0 ) {
4725 printf( "aio_write failed with error %d - \"%s\" \n", my_err, strerror( my_err) );
4729 my_err = aio_error( my_aiocbp );
4730 if ( my_err == EINPROGRESS ) {
4735 else if ( my_err == 0 ) {
4741 printf( "aio_error failed with error %d - \"%s\" \n", my_err, strerror( my_err ) );
4746 my_err = aio_fsync( O_SYNC, my_aiocbp );
4747 if ( my_err != 0 ) {
4748 printf( "aio_fsync failed with error %d - \"%s\" \n", my_err, strerror( my_err) );
4752 my_err = aio_error( my_aiocbp );
4753 if ( my_err == EINPROGRESS ) {
4758 else if ( my_err == 0 ) {
4763 printf( "aio_error failed with error %d - \"%s\" \n", my_err, strerror( my_err ) );
4788 my_err = lio_listio( LIO_NOWAIT, my_aiocb_list, AIO_TESTS_OUR_COUNT, NULL );
4789 if ( my_err != 0 ) {
4796 my_err = aio_suspend( (const struct aiocb *const*) my_aiocb_list, AIO_TESTS_OUR_COUNT, &my_timeout );
4797 if ( my_err != 0 ) {
4805 my_err = aio_cancel( my_aiocbp->aio_fildes, my_aiocbp );
4806 if ( my_err != AIO_ALLDONE && my_err != AIO_CANCELED && my_err != AIO_NOTCANCELED ) {
4807 printf( "aio_cancel failed with error %d - \"%s\" \n", my_err, strerror( my_err) );
4812 my_err = 0;
4816 my_err = -1;
4834 return( my_err );
4848 int my_err, my_status;
4869 my_err = create_random_name( my_pathp, 1 );
4870 if ( my_err != 0 ) {
4880 my_err = socketpair( AF_UNIX, SOCK_STREAM, 0, &my_sockets[0] );
4881 if ( my_err == -1 ) {
4919 my_err = unlink( my_pathp );
4920 if ( my_err == -1 ) {
4961 my_err = kevent( my_kqueue, &my_kevent, 1, NULL, 0, &my_timeout);
4962 if ( my_err == -1 ) {
4976 my_err = kevent( my_kqueue, NULL, 0, &my_kevent, 1, NULL );
4977 if ( my_err == -1 ) {
4981 if ( my_err == 0 ) {
5015 my_err = 0;
5019 my_err = -1;
5034 return( my_err );
5045 int my_err;
5062 my_err = msgctl( my_msg_queue_id, IPC_STAT, &my_msq_ds );
5063 if ( my_err == -1 ) {
5079 my_err = msgsnd( my_msg_queue_id, &my_msg, sizeof( my_msg.msq_buffer ), 0 );
5080 if ( my_err == -1 ) {
5085 my_err = msgctl( my_msg_queue_id, IPC_STAT, &my_msq_ds );
5086 if ( my_err == -1 ) {
5111 my_err = msgctl( my_msg_queue_id, IPC_STAT, &my_msq_ds );
5112 if ( my_err == -1 ) {
5122 my_err = msgctl( my_msg_queue_id, IPC_RMID, NULL );
5123 if ( my_err == -1 ) {
5129 my_err = 0;
5133 my_err = -1;
5139 return( my_err );
5155 int my_err;
5169 my_err = create_random_name( my_pathp, 1 );
5170 if ( my_err != 0 ) {
5177 my_err = 0;
5181 my_err = -1;
5190 return( my_err );