]> granicus.if.org Git - apache/commit
Turn on buffering for config file reads. This is dependent on ap_fgets()
authorJeff Trawick <trawick@apache.org>
Fri, 16 Jun 2000 16:41:21 +0000 (16:41 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 16 Jun 2000 16:41:21 +0000 (16:41 +0000)
commitb18a907dadf6608a79676b2f4f1140280747d310
tree766d6f46299b8e2551073c5ad3f797446840b928
parent78571030f9298cb97f4e508a606c9cc43af64b10
Turn on buffering for config file reads.  This is dependent on ap_fgets()
doing the right thing.

Brian Havard implemented buffering for ap_fgets() on Win32 recently; OS/2 had
it already.  This provides it for Unix.

changes to ap_read(), ap_getc(), ap_fgets() for Unix:

1) this fixes a problem in where ap_open() where a lock is created for
   non-buffered files
2) this fixes problems setting rv correctly in the ap_read() buffered
   path
3) since ap_read() works as expected, it is possible to make ap_getc()
   and ap_fgets() even smaller
4) ap_fgets() no longer cares about '\r'

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85586 13f79535-47bb-0310-9956-ffa450edef68
server/util.c