Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jdluhos:lsb-tests
lsb-runtime-test-official
syslogd-lsbcc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File syslogd-lsbcc.patch of Package lsb-runtime-test-official
--- ./pidfile.c.lsbcc 2000-12-11 14:46:07.000000000 -0500 +++ ./pidfile.c 2008-09-23 09:59:42.000000000 -0400 @@ -31,6 +31,7 @@ #include <string.h> #include <errno.h> #include <signal.h> +#include <fcntl.h> /* read_pid * --- ./syslogd.c.lsbcc 2007-02-26 04:46:08.000000000 -0500 +++ ./syslogd.c 2008-09-24 14:02:01.000000000 -0400 @@ -537,9 +537,9 @@ static char sccsid[] = "@(#)syslogd.c 5. #else #ifndef _PATH_LOGPID #if defined(FSSTND) -#define _PATH_LOGPID _PATH_VARRUN "syslogd.pid" +#define _PATH_LOGPID _PATH_VARRUN "lsb-syslogd.pid" #else -#define _PATH_LOGPID "/etc/syslogd.pid" +#define _PATH_LOGPID "/etc/lsb-syslogd.pid" #endif #endif #endif @@ -949,7 +949,8 @@ int main(argc, argv) exit(1); } signal (SIGTERM, SIG_DFL); - num_fds = getdtablesize(); + //num_fds = getdtablesize(); + num_fds = sysconf(_SC_PAGE_SIZE); for (i= 0; i < num_fds; i++) (void) close(i); untty(); @@ -1050,7 +1051,8 @@ int main(argc, argv) siginterrupt(SIGUSR1,1); /* Create a partial message table for all file descriptors. */ - num_fds = getdtablesize(); + //num_fds = getdtablesize(); + num_fds = sysconf(_SC_PAGE_SIZE); dprintf("Allocated parts table for %d file descriptors.\n", num_fds); if ( (parts = (char **) malloc(num_fds * sizeof(char *))) == \ (char **) 0 ) @@ -2103,10 +2105,11 @@ void reapchild() (void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */ wait ((int *)0); #else +#if 0 union wait status; while (wait3(&status, WNOHANG, (struct rusage *) NULL) > 0) - ; +#endif ; #endif #ifdef linux (void) signal(SIGCHLD, reapchild); /* reset signal handler -ASP */ @@ -3126,6 +3129,7 @@ struct addrinfo *not_local_address(char } free_host_ai_list(ai2); ai2=0L; +#if 0 if( getifaddrs(&ifa) == 0) { for(; (ifa != 0L) && (ifa->ifa_addr != 0L); ifa = ifa->ifa_next ) @@ -3150,6 +3154,7 @@ struct addrinfo *not_local_address(char } } } +#endif if( ai2 != 0L ) { free_host_ai_list(ai2); --- ./Makefile.lsbcc 2007-02-26 04:46:08.000000000 -0500 +++ ./Makefile 2008-09-24 14:06:03.000000000 -0400 @@ -1,9 +1,9 @@ # Makefile for syslogd and klogd daemons. -CC= gcc +CC= lsbcc #CFLAGS= -g -DSYSV -Wall #LDFLAGS= -g -CFLAGS= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall -fpie +CFLAGS= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall -fpie -DMAXHOSTNAMELEN=64 LDFLAGS=-pie # Look where your install program is. @@ -42,7 +42,7 @@ MAN_OWNER = root # name for the syslogd pid to be syslog.pid. A number of people have # suggested that this should be syslogd.pid. You may cast your # ballot below. -SYSLOGD_PIDNAME = -DSYSLOGD_PIDNAME=\"syslogd.pid\" +SYSLOGD_PIDNAME = -DSYSLOGD_PIDNAME=\"lsb-syslogd.pid\" SYSLOGD_FLAGS= -DSYSLOG_INET -DSYSLOG_UNIXAF -DINET6 -DNO_SCCS ${FSSTND} \ ${SYSLOGD_PIDNAME}
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor