Lines Matching defs:my_result

190 	ssize_t			my_result;
226 my_result = read( my_fd, my_bufp, 10);
227 if ( my_result == -1 ) {
231 if ( my_result != 0 ) {
233 printf( "read call failed - should have read 0 bytes on empty file - read %ld \n", (long int) my_result );
236 printf( "read call failed - should have read 0 bytes on empty file - read %d \n", (int) my_result );
242 my_result = write( my_fd, my_bufp, 10 );
244 if ( my_result != -1 ) {
246 printf( "write should have failed for read only fd - %ld \n", (long int) my_result );
249 printf( "write should have failed for read only fd - %d \n", (int) my_result );
269 my_result = write( my_fd, my_bufp, MY_BUFFER_SIZE );
270 if ( my_result == -1 ) {
274 if ( my_result != MY_BUFFER_SIZE ) {
294 my_result = readv( my_fd, &my_iovs[0], 2 );
295 if ( my_result == -1 ) {
299 if ( my_result != 32 ) {
300 printf( "readv failed to get all the data - asked for %d got back %d\n", MY_BUFFER_SIZE, (int) my_result );
332 my_result = writev( my_fd, &my_iovs[0], 2 );
333 if ( my_result == -1 ) {
337 if ( my_result != 16 ) {
338 printf( "writev failed to get all the data - asked for %d got back %d\n", MY_BUFFER_SIZE, (int) my_result );
350 my_result = readv( my_fd, &my_iovs[0], 2 );
351 if ( my_result == -1 ) {
355 if ( my_result != 16 ) {
356 printf( "readv failed to get all the data - asked for %d got back %d\n", MY_BUFFER_SIZE, (int) my_result );
371 my_result = pwrite( my_fd, "jer", 3, my_current_offset );
372 if ( my_result == -1 ) {
376 if ( my_result != 3 ) {
388 my_result = pread( my_fd, my_bufp, 3, my_current_offset );
389 if ( my_result == -1 ) {
393 if ( my_result != 3 ) {
454 ssize_t my_result;
510 my_result = write( my_fd, "kat", 3 );
512 if ( my_result != 3 ) {
514 printf( "write failed. should have written 3 bytes actually wrote - %ld \n", (long int) my_result );
517 printf( "write failed. should have written 3 bytes actually wrote - %d \n", (int) my_result );
523 my_result = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
525 if ( my_result != -1 ) {
544 my_result = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
545 if ( my_result == -1 ) {
549 if ( my_result != 0 ) {
554 my_result = write( my_fd, "kat", 3 );
556 if ( my_result != 3 ) {
558 printf( "write failed. should have written 3 bytes actually wrote - %ld \n", (long int) my_result );
561 printf( "write failed. should have written 3 bytes actually wrote - %d \n", (int) my_result );
568 my_result = write( my_fd, "zzz", 3 );
570 if ( my_result != 3 ) {
572 printf( "write failed. should have written 3 bytes actually wrote - %ld \n", (long int) my_result );
575 printf( "write failed. should have written 3 bytes actually wrote - %d \n", (int) my_result );
583 my_result = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
584 if ( my_result == -1 ) {
635 ssize_t my_result;
688 my_result = write( my_fd, "kat", 3 );
690 if ( my_result != 3 ) {
692 printf( "write failed. should have written 3 bytes actually wrote - %ld \n", (long int) my_result );
695 printf( "write failed. should have written 3 bytes actually wrote - %d \n", (int) my_result );
1124 ssize_t my_result;
1276 my_result = readlink( my_link_pathp, &my_buffer[0], sizeof(my_buffer) );
1277 if ( my_result == -1 ) {
1282 if ( my_result < 1 ) {
3013 int my_err, my_result;
3021 my_result = getmntinfo( &my_infop, MNT_NOWAIT );
3022 if ( my_result < 1 ) {
3340 int my_err, my_result, my_tmep;
3369 my_result = fcntl( my_fd, F_GETFD, 0 );
3370 if ( my_result == -1 ) {
3375 my_tmep = (my_result & FD_CLOEXEC);
3378 my_result = fcntl( my_fd, F_SETFD, 0 );
3382 my_result = fcntl( my_fd, F_SETFD, 1 );
3384 if ( my_result == -1 ) {
3390 my_result = fcntl( my_fd, F_GETFD, 0 );
3391 if ( my_result == -1 ) {
3395 if ( my_tmep == (my_result & 0x01) ) {
3402 my_result = fcntl( my_fd, F_DUPFD_CLOEXEC, 0);
3403 if ( my_result == -1 ) {
3407 my_newfd = my_result;
3411 my_result = fcntl( my_newfd, F_GETFD, 0);
3412 if ( my_result == -1 ) {
3416 if ( (my_result & FD_CLOEXEC) == 0 ) {
3432 my_result = open( devfdpath, O_RDONLY | O_CLOEXEC );
3434 if ( my_result == -1 ) {
3438 my_newfd = my_result;
3442 my_result = fcntl( my_newfd, F_GETFD, 0);
3443 if ( my_result == -1 ) {
3447 if ( (my_result & FD_CLOEXEC) == 0 ) {
3900 ssize_t my_result;
3952 my_result = read( my_child_fd, &my_buffer[0], sizeof(my_buffer) );
3953 if ( my_result == -1 ) {
3986 my_result = write( my_fd, "parent to child", 15 );
3987 if ( my_result == -1 ) {
4332 ssize_t my_result;
4370 my_result = write( my_fd1, "11111111", 8 );
4371 if ( my_result == -1 ) {
4397 my_result = write( my_fd2, "22222222", 8 );
4398 if ( my_result == -1 ) {
4421 my_result = read( my_fd1, &my_buffer[0], 8 );
4422 if ( my_result == -1 ) {
4699 ssize_t my_result;
4788 ssize_t my_result;
4789 my_result = aio_return( my_aiocbp );
4810 ssize_t my_result;
4811 my_result = aio_return( my_aiocbp );
4861 ssize_t my_result;
4862 my_result = aio_return( my_aiocbp );
4896 my_result = read( my_fd_list[ 0 ], my_buffers[ 0 ], 16);
4897 if ( my_result == -1 ) {
4972 ssize_t my_result;
5022 my_result = msgrcv( my_msg_queue_id, &my_msg, sizeof( my_msg.msq_buffer ), 0, 0 );
5023 if ( my_result == -1 ) {
5027 if ( my_result != sizeof( my_msg.msq_buffer ) ) {