1
0
mirror of https://github.com/apache/httpd.git synced 2025-09-02 13:21:21 +03:00

Odd comments and leftover bits from the pthreads version.

The comments really should be deleted, or at least cleaned up.

Submitted by:	pthreads leftovers


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83779 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roy T. Fielding
1999-08-26 16:30:39 +00:00
parent 75496e7d9f
commit 44679abe2b
8 changed files with 57 additions and 20 deletions

View File

@@ -111,6 +111,8 @@ API_VAR_EXPORT const char ap_day_snames[7][4] =
API_EXPORT(char *) ap_get_time()
{
/* ZZZ When we abstract out time, this whole function should change to use
AP funcs. */
time_t t;
char *time_string;
@@ -142,6 +144,8 @@ API_EXPORT(char *) ap_field_noparam(pool *p, const char *intype)
API_EXPORT(char *) ap_ht_time(pool *p, time_t t, const char *fmt, int gmt)
{
/* ZZZ this function can be replaced by calls to time formatting routines
in APR. */
char ts[MAX_STRING_LEN];
char tf[MAX_STRING_LEN];
struct tm *tms;
@@ -849,7 +853,8 @@ API_EXPORT(configfile_t *) ap_pcfg_openfile(pool *p, const char *name)
errno = EACCES;
return NULL;
}
/* ZZZ bopenf and use AP defines for flags. */
file = ap_pfopen(p, name, "r");
#ifdef DEBUG
saved_errno = errno;
@@ -1643,6 +1648,7 @@ API_EXPORT(int) ap_is_directory(const char *path)
{
struct stat finfo;
/* ZZZ replace with AP File Info func. */
if (stat(path, &finfo) == -1)
return 0; /* in error condition, just return no */
@@ -1917,6 +1923,7 @@ API_EXPORT(gid_t) ap_gname2id(const char *name)
*/
unsigned long ap_get_virthost_addr(char *w, unsigned short *ports)
{
/* ZZZ Redesign for AP func changes */
struct hostent *hep;
unsigned long my_addr;
char *p;
@@ -1988,11 +1995,13 @@ char *ap_get_local_host(pool *a)
char *server_hostname;
struct hostent *p;
#ifdef BEOS /* BeOS returns zero as an error for gethostname */
if (gethostname(str, sizeof(str) - 1) == 0) {
#else
if (gethostname(str, sizeof(str) - 1) != 0) {
#endif /* BeOS */
/* ZZZ change to use AP funcs. */
#ifdef BEOS
if (gethostname(str, sizeof(str) - 1) == 0)
#else
if (gethostname(str, sizeof(str) - 1) != 0)
#endif
{
perror("Unable to gethostname");
exit(1);
}