/*
- * $Id: util.h,v 1.17 1996/09/16 17:22:02 wessels Exp $
+ * $Id: util.h,v 1.18 1996/09/17 02:29:36 wessels Exp $
*
* AUTHOR: Harvest Derived
*
extern void Log __P((char *,...));
extern void errorlog __P((char *,...));
#else
-extern void Log __P((void));
-extern void errorlog __P((void));
+extern void Log __P(());
+extern void errorlog __P(());
#endif /* __STRICT_ANSI__ */
extern void Tolower __P((char *));
#
# Darren Hardy, hardy@cs.colorado.edu, April 1994
#
-# $Id: Makefile.in,v 1.13 1996/09/12 03:23:59 wessels Exp $
+# $Id: Makefile.in,v 1.14 1996/09/17 02:29:44 wessels Exp $
#
prefix = @prefix@
srcdir = @srcdir@
$(RANLIB) $@
clean:
- -rm -f $(UTILOBJS) $(REGEXOBJS) $(LIBS) core
+ -rm -f *.o $(LIBS) core
realclean: clean
-rm -f libregex.a
#include <stdlib.h>
#endif
+static void base64_init __P((void));
+
static int base64_initialized = 0;
int base64_value[256];
char base64_code[] = "ABCDEFGHIJKLMNOPQRSTUVWZYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static void
-base64_init()
+base64_init(void)
{
int i;
/*
- * $Id: getfullhostname.c,v 1.6 1996/09/14 08:50:47 wessels Exp $
+ * $Id: getfullhostname.c,v 1.7 1996/09/17 02:29:46 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
* to the gethost*() functions.
*/
char *
-getfullhostname()
+getfullhostname(void)
{
struct hostent *hp = NULL;
static char buf[SQUIDHOSTNAMELEN + 1];
/*
- * $Id: util.c,v 1.14 1996/09/15 07:04:02 wessels Exp $
+ * $Id: util.c,v 1.15 1996/09/17 02:29:47 wessels Exp $
*
* DEBUG:
* AUTHOR: Harvest Derived
static int dbg_stat_init = 0;
static void
-stat_init()
+stat_init(void)
{
int i;
for (i = 0; i <= DBG_MAXINDEX; i++)
static void *Q;
static void
-check_init()
+check_init(void)
{
for (B = 0; B < DBG_ARRY_BKTS; B++) {
for (I = 0; I < DBG_ARRY_SZ; I++) {
* xstrerror() - return sys_errlist[errno];
*/
char *
-xstrerror()
+xstrerror(void)
{
static char xstrerror_buf[BUFSIZ];
/*
- * $Id: acl.cc,v 1.39 1996/09/16 21:11:03 wessels Exp $
+ * $Id: acl.cc,v 1.40 1996/09/17 02:29:48 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
static intlist *
-aclParseIntlist()
+aclParseIntlist(void)
{
intlist *head = NULL;
intlist **Tail = &head;
}
static intlist *
-aclParseProtoList()
+aclParseProtoList(void)
{
intlist *head = NULL;
intlist **Tail = &head;
}
static intlist *
-aclParseMethodList()
+aclParseMethodList(void)
{
intlist *head = NULL;
intlist **Tail = &head;
static struct _acl_ip_data *
-aclParseIpList()
+aclParseIpList(void)
{
char *t = NULL, *p = NULL;
struct _acl_ip_data *head = NULL;
}
static struct _acl_time_data *
-aclParseTimeSpec()
+aclParseTimeSpec(void)
{
struct _acl_time_data *data = NULL;
int h1, m1, h2, m2;
}
static struct _relist *
-aclParseRegexList()
+aclParseRegexList(void)
{
relist *head = NULL;
relist **Tail = &head;
}
static wordlist *
-aclParseWordList()
+aclParseWordList(void)
{
wordlist *head = NULL;
wordlist **Tail = &head;
}
static wordlist *
-aclParseDomainList()
+aclParseDomainList(void)
{
wordlist *head = NULL;
wordlist **Tail = &head;
void
-aclParseAclLine()
+aclParseAclLine(void)
{
/* we're already using strtok() to grok the line */
char *t = NULL;
}
void
-aclDestroyAcls()
+aclDestroyAcls(void)
{
struct _acl *a = NULL;
struct _acl *next = NULL;
/*
- * $Id: cache_cf.cc,v 1.89 1996/09/16 21:11:03 wessels Exp $
+ * $Id: cache_cf.cc,v 1.90 1996/09/17 02:29:50 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
static void parseMinutesLine __P((int *));
void
-self_destruct()
+self_destruct(void)
{
sprintf(fatal_str, "Bungled %s line %d: %s",
cfg_filename, config_lineno, config_input_line);
static void
-parseCacheHostLine()
+parseCacheHostLine(void)
{
char *type = NULL;
char *hostname = NULL;
}
static void
-parseHostDomainLine()
+parseHostDomainLine(void)
{
char *host = NULL;
char *domain = NULL;
}
static void
-parseHostAclLine()
+parseHostAclLine(void)
{
char *host = NULL;
char *aclname = NULL;
static void
-parseMemLine()
+parseMemLine(void)
{
char *token;
int i;
}
static void
-parseHotVmFactorLine()
+parseHotVmFactorLine(void)
{
char *token = NULL;
double d;
}
static void
-parseSwapLine()
+parseSwapLine(void)
{
char *token;
int i;
}
static void
-parseHttpLine()
+parseHttpLine(void)
{
char *token;
int i;
}
static void
-parseGopherLine()
+parseGopherLine(void)
{
char *token;
int i;
}
static void
-parseFtpLine()
+parseFtpLine(void)
{
char *token;
int i;
}
static void
-parseQuickAbort()
+parseQuickAbort(void)
{
char *token;
int i;
}
static void
-parseRequestSizeLine()
+parseRequestSizeLine(void)
{
char *token;
int i;
}
static void
-parseMgrLine()
+parseMgrLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseDirLine()
+parseDirLine(void)
{
char *token;
#if USE_PROXY_AUTH
static void
-parseProxyAuthLine()
+parseProxyAuthLine(void)
{
char *token;
#endif /* USE_PROXY_AUTH */
static void
-parseHttpdAccelLine()
+parseHttpdAccelLine(void)
{
char *token;
LOCAL_ARRAY(char, buf, BUFSIZ);
}
static void
-parseEffectiveUserLine()
+parseEffectiveUserLine(void)
{
char *token;
}
static void
-parseLogLine()
+parseLogLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseAccessLogLine()
+parseAccessLogLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseStoreLogLine()
+parseStoreLogLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseFtpProgramLine()
+parseFtpProgramLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseFtpOptionsLine()
+parseFtpOptionsLine(void)
{
char *token;
token = strtok(NULL, ""); /* Note "", don't separate these */
}
static void
-parseDnsProgramLine()
+parseDnsProgramLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseRedirectProgramLine()
+parseRedirectProgramLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseWAISRelayLine()
+parseWAISRelayLine(void)
{
char *token;
int i;
}
static void
-parseHierarchyStoplistLine()
+parseHierarchyStoplistLine(void)
{
char *token;
while ((token = strtok(NULL, w_space)))
}
static void
-parseAppendDomainLine()
+parseAppendDomainLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseLocalDomainLine()
+parseLocalDomainLine(void)
{
char *token = NULL;
struct stat sb;
}
static void
-parseInsideFirewallLine()
+parseInsideFirewallLine(void)
{
char *token;
while ((token = strtok(NULL, w_space))) {
}
static void
-parseDnsTestnameLine()
+parseDnsTestnameLine(void)
{
char *token;
while ((token = strtok(NULL, w_space))) {
}
static void
-parseHttpPortLine()
+parseHttpPortLine(void)
{
char *token;
int i;
}
static void
-parseIcpPortLine()
+parseIcpPortLine(void)
{
char *token;
int i;
}
static void
-parseDebugOptionsLine()
+parseDebugOptionsLine(void)
{
char *token;
token = strtok(NULL, ""); /* Note "", don't separate these */
}
static void
-parsePidFilenameLine()
+parsePidFilenameLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseVisibleHostnameLine()
+parseVisibleHostnameLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseFtpUserLine()
+parseFtpUserLine(void)
{
char *token;
token = strtok(NULL, w_space);
}
static void
-parseCacheAnnounceLine()
+parseCacheAnnounceLine(void)
{
char *token;
int i;
}
static void
-parseAnnounceToLine()
+parseAnnounceToLine(void)
{
char *token;
int i;
}
static void
-parseSslProxyLine()
+parseSslProxyLine(void)
{
char *token;
char *t;
}
static void
-parseErrHtmlLine()
+parseErrHtmlLine(void)
{
char *token;
if ((token = strtok(NULL, "")))
}
static void
-configFreeMemory()
+configFreeMemory(void)
{
safe_free(Config.Wais.relayHost);
safe_free(Config.Log.log);
static void
-configSetFactoryDefaults()
+configSetFactoryDefaults(void)
{
Config.Mem.maxSize = DefaultMemMaxSize;
Config.Mem.highWaterMark = DefaultMemHighWaterMark;
}
static void
-configDoConfigure()
+configDoConfigure(void)
{
httpd_accel_mode = Config.Accel.prefix ? 1 : 0;
sprintf(ForwardedBy, "Forwarded: by http://%s:%d/",
/*
- * $Id: client_side.cc,v 1.28 1996/09/16 21:11:04 wessels Exp $
+ * $Id: client_side.cc,v 1.29 1996/09/17 02:29:51 wessels Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
#define CHECK_PROXY_FILE_TIME 300
char *
-proxyAuthenticate()
+proxyAuthenticate(void)
{
/* Keep the time measurements and the hash
* table of users and passwords handy */
/*
- * $Id: comm.cc,v 1.72 1996/09/16 21:20:45 wessels Exp $
+ * $Id: comm.cc,v 1.73 1996/09/17 02:29:52 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
}
static void
-comm_select_incoming()
+comm_select_incoming(void)
{
fd_set read_mask;
fd_set write_mask;
* squid initiated clients a maximum lifetime.
*/
int
-comm_init()
+comm_init(void)
{
int i;
}
static void
-checkTimeouts()
+checkTimeouts(void)
{
int fd;
int (*hdl) () = NULL;
}
static void
-checkLifetimes()
+checkLifetimes(void)
{
int fd;
time_t lft;
* Reserve_More_FDs() called when acceopt(), open(), or socket is failing
*/
static void
-Reserve_More_FDs()
+Reserve_More_FDs(void)
{
if (RESERVED_FD < FD_SETSIZE - 64) {
RESERVED_FD = RESERVED_FD + 1;
/*
- * $Id: debug.cc,v 1.23 1996/09/14 08:45:45 wessels Exp $
+ * $Id: debug.cc,v 1.24 1996/09/17 02:29:52 wessels Exp $
*
* DEBUG: section 0 Debug Routines
* AUTHOR: Harvest Derived
}
void
-_db_rotate_log()
+_db_rotate_log(void)
{
int i;
LOCAL_ARRAY(char, from, MAXPATHLEN);
/*
- * $Id: disk.cc,v 1.25 1996/09/14 16:54:52 wessels Exp $
+ * $Id: disk.cc,v 1.26 1996/09/17 02:29:53 wessels Exp $
*
* DEBUG: section 6 Disk I/O Routines
* AUTHOR: Harvest Derived
/* initialize table */
int
-disk_init()
+disk_init(void)
{
int fd;
/*
- * $Id: dns.cc,v 1.10 1996/09/16 21:20:45 wessels Exp $
+ * $Id: dns.cc,v 1.11 1996/09/17 02:29:54 wessels Exp $
*
* DEBUG: section 34 Dnsserver interface
* AUTHOR: Harvest Derived
}
dnsserver_t *
-dnsGetFirstAvailable()
+dnsGetFirstAvailable(void)
{
int k;
dnsserver_t *dns = NULL;
void
-dnsOpenServers()
+dnsOpenServers(void)
{
int N = Config.dnsChildren;
char *prg = Config.Program.dnsserver;
}
void
-dnsShutdownServers()
+dnsShutdownServers(void)
{
dnsserver_t *dnsData = NULL;
int k;
/*
- * $Id: errorpage.cc,v 1.38 1996/09/14 08:45:52 wessels Exp $
+ * $Id: errorpage.cc,v 1.39 1996/09/17 02:29:54 wessels Exp $
*
* DEBUG: section 4 Error Generation
* AUTHOR: Duane Wessels
static char *auth_msg = NULL;
void
-errorInitialize()
+errorInitialize(void)
{
#ifndef USE_PROXY_AUTH
tmp_error_buf = xmalloc(MAX_URL * 4);
/*
- * $Id: fqdncache.cc,v 1.19 1996/09/16 16:28:38 wessels Exp $
+ * $Id: fqdncache.cc,v 1.20 1996/09/17 02:29:55 wessels Exp $
*
* DEBUG: section 35 FQDN Cache
* AUTHOR: Harvest Derived
}
static void *
-fqdncacheDequeue()
+fqdncacheDequeue(void)
{
struct fqdncacheQueueData *old = NULL;
fqdncache_entry *f = NULL;
}
static fqdncache_entry *
-fqdncache_GetFirst()
+fqdncache_GetFirst(void)
{
return (fqdncache_entry *) hash_first(fqdn_table);
}
static fqdncache_entry *
-fqdncache_GetNext()
+fqdncache_GetNext(void)
{
return (fqdncache_entry *) hash_next(fqdn_table);
}
/* finds the LRU and deletes */
static int
-fqdncache_purgelru()
+fqdncache_purgelru(void)
{
fqdncache_entry *f = NULL;
int local_fqdn_count = 0;
/* create blank fqdncache_entry */
static fqdncache_entry *
-fqdncache_create()
+fqdncache_create(void)
{
static fqdncache_entry *new;
/* initialize the fqdncache */
void
-fqdncache_init()
+fqdncache_init(void)
{
debug(35, 3, "Initializing FQDN Cache...\n");
memset(&FqdncacheStats, '\0', sizeof(FqdncacheStats));
}
int
-fqdncacheQueueDrain()
+fqdncacheQueueDrain(void)
{
fqdncache_entry *i;
dnsserver_t *dnsData;
/*
- * $Id: ftp.cc,v 1.57 1996/09/16 21:11:07 wessels Exp $
+ * $Id: ftp.cc,v 1.58 1996/09/17 02:29:56 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
}
void
-ftpServerClose()
+ftpServerClose(void)
{
/* NOTE: this function will be called repeatedly while shutdown is
* pending */
int
-ftpInitialize()
+ftpInitialize(void)
{
int pid;
int cfd;
/*
- * $Id: gopher.cc,v 1.47 1996/09/16 21:11:07 wessels Exp $
+ * $Id: gopher.cc,v 1.48 1996/09/17 02:29:58 wessels Exp $
*
* DEBUG: section 10 Gopher
* AUTHOR: Harvest Derived
static GopherStateData *
-CreateGopherStateData()
+CreateGopherStateData(void)
{
GopherStateData *gd = xcalloc(1, sizeof(GopherStateData));
gd->buf = get_free_4k_page();
/*
- * $Id: ipcache.cc,v 1.61 1996/09/16 21:20:47 wessels Exp $
+ * $Id: ipcache.cc,v 1.62 1996/09/17 02:29:59 wessels Exp $
*
* DEBUG: section 14 IP Cache
* AUTHOR: Harvest Derived
}
static void *
-ipcacheDequeue()
+ipcacheDequeue(void)
{
struct ipcacheQueueData *old = NULL;
ipcache_entry *i = NULL;
}
static int
-ipcache_testname()
+ipcache_testname(void)
{
wordlist *w = NULL;
debug(14, 1, "Performing DNS Tests...\n");
/* get the first ip entry in the storage */
static ipcache_entry *
-ipcache_GetFirst()
+ipcache_GetFirst(void)
{
return (ipcache_entry *) hash_first(ip_table);
}
/* get the next ip entry in the storage for a given search pointer */
static ipcache_entry *
-ipcache_GetNext()
+ipcache_GetNext(void)
{
return (ipcache_entry *) hash_next(ip_table);
}
/* finds the LRU and deletes */
int
-ipcache_purgelru()
+ipcache_purgelru(void)
{
ipcache_entry *i = NULL;
int local_ip_notpending_count = 0;
/* create blank ipcache_entry */
static ipcache_entry *
-ipcache_create()
+ipcache_create(void)
{
static ipcache_entry *new;
/* initialize the ipcache */
void
-ipcache_init()
+ipcache_init(void)
{
debug(14, 3, "Initializing IP Cache...\n");
}
int
-ipcacheQueueDrain()
+ipcacheQueueDrain(void)
{
ipcache_entry *i;
dnsserver_t *dnsData;
/*
- * $Id: main.cc,v 1.78 1996/09/16 21:50:25 wessels Exp $
+ * $Id: main.cc,v 1.79 1996/09/17 02:30:00 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
static void sendSignal __P((void));
static void
-usage()
+usage(void)
{
fprintf(stderr, "\
Usage: %s [-hsvzCDFRUVY] [-f config-file] [-[au] port] [-k signal]\n\
}
void
-serverConnectionsOpen()
+serverConnectionsOpen(void)
{
struct in_addr addr;
u_short port;
}
void
-serverConnectionsClose()
+serverConnectionsClose(void)
{
/* NOTE, this function will be called repeatedly while shutdown
* is pending */
}
static void
-mainReinitialize()
+mainReinitialize(void)
{
debug(1, 0, "Restarting Squid Cache (version %s)...\n", version_string);
/* Already called serverConnectionsClose and ipcacheShutdownServers() */
}
static void
-mainInitialize()
+mainInitialize(void)
{
static int first_time = 1;
if (opt_catch_signals) {
}
static time_t
-mainMaintenance()
+mainMaintenance(void)
{
time_t next;
int n;
}
static void
-sendSignal()
+sendSignal(void)
{
int pid;
debug_log = stderr;
/*
- * $Id: neighbors.cc,v 1.54 1996/09/16 21:50:26 wessels Exp $
+ * $Id: neighbors.cc,v 1.55 1996/09/17 02:30:01 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
}
void
-neighborsDestroy()
+neighborsDestroy(void)
{
edge *e = NULL;
edge *next = NULL;
}
void
-neighbors_init()
+neighbors_init(void)
{
struct neighbor_cf *t = NULL;
struct neighbor_cf *next = NULL;
/*
- * $Id: recv-announce.cc,v 1.8 1996/09/15 05:04:40 wessels Exp $
+ * $Id: recv-announce.cc,v 1.9 1996/09/17 02:30:01 wessels Exp $
*
* DEBUG: section 0 Announement Server
* AUTHOR: Harvest Derived
*/
void
-sig_handle()
+sig_handle(void)
{
fflush(stdout);
close(2);
/*
- * $Id: redirect.cc,v 1.17 1996/09/16 21:20:49 wessels Exp $
+ * $Id: redirect.cc,v 1.18 1996/09/17 02:30:02 wessels Exp $
*
* DEBUG: section 29 Redirector
* AUTHOR: Duane Wessels
}
static redirectStateData *
-Dequeue()
+Dequeue(void)
{
struct redirectQueueData *old = NULL;
redirectStateData *r = NULL;
}
static redirector_t *
-GetFirstAvailable()
+GetFirstAvailable(void)
{
int k;
redirector_t *redirect = NULL;
}
void
-redirectOpenServers()
+redirectOpenServers(void)
{
char *prg = Config.Program.redirect;
int k;
}
void
-redirectShutdownServers()
+redirectShutdownServers(void)
{
redirector_t *redirect = NULL;
redirectStateData *r = NULL;
/*
- * $Id: send-announce.cc,v 1.18 1996/09/16 21:11:14 wessels Exp $
+ * $Id: send-announce.cc,v 1.19 1996/09/17 02:30:02 wessels Exp $
*
* DEBUG: section 27 Cache Announcer
* AUTHOR: Duane Wessels
#include "squid.h"
void
-send_announce()
+send_announce(void)
{
LOCAL_ARRAY(char, tbuf, 256);
LOCAL_ARRAY(char, sndbuf, BUFSIZ);
/*
- * $Id: stat.cc,v 1.70 1996/09/16 17:16:33 wessels Exp $
+ * $Id: stat.cc,v 1.71 1996/09/17 02:30:03 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
}
static int
-memoryAccounted()
+memoryAccounted(void)
{
return (int)
meta_data.store_entries * sizeof(StoreEntry) +
#ifdef UNUSED_CODE
static int
-mallinfoTotal()
+mallinfoTotal(void)
{
int total = 0;
#if HAVE_MALLINFO
}
void
-stat_rotate_log()
+stat_rotate_log(void)
{
int i;
LOCAL_ARRAY(char, from, MAXPATHLEN);
}
void
-statCloseLog()
+statCloseLog(void)
{
file_close(HTTPCacheInfo->logfile_fd);
}
/*
- * $Id: stmem.cc,v 1.22 1996/09/15 05:04:44 wessels Exp $
+ * $Id: stmem.cc,v 1.23 1996/09/17 02:30:04 wessels Exp $
*
* DEBUG: section 19 Memory Primitives
* AUTHOR: Harvest Derived
/* Do whatever is necessary to begin storage of new object */
mem_ptr
-memInit()
+memInit(void)
{
mem_ptr new = xcalloc(1, sizeof(Mem_Hdr));
new->tail = new->head = NULL;
}
void *
-get_free_request_t()
+get_free_request_t(void)
{
return get_free_thing(&request_pool);
}
void *
-get_free_mem_obj()
+get_free_mem_obj(void)
{
return get_free_thing(&mem_obj_pool);
}
char *
-get_free_4k_page()
+get_free_4k_page(void)
{
return (char *) get_free_thing(&sm_stats);
}
char *
-get_free_8k_page()
+get_free_8k_page(void)
{
return (char *) get_free_thing(&disk_stats);
}
}
void
-stmemInit()
+stmemInit(void)
{
sm_stats.page_size = SM_PAGE_SIZE;
sm_stats.total_pages_allocated = 0;
/*
- * $Id: store.cc,v 1.112 1996/09/16 21:20:49 wessels Exp $
+ * $Id: store.cc,v 1.113 1996/09/17 02:30:05 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
if ((hptr = hash_lookup(store_table, e->key)) == NULL) {
debug(20, 0, "storeRelease: Not Found: '%s'\n", e->key);
debug(20, 0, "Dump of Entry 'e':\n %s\n", storeToString(e));
- fatal_dump(NULL);
+ debug_trap("storeRelease: Invalid Entry");
}
result = (StoreEntry *) hptr;
if (result != e) {
result->url ? result->url : "NULL");
debug(20, 0, "Dump of Entry 'e':\n%s", storeToString(e));
debug(20, 0, "Dump of Entry 'result':\n%s", storeToString(result));
- fatal_dump(NULL);
+ debug_trap("storeRelease: Duplicate Entry");
}
}
if (e->method == METHOD_GET) {
/*
- * $Id: tools.cc,v 1.59 1996/09/16 21:20:50 wessels Exp $
+ * $Id: tools.cc,v 1.60 1996/09/17 02:30:06 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
Thanks!\n"
static char *
-dead_msg()
+dead_msg(void)
{
LOCAL_ARRAY(char, msg, 1024);
sprintf(msg, DEAD_MSG, version_string, version_string);
}
void
-mail_warranty()
+mail_warranty(void)
{
FILE *fp = NULL;
char *filename;
}
void
-setSocketShutdownLifetimes()
+setSocketShutdownLifetimes(void)
{
FD_ENTRY *f = NULL;
int lft = Config.lifetimeShutdown;
}
void
-normal_shutdown()
+normal_shutdown(void)
{
debug(21, 1, "Shutting down...\n");
if (Config.pidFilename) {
}
char *
-getMyHostname()
+getMyHostname(void)
{
LOCAL_ARRAY(char, host, SQUIDHOSTNAMELEN + 1);
static int present = 0;
* To give upp all posibilites to gain privilegies use no_suid()
*/
void
-leave_suid()
+leave_suid(void)
{
struct passwd *pwd = NULL;
struct group *grp = NULL;
/* Enter a privilegied section */
void
-enter_suid()
+enter_suid(void)
{
debug(21, 3, "enter_suid: PID %d taking root priveleges\n", getpid());
#if HAVE_SETRESUID
* this should be used before starting a sub process
*/
void
-no_suid()
+no_suid(void)
{
uid_t uid;
leave_suid();
}
void
-writePidFile()
+writePidFile(void)
{
FILE *pid_fp = NULL;
char *f = NULL;
int
-readPidFile()
+readPidFile(void)
{
FILE *pid_fp = NULL;
char *f = NULL;
void
-setMaxFD()
+setMaxFD(void)
{
#if HAVE_SETRLIMIT
/* try to use as many file descriptors as possible */
}
time_t
-getCurrentTime()
+getCurrentTime(void)
{
#if GETTIMEOFDAY_NO_TZP
gettimeofday(¤t_time);
/*
- * $Id: url.cc,v 1.33 1996/09/14 08:46:36 wessels Exp $
+ * $Id: url.cc,v 1.34 1996/09/17 02:30:07 wessels Exp $
*
* DEBUG: section 23 URL Parsing
* AUTHOR: Duane Wessels
/* INIT Acceptable table.
* Borrow from libwww2 with Mosaic2.4 Distribution */
void
-urlInitialize()
+urlInitialize(void)
{
unsigned int i;
char *good =