Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io: add I/O buffer decoding infrastructure
* defs.h (enum fileops): New enumeration definition. (filebuf_decoder_fn): New type definition. * io.c: Include <fnmatch.h> (struct filebuf_decoder_desc): New type definition. (decode_filebuf, decode_readbuf, decode_writebuf): New functions. (SYS_FUNC(read), SYS_FUNC(write), SYS_FUNC(pread), SYS_FUNC(pwrite)): Call decode_readbuf/decode_writebuf instead of printing I/O buffer as a string.
- Loading branch information
Showing
2 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters