Lines Matching +full:buffered +full:- +full:positive

9 <br> $Id: io.html,v 1.3 2001-03-17 03:22:50 gshapiro Exp $
67 File types can be either buffered or unbuffered. When buffered the buffering
162 pre-defined values:
165 SM_TIME_DEFAULT - timeout using the default setting for this file type
168 SM_TIME_FOREVER - timeout will take forever; blocks until task completed
171 SM_TIME_IMMEDIATE - timeout (virtually) now
176 A function caller can also specify a positive integer value in milliseconds.
185 <!-- SM_IO_FOPEN -->
203 <!-- SM_IO_OPEN -->
211 Opens a file by <i>type</i> directed by <i>info</i>. <i>Type</i> is a filled-in
272 SM_IO_RDWR - read and write
275 SM_IO_RDONLY - read only
278 SM_IO_WRONLY - write only
281 SM_IO_APPEND - allow write to EOF only
284 SM_IO_APPENDRW - allow read-write from EOF only
287 SM_IO_RDWRTR - read and write with truncation of file first
301 <!-- SM_IO_SETINFO -->
313 configured the same way (this is to prevent side-effect
315 The value of <i>what</i> will be file-type dependent since this function
324 On success 0 (zero) is returned. On failure -1 is returned and errno is set.
326 <!-- SM_IO_GETINFO -->
346 On success 0 (zero) is returned. On failure -1 is returned and errno is set.
348 <!-- SM_IO_AUTOFLUSH -->
366 <!-- SM_IO_AUTOMODE -->
375 Associate the two file pointers for blocking/non-blocking mode changes.
377 a file between blocking and non-blocking. If the underlying file descriptor
383 <!-- SM_IO_CLOSE -->
433 functions that result in the file-type behaving as the system stdio
443 functions that result in the file-type behaving as the system stdio
462 <i>Smioin</i> and <i>smioout</i> are buffered
463 by default. <i>Smioerr</i> is not buffered by default. Calls to <b>stdio</b>
487 <i>smiostdout</i> and <i>smiostderr</i> are layered on-top-of
490 and <i>Smiostderr</i> are not buffered by default.
541 type - is the SM_FILE_T being filled-in
544 name - a human readable character string for human identification purposes
547 open - the vector to the open function
550 close - the vector to the close function
553 read - the vector to the read function
556 write - the vector to the write function
559 seek - the vector to the seek function
562 set - the vector to the set function
565 get - the vector to the get function
568 timeout - the default to be used for a timeout when SM_TIME_DEFAULT specified
618 All of the "int" functions should return -1 (minus one) on failure
638 return(-1);
647 We have also specified read-only access (SM_IO_RDONLY) and that no <i>rpool</i>
667 sm_io_snprintf(path, PATH_MAX, "%s/%s", pw->pw_dir, info);
670 ** Okay. Now the path pass-in has been prefixed with the
674 fp->cookie = sm_io_open(SmFtStdio, path, flags, rpools);
675 if (fp->cookie == NULL)
676 return(-1) /* errno set by sm_io_open call */
706 return(sm_io_write(fp->cookie, buf, size));
709 As a thought-exercise for the fair reader: how would you modify the