rbb 99/02/23 13:07:45
Modified: apr/file_io/unix open.c
Log:
Change names to conform to naming style proposed on new-httpd. I am also
fixing a bug in the code, because I forgot to allocate space for the file
when I wrote this code. Oops.
Revision Changes Path
1.6 +3 -3 apache-apr/apr/file_io/unix/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apache-apr/apr/file_io/unix/open.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- open.c 1999/02/23 15:07:02 1.5
+++ open.c 1999/02/23 21:07:44 1.6
@@ -56,10 +56,10 @@
#include "apr_file_io.h"
#include <errno.h>
-APRFile *apr_open(char *fname, int flag, mode_t mode)
+apr_file_t *apr_open(char *fname, apr_int32_t flag, apr_fileperms_t mode)
{
int oflags = 0;
- APRFile *dafile;
+ apr_file_t *dafile = (apr_file_t *)malloc(sizeof(apr_file_t));
struct stat info;
if ((flag && APR_READ) && (flag && APR_WRITE)) {
@@ -128,7 +128,7 @@
}
}
-APRStatus apr_close(APRFile file)
+apr_status_t apr_close(apr_file_t file)
{
if (close(file.filedes) == 0) {
file.filedes = -1;