diff options
Diffstat (limited to 'cpukit/httpd/webpage.c')
-rw-r--r-- | cpukit/httpd/webpage.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cpukit/httpd/webpage.c b/cpukit/httpd/webpage.c index efac13f508..b161740738 100644 --- a/cpukit/httpd/webpage.c +++ b/cpukit/httpd/webpage.c @@ -4,6 +4,8 @@ * Copyright (c) GoAhead Software Inc., 1995-2000. All Rights Reserved. * * See the file "license.txt" for usage and redistribution license requirements + * + * $Id$ */ /******************************** Description *********************************/ @@ -27,7 +29,7 @@ int websPageOpen(webs_t wp, char_t *lpath, char_t *path, int mode, int perm) { a_assert(websValid(wp)); -#if WEBS_PAGE_ROM +#ifdef WEBS_PAGE_ROM return websRomPageOpen(wp, path, mode, perm); #else return (wp->docfd = gopen(lpath, mode, perm)); @@ -43,7 +45,7 @@ void websPageClose(webs_t wp) { a_assert(websValid(wp)); -#if WEBS_PAGE_ROM +#ifdef WEBS_PAGE_ROM websRomPageClose(wp->docfd); #else if (wp->docfd >= 0) { @@ -60,7 +62,7 @@ void websPageClose(webs_t wp) int websPageStat(webs_t wp, char_t *lpath, char_t *path, websStatType* sbuf) { -#if WEBS_PAGE_ROM +#ifdef WEBS_PAGE_ROM return websRomPageStat(path, sbuf); #else gstat_t s; @@ -82,7 +84,7 @@ int websPageStat(webs_t wp, char_t *lpath, char_t *path, websStatType* sbuf) int websPageIsDirectory(char_t *lpath) { -#if WEBS_PAGE_ROM +#ifdef WEBS_PAGE_ROM websStatType sbuf; if (websRomPageStat(lpath, &sbuf) >= 0) { @@ -111,7 +113,7 @@ int websPageIsDirectory(char_t *lpath) int websPageReadData(webs_t wp, char *buf, int nBytes) { -#if WEBS_PAGE_ROM +#ifdef WEBS_PAGE_ROM a_assert(websValid(wp)); return websRomPageReadData(wp, buf, nBytes); #else @@ -129,7 +131,7 @@ void websPageSeek(webs_t wp, long offset) { a_assert(websValid(wp)); -#if WEBS_PAGE_ROM +#ifdef WEBS_PAGE_ROM websRomPageSeek(wp, offset, SEEK_CUR); #else lseek(wp->docfd, offset, SEEK_CUR); |