summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_file.h
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-03-30 05:44:18 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-04-06 19:42:16 +0100
commit5fbc363fc2d2c7463072235d35a7a83b5bdab6c0 (patch)
tree9049af3d2b56aaa5a98cf87f1cd762feee72ec3a /src/nxt_file.h
parentc54331fa3d9597ba6bc85e7b7242981f00ed25c2 (diff)
downloadunit-5fbc363fc2d2c7463072235d35a7a83b5bdab6c0.tar.gz
unit-5fbc363fc2d2c7463072235d35a7a83b5bdab6c0.tar.bz2
Add nxt_file_stdout().
This is analogous to the nxt_file_stderr() function and will be used in a subsequent commit. This function redirects stdout to a given file descriptor. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/nxt_file.h')
-rw-r--r--src/nxt_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_file.h b/src/nxt_file.h
index 945717b3..97636db6 100644
--- a/src/nxt_file.h
+++ b/src/nxt_file.h
@@ -191,6 +191,7 @@ NXT_EXPORT FILE *nxt_file_fopen(nxt_task_t *task, const char *pathname,
NXT_EXPORT void nxt_file_fclose(nxt_task_t *task, FILE *fp);
NXT_EXPORT nxt_int_t nxt_file_redirect(nxt_file_t *file, nxt_fd_t fd);
+NXT_EXPORT nxt_int_t nxt_file_stdout(nxt_file_t *file);
NXT_EXPORT nxt_int_t nxt_file_stderr(nxt_file_t *file);
NXT_EXPORT nxt_int_t nxt_stderr_start(void);