Lines Matching refs:write
15 ** along with this program; if not, write to the Free Software
116 printf ("0) Create a file, write %d bytes and close it.\n", SIGNED_SIZEOF (data)) ;
123 assert (write (fd, data, sizeof (data)) > 0) ;
126 printf ("1) Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ;
134 assert (write (fd, data, sizeof (data)) > 0) ;
176 printf ("0) Create a file, write %d bytes and close it.\n", SIGNED_SIZEOF (data)) ;
183 assert (write (fd, data, sizeof (data)) > 0) ;
186 printf ("1) Re-open file in read/write mode and write another %d bytes at the end.\n", SIGNED_SIZEOF (data)) ;
195 assert (write (fd, data, sizeof (data)) > 0) ;
236 printf ("0) Create a file and write %d bytes.\n", SIGNED_SIZEOF (data)) ;
245 assert (write (fd, data, sizeof (data)) > 0) ;
287 printf ("0) First we open file for write using fopen().\n") ;
297 assert (write (fd, "a\n", 2) > 0) ;
305 printf ("4) Now write more data to the file descriptor which should fail.\n") ;
306 if (write (fd, "b\n", 2) < 0)
307 printf ("5) Good, write returned an error code as it should have.\n") ;
309 { printf ("5) Attempting to write to a closed file should have failed but didn't! *** WRONG ***\n") ;