diff options
author | pommicket <pommicket@gmail.com> | 2023-01-05 11:52:57 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-05 11:54:50 -0500 |
commit | be318b18a01481d16149c34f649c9cdb1f91979d (patch) | |
tree | 9a224f909a78170a67e7e42060d1069aebaed9e8 /os.h | |
parent | f897a6a62e9572f1f3cc6c7905192d49d7868c9a (diff) |
clean up some TODOs
Diffstat (limited to 'os.h')
-rw-r--r-- | os.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -104,6 +104,7 @@ const char *process_geterr(Process *process); // returns: // -2 on error // or a non-negative number indicating the number of bytes written. +// If stdin is set to blocking, fewer than `size` bytes will be written only if an error occured. long long process_write(Process *process, const char *data, size_t size); // read from stdout+stderr // returns: @@ -111,6 +112,7 @@ long long process_write(Process *process, const char *data, size_t size); // -1 if no data is available right now // 0 on end of file // or a positive number indicating the number of bytes read to data (at most size) +// If stdout is set to blocking, fewer than `size` bytes will be read only if an error occured or end-of-file was reached. long long process_read(Process *process, char *data, size_t size); // like process_read, but reads stderr. // this function ALWAYS RETURNS -2 if separate_stderr is not specified in the ProcessSettings. |