Lines Matching refs:data
104 static char data [256] ;
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) ;
139 memset (data, 0, sizeof (data)) ;
140 strncpy (data, dir_cmd, sizeof (data) - 1) ;
141 strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
142 strncat (data, filename, sizeof (data) - 1 - strlen (data)) ;
144 assert (system (data) >= 0) ;
157 if (statbuf.st_size != 2 * sizeof (data))
169 static char data [256] ;
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) ;
200 memset (data, 0, sizeof (data)) ;
201 strncpy (data, dir_cmd, sizeof (data) - 1) ;
202 strncat (data, " ", sizeof (data) - 1 - strlen (data)) ;
203 strncat (data, filename, sizeof (data) - 1 - strlen (data)) ;
205 assert (system (data) >= 0) ;
215 if (retval != 2 * sizeof (data))
227 static char data [256] ;
236 printf ("0) Create a file and write %d bytes.\n", SIGNED_SIZEOF (data)) ;
245 assert (write (fd, data, sizeof (data)) > 0) ;
305 printf ("4) Now write more data to the file descriptor which should fail.\n") ;