[PATCH 3 of 8] Make ngx_linux_sendfile() to global function

SoYun Seong thdbsdox12 at gmail.com
Tue Nov 24 08:43:31 UTC 2020


# HG changeset patch
# User SoYun Seong <thdbsdox12 at gmail.com>
# Date 1606128555 0
#      Mon Nov 23 10:49:15 2020 +0000
# Node ID ce34097321cf3cb7f9de55075bd1788577bb1ad8
# Parent  3bbe4905410b04bdaad4c956f6fdb7d0612ddf5b
Make ngx_linux_sendfile() to global function

diff -r 3bbe4905410b -r ce34097321cf src/os/unix/ngx_linux.h
--- a/src/os/unix/ngx_linux.h	Mon Nov 23 10:47:13 2020 +0000
+++ b/src/os/unix/ngx_linux.h	Mon Nov 23 10:49:15 2020 +0000
@@ -12,5 +12,8 @@
 ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in,
     off_t limit);
 
+ssize_t ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file,
+    size_t size);
+
 
 #endif /* _NGX_LINUX_H_INCLUDED_ */
diff -r 3bbe4905410b -r ce34097321cf src/os/unix/ngx_linux_sendfile_chain.c
--- a/src/os/unix/ngx_linux_sendfile_chain.c	Mon Nov 23 10:47:13 2020 +0000
+++ b/src/os/unix/ngx_linux_sendfile_chain.c	Mon Nov 23 10:49:15 2020 +0000
@@ -10,9 +10,6 @@
 #include <ngx_event.h>
 
 
-static ssize_t ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file,
-    size_t size);
-
 #if (NGX_THREADS)
 #include <ngx_thread_pool.h>
 
@@ -226,7 +223,7 @@
 }
 
 
-static ssize_t
+ssize_t
 ngx_linux_sendfile(ngx_connection_t *c, ngx_buf_t *file, size_t size)
 {
 #if (NGX_HAVE_SENDFILE64)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx-3.patch
Type: text/x-patch
Size: 1266 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20201124/5637d0a1/attachment.bin>


More information about the nginx-devel mailing list