Expand description
Platform bindigns for fopencookie
Structs§
- _IO_
FILE - The tag name of this struct is _IO_FILE to preserve historic C++ mangled names for functions taking FILE* arguments. That name should not be used in new code.
- _IO_
codecvt - _IO_
cookie_ io_ functions_ t - The structure with the cookie function pointers. The tag name of this struct is _IO_cookie_io_functions_t to preserve historic C++ mangled names for functions taking cookie_io_functions_t arguments. That name should not be used in new code.
- _IO_
marker - _IO_
wide_ data
Functions§
- fopencookie⚠
- Create a new stream that refers to the given magic cookie, and uses the given functions for input and output.
Type Aliases§
- FILE
- The opaque type of streams. This is the definition used elsewhere.
- _IO_
lock_ t - __
off64_ t - __off_t
- __
ssize_ t - cookie_
close_ function_ t - Close COOKIE.
- cookie_
io_ functions_ t - The structure with the cookie function pointers. The tag name of this struct is _IO_cookie_io_functions_t to preserve historic C++ mangled names for functions taking cookie_io_functions_t arguments. That name should not be used in new code.
- cookie_
read_ function_ t - Read NBYTES bytes from COOKIE into a buffer pointed to by BUF. Return number of bytes read.
- cookie_
seek_ function_ t - Move COOKIE’s file position to *POS bytes from the beginning of the file (if W is SEEK_SET), the current position (if W is SEEK_CUR), or the end of the file (if W is SEEK_END). Set *POS to the new file position. Returns zero if successful, nonzero if not.
- cookie_
write_ function_ t - Write NBYTES bytes pointed to by BUF to COOKIE. Write all NBYTES bytes unless there is an error. Return number of bytes written. If there is an error, return 0 and do not write anything. If the file has been opened for append (__mode.__append set), then set the file pointer to the end of the file and then do the write; if not, just write at the current file pointer.