You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Jim Jagielski <ji...@hyperreal.com> on 1997/01/18 20:17:23 UTC
cvs commit: apache/src util_snprintf.c Makefile.tmpl PORTING buff.c conf.h
jim 97/01/18 11:17:23
Modified: src Makefile.tmpl PORTING buff.c conf.h
Added: src util_snprintf.c
Log:
start of the great snprintf() migration
Revision Changes Path
1.36 +3 -1 apache/src/Makefile.tmpl
Index: Makefile.tmpl
===================================================================
RCS file: /export/home/cvs/apache/src/Makefile.tmpl,v
retrieving revision 1.35
retrieving revision 1.36
diff -C3 -r1.35 -r1.36
*** Makefile.tmpl 1997/01/07 05:15:10 1.35
--- Makefile.tmpl 1997/01/18 19:17:20 1.36
***************
*** 10,16 ****
OBJS= alloc.o http_main.o http_core.o http_config.o http_request.o \
http_log.o http_protocol.o rfc1413.o util.o util_script.o modules.o buff.o\
! md5c.o util_md5.o explain.o http_bprintf.o util_date.o $(MODULES)
.c.o:
$(CC) -c $(INCLUDES) $(CFLAGS) $(SPACER) $<
--- 10,17 ----
OBJS= alloc.o http_main.o http_core.o http_config.o http_request.o \
http_log.o http_protocol.o rfc1413.o util.o util_script.o modules.o buff.o\
! md5c.o util_md5.o explain.o http_bprintf.o util_date.o util_snprintf.o\
! $(MODULES)
.c.o:
$(CC) -c $(INCLUDES) $(CFLAGS) $(SPACER) $<
***************
*** 121,126 ****
--- 122,128 ----
util_script.o: httpd.h http_config.h http_conf_globals.h http_main.h \
http_log.h http_protocol.h http_core.h http_request.h \
util_script.h
+ util_snprintf.o: httpd.h
httpd.h: conf.h alloc.h buff.h
util_md5.h: md5.h
1.3 +8 -0 apache/src/PORTING
Index: PORTING
===================================================================
RCS file: /export/home/cvs/apache/src/PORTING,v
retrieving revision 1.2
retrieving revision 1.3
diff -C3 -r1.2 -r1.3
*** PORTING 1996/12/17 23:19:15 1.2
--- PORTING 1997/01/18 19:17:20 1.3
***************
*** 187,192 ****
--- 187,199 ----
Define if the OS has and supports the getrlimit/setrlimit
family. Apache uses this to determine if RLIMIT_CPU|VMEM|DATA|RLIMIT
is found and used.
+
+ HAVE_SNPRINTF:
+ Apache makes extensive use of the snprintf() function. many
+ platforms do not provide this function. If your platform
+ does provide it _and_ it's reliable (most are not) then
+ define this to use the OS version. Otherwise, Apache will
+ use it's own.
--
USE_*:
***************
*** 211,216 ****
--- 218,224 ----
These are defined if the OS does NOT have the specified function or if
we should not use it.
+ NO_UNISTD_H:
NO_KILLPG:
NO_SETSID:
NO_USE_SIGACTION:
1.13 +1 -1 apache/src/buff.c
Index: buff.c
===================================================================
RCS file: /export/home/cvs/apache/src/buff.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C3 -r1.12 -r1.13
*** buff.c 1997/01/14 00:18:45 1.12
--- buff.c 1997/01/18 19:17:21 1.13
***************
*** 54,60 ****
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
! #ifndef NEXT
#include <unistd.h>
#endif
--- 54,60 ----
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
! #ifndef NO_UNISTD_H
#include <unistd.h>
#endif
1.70 +1 -0 apache/src/conf.h
Index: conf.h
===================================================================
RCS file: /export/home/cvs/apache/src/conf.h,v
retrieving revision 1.69
retrieving revision 1.70
diff -C3 -r1.69 -r1.70
*** conf.h 1997/01/10 13:23:31 1.69
--- conf.h 1997/01/18 19:17:21 1.70
***************
*** 170,175 ****
--- 170,176 ----
#undef NO_KILLPG
#define NO_SETSID
#define NEED_STRDUP
+ #define NO_UNISTD_H
#undef _POSIX_SOURCE
#ifndef FD_CLOEXEC
#define FD_CLOEXEC 1