summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
96e003d)
SCCS-vsn: usr.sbin/sendmail/src/conf.h 8.34
SCCS-vsn: usr.sbin/sendmail/src/sendmail.h 8.21
SCCS-vsn: usr.sbin/sendmail/src/daemon.c 8.15
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.37
-static char sccsid[] = "@(#)conf.c 8.36 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.37 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
** This is essentially old BSD "signal(3)".
*/
** This is essentially old BSD "signal(3)".
*/
setsignal(sig, handler)
int sig;
setsignal(sig, handler)
int sig;
{
#if defined(SYS5SIGNALS) || defined(BSD4_3) || defined(_AUX_SOURCE)
return signal(sig, handler);
{
#if defined(SYS5SIGNALS) || defined(BSD4_3) || defined(_AUX_SOURCE)
return signal(sig, handler);
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 8.33 (Berkeley) %G%
+ * @(#)conf.h 8.34 (Berkeley) %G%
# define HASUNAME 1 /* use System V uname(2) system call */
# define HASUSTAT 1 /* use System V ustat(2) syscall */
# define HASSETVBUF 1 /* we have setvbuf(3) in libc */
# define HASUNAME 1 /* use System V uname(2) system call */
# define HASUSTAT 1 /* use System V ustat(2) syscall */
# define HASSETVBUF 1 /* we have setvbuf(3) in libc */
+# define SIGFUNC_DEFINED /* sigfunc_t already defined */
# define FORK fork
# ifndef _PATH_SENDMAILCF
# define _PATH_SENDMAILCF "/usr/lib/sendmail.cf"
# define FORK fork
# ifndef _PATH_SENDMAILCF
# define _PATH_SENDMAILCF "/usr/lib/sendmail.cf"
# define WIFEXITED(st) (((st) & 0377) == 0)
#endif
# define WIFEXITED(st) (((st) & 0377) == 0)
#endif
+#ifndef SIGFUNC_DEFINED
+typedef void (*sigfunc_t) __P((int));
+#endif
+
/*
** Size of tobuf (deliver.c)
** Tweak this to match your syslog implementation. It will have to
/*
** Size of tobuf (deliver.c)
** Tweak this to match your syslog implementation. It will have to
#ifndef lint
#ifdef DAEMON
#ifndef lint
#ifdef DAEMON
-static char sccsid[] = "@(#)daemon.c 8.14 (Berkeley) %G% (with daemon mode)";
+static char sccsid[] = "@(#)daemon.c 8.15 (Berkeley) %G% (with daemon mode)";
-static char sccsid[] = "@(#)daemon.c 8.14 (Berkeley) %G% (without daemon mode)";
+static char sccsid[] = "@(#)daemon.c 8.15 (Berkeley) %G% (without daemon mode)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
if (TcpRcvBufferSize > 0)
{
if (setsockopt(DaemonSocket, SOL_SOCKET, SO_RCVBUF,
if (TcpRcvBufferSize > 0)
{
if (setsockopt(DaemonSocket, SOL_SOCKET, SO_RCVBUF,
+ (char *) &TcpRcvBufferSize,
sizeof(TcpRcvBufferSize)) < 0)
syserr("getrequests: setsockopt(SO_RCVBUF)");
}
sizeof(TcpRcvBufferSize)) < 0)
syserr("getrequests: setsockopt(SO_RCVBUF)");
}
if (TcpSndBufferSize > 0)
{
if (setsockopt(s, SOL_SOCKET, SO_SNDBUF,
if (TcpSndBufferSize > 0)
{
if (setsockopt(s, SOL_SOCKET, SO_SNDBUF,
+ (char *) &TcpSndBufferSize,
sizeof(TcpSndBufferSize)) < 0)
syserr("makeconnection: setsockopt(SO_SNDBUF)");
}
sizeof(TcpSndBufferSize)) < 0)
syserr("makeconnection: setsockopt(SO_SNDBUF)");
}
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)sendmail.h 8.20 (Berkeley) %G%
+ * @(#)sendmail.h 8.21 (Berkeley) %G%
# ifdef _DEFINE
# define EXTERN
# ifndef lint
# ifdef _DEFINE
# define EXTERN
# ifndef lint
-static char SmailSccsId[] = "@(#)sendmail.h 8.20 %G%";
+static char SmailSccsId[] = "@(#)sendmail.h 8.21 %G%";
# endif
# else /* _DEFINE */
# define EXTERN extern
# endif
# else /* _DEFINE */
# define EXTERN extern
extern char *hostsignature __P((MAILER *, char *, ENVELOPE *));
extern void openxscript __P((ENVELOPE *));
extern void closexscript __P((ENVELOPE *));
extern char *hostsignature __P((MAILER *, char *, ENVELOPE *));
extern void openxscript __P((ENVELOPE *));
extern void closexscript __P((ENVELOPE *));
-typedef void (*setsig_t) __P((int));
-extern setsig_t setsignal __P((int, setsig_t));
+extern sigfunc_t setsignal __P((int, sigfunc_t));
/* ellipsis is a different case though */
#ifdef __STDC__
/* ellipsis is a different case though */
#ifdef __STDC__