"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xinetd/state.h" between
xinetd-2.3.15.tar.gz and xinetd-2.3.15.4.tar.xz

About: xinetd is a secure replacement for inetd, the internet services daemon (openSUSE fork).

state.h  (xinetd-2.3.15):state.h  (xinetd-2.3.15.4.tar.xz)
skipping to change at line 12 skipping to change at line 12
* (c) Copyright 1992 by Panagiotis Tsirigotis * (c) Copyright 1992 by Panagiotis Tsirigotis
* (c) Sections Copyright 1998-2001 by Rob Braun * (c) Sections Copyright 1998-2001 by Rob Braun
* All rights reserved. The file named COPYRIGHT specifies the terms * All rights reserved. The file named COPYRIGHT specifies the terms
* and conditions for redistribution. * and conditions for redistribution.
*/ */
#ifndef STATE_H #ifndef STATE_H
#define STATE_H #define STATE_H
/* /*
* $Id: state.h,v 1.3 2005-03-30 23:15:28 bbraun Exp $ * $Id$
*/ */
#include "config.h" #include "config.h"
#include <setjmp.h> #include <setjmp.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h> #include <sys/resource.h>
#endif
#include "libportable.h" #include "libportable.h"
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> #include <sys/select.h>
#ifdef HAVE_POLL
#include <poll.h>
#endif #endif
#include "xlog.h" #include "xlog.h"
#include "pset.h" #include "pset.h"
#include "defs.h" #include "defs.h"
#include "mask.h" #include "mask.h"
struct read_only_state struct read_only_state
{ {
rlim_t orig_max_descriptors ; /* original soft rlimit */
rlim_t max_descriptors ; /* original hard rlimit or OPEN_MAX */ rlim_t max_descriptors ; /* original hard rlimit or OPEN_MAX */
rlim_t process_limit ; /* if 0, there is no limit */ rlim_t process_limit ; /* if 0, there is no limit */
int cc_interval ; /* # of seconds the cc gets invoked. */ int cc_interval ; /* # of seconds the cc gets invoked. */
const char *pid_file ; /* where the pidfile is located */ const char *pid_file ; /* where the pidfile is located */
const char *config_file ; const char *config_file ;
int is_superuser ; int is_superuser ;
char **Argv ; char **Argv ;
int Argc ; int Argc ;
} ; } ;
skipping to change at line 59 skipping to change at line 56
xlog_h def_log ; xlog_h def_log ;
bool_int def_log_creation_failed ; bool_int def_log_creation_failed ;
} ; } ;
struct read_write_state struct read_write_state
{ {
int descriptors_free ; /* may be negative (reserved) */ int descriptors_free ; /* may be negative (reserved) */
int available_services ; /* # of available services */ int available_services ; /* # of available services */
int active_services ; /* services with descriptors set */ int active_services ; /* services with descriptors set */
/* in socket mask */ /* in socket mask */
#ifdef HAVE_POLL
struct pollfd *pfd_array; /* array passed to poll(2) */
int pfds_last; /* index of last fd in the array */
int pfds_allocated; /* size of the array */
#else
fd_set socket_mask ; fd_set socket_mask ;
int mask_max ; int mask_max ;
#endif /* HAVE_POLL */
pset_h servers ; /* table of running servers */ pset_h servers ; /* table of running servers */
pset_h retries ; /* table of servers to retry */ pset_h retries ; /* table of servers to retry */
pset_h services ; /* table of services */ pset_h services ; /* table of services */
struct service *logging ; struct service *logging ;
struct defaults defs ; struct defaults defs ;
xlog_h program_log ; xlog_h program_log ;
sigjmp_buf env ; sigjmp_buf env ;
bool_int env_is_valid ; bool_int env_is_valid ;
#ifdef HAVE_MDNS
void *mdns_state ;
#endif
} ; } ;
struct program_state struct program_state
{ {
struct read_only_state ros ; struct read_only_state ros ;
struct read_write_state rws ; struct read_write_state rws ;
} ; } ;
#define DEFAULTS( ps ) (ps).rws.defs.def_settings #define DEFAULTS( ps ) (ps).rws.defs.def_settings
#define DEFAULT_LOG( ps ) (ps).rws.defs.def_log #define DEFAULT_LOG( ps ) (ps).rws.defs.def_log
 End of changes. 9 change blocks. 
9 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)