rbb 99/02/22 08:24:48
Modified: apr/file_io/unix open.c Log: Fix some compile time errors that I missed last night. Revision Changes Path 1.4 +6 -5 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.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- open.c 1999/02/22 15:51:46 1.3 +++ open.c 1999/02/22 16:24:47 1.4 @@ -54,11 +54,12 @@ */ #include "apr_file_io.h" +#include <errno.h> -API_EXPORT(APRFile *) apr_open(char *fname, int flag, mode_t mode) +APRFile *apr_open(char *fname, int flag, mode_t mode) { int oflags = 0; - APR_FILE *dafile; + APRFile *dafile; struct stat info; if ((flag && APR_READ) && (flag && APR_WRITE)) { @@ -71,7 +72,7 @@ oflags = O_WRONLY; } else { - errno = EACCESS; + errno = EACCES; return NULL; } @@ -87,7 +88,7 @@ } } if ((flag && APR_EXCL) && !(flag && APR_CREATE)) { - errno = EACCESS; + errno = EACCES; return NULL; } @@ -110,7 +111,7 @@ return NULL; } - if (stat(dafile->filedes, &info) == 0) { + if (stat(dafile->fname, &info) == 0) { dafile->protection = info.st_mode; dafile->user = info.st_uid; dafile->group = info.st_gid;