Lines Matching refs:read

181  *	Test fsync, ftruncate, lseek, pread, pwrite, read, readv, truncate, write, writev system calls.
226 my_result = read( my_fd, my_bufp, 10);
228 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
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 );
241 /* this write should fail since we opened for read only */
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 );
406 printf( "pread or pwrite failed to read / write correct data \n" );
509 /* write some data then try to read it */
522 /* Try to read - this should fail since we opened file with O_WRONLY */
523 my_result = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
526 printf( "read call should have failed with errno 9 (EBADF) \n" );
530 printf( "read call should have failed with errno 9 (EBADF). actually failed with %d - \"%s\" \n", my_err, strerror( my_err) );
544 my_result = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
546 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
550 printf( "read failed - should have read 0 bytes. \n" );
583 my_result = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
585 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
589 printf( "read failed to get correct data \n" );
1275 /* make sure we can read the symlink file */
1281 /* make sure we read some data */
1283 printf( "readlink failed to read any data. \n" );
1571 my_count = read( my_fildes[0], &my_buffer[0], sizeof(my_buffer) );
1573 printf( "read from pipe failed. got errno %d - %s. \n", errno, strerror( errno ) );
1592 close( my_fildes[0] ); /* close read end of pipe */
2372 /* now read it back and make sure data is correct */
2374 my_count = read( my_fd, &my_buffer[0], sizeof(my_buffer) );
2376 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
2386 my_count = read( my_newfd, &my_buffer[0], sizeof(my_buffer) );
2388 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
2950 my_count = read( my_fd, &my_buffer[0], sizeof(struct acct) );
2952 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3942 /* open read end of fifo */
3950 /* read message from parent */
3952 my_result = read( my_child_fd, &my_buffer[0], sizeof(my_buffer) );
3954 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3959 printf( "read wrong message from parent \n" );
4421 my_result = read( my_fd1, &my_buffer[0], 8 );
4798 /* read some data */
4814 printf( "aio_read or aio_write failed - wrong data read \n" );
4896 my_result = read( my_fd_list[ 0 ], my_buffers[ 0 ], 16);
4898 printf( "read call failed with error %d - \"%s\" \n", errno, strerror( errno) );
4902 printf( "aio_fsync or aio_write failed - wrong data read \n" );