# define __SVR4_I386_ABI_L1__
#endif
#include <limits.h> /* pickup WORD_BIT, LONG_BIT */
-#if defined(linux) || defined(__FreeBSD__)
+#if defined(linux) || defined(CSRG_BASED)
# undef __SVR4_I386_ABI_L1__
# ifndef WORD_BIT
# define WORD_BIT 32
#include <stdio.h>
#include <stdlib.h>
#include "util/copyright.h"
-#if defined(linux) || defined(sgi) || defined(__FreeBSD__)
+#if defined(linux) || defined(sgi) || defined(CSRG_BASED)
#include <getopt.h>
#endif
#include "dbck.h"
#if defined(linux)
#include <unistd.h>
#endif
-#if defined(sgi) || defined(__FreeBSD__)
+#if defined(sgi) || defined(CSRG_BASED)
#include <getopt.h>
#endif
#if defined(USL) || defined(__uxp__)
#include <termios.h>
#include <time.h>
-#if defined(sgi) || defined(__FreeBSD__)
+#if defined(sgi) || defined(CSRG_BASED)
#include <getopt.h>
#endif
#include <sys/resource.h>
#include <unistd.h>
-#if defined(sgi) || defined(__FreeBSD__)
+#if defined(sgi) || defined(CSRG_BASED)
#include <getopt.h>
#endif
** **
**************************************************************************/
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
static XRectangle *rband_rect = NULL;
static Boolean mselect_adjust = False;
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
char Buf[MAXPATHLEN]; /* Work buffer */
** **
**************************************************************************/
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
char Buf[MAXPATHLEN]; /* Work buffer */
** **
**************************************************************************/
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
va_list va_params
)
{
-#if defined(__ppc) || defined(linux) || defined(__OpenBSD__)
+#if defined(__ppc)
#define va_start_params() __va_copy(params, va_params)
-#elif defined(__FreeBSD__)
+#elif defined(CSRG_BASED) || defined(linux)
#define va_start_params() va_copy(params, va_params)
#else
#define va_start_params() (params = va_params)
BIL_LOAD_INFO bilP_load;
char Buf[MAXPATHLEN];
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
}
#ifdef SunOS
fconvert(value, decimal_pt, &deci_pt, &sign, buf);
-#elif defined(__FreeBSD__)
+#elif defined(CSRG_BASED)
snprintf(buf, decimal_pt, "%f", value);
#else
/* this version, available on the HP and AIX machine is not reentrant. */
static Bool lookForButton(Display *, XEvent *, XPointer);
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
*****************************************************************************/
static void
-#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux)
+#if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
PanicSignal(int s)
#else
PanicSignal(void)
*****************************************************************************/
static void
-#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux)
+#if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
IgnoreSignal(int i)
#else
IgnoreSignal(void)
*****************************************************************************/
static void
-#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux)
+#if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
UrgentSignal(int i)
#else
UrgentSignal(void)
*
*****************************************************************************/
static void
-#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux)
+#if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
SigCld(int i)
#else
SigCld(void)
* a SIGCLD, give up and exit.
*/
if (rediscoverUrgentSigG > ((1000/SHORT_SELECT_TIMEOUT)*5) ) {
-#if defined(__aix) || defined (__osf__) || defined(__FreeBSD__) || defined(linux)
+#if defined(__aix) || defined (__osf__) || defined(CSRG_BASED) || defined(linux)
PanicSignal(0);
#else
PanicSignal();
#include <X11/Xproto.h> /* for X_ChangeHosts */
#include <X11/Xatom.h> /* for XA_STRING */
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
#endif
#define _NFILE FOPEN_MAX
#endif
-#if !defined(linux) && !defined(__FreeBSD__)
+#if !defined(linux) && !defined(CSRG_BASED)
extern char *sys_errlist[];
extern int sys_nerr;
#endif
tab->flags |= HASH_STATIC;
break;
case HASH_va_list:
-#if defined(__FreeBSD__) && !defined(__LP64__)
+#if defined(CSRG_BASED) && !defined(__LP64__)
if (vp < &va[elementsof(va)]) *vp++ = ap;
ap = va_arg(ap, va_list);
#else
case 0:
if (vp > va)
{
-#if defined(__FreeBSD__) && !defined(__LP64__)
+#if defined(CSRG_BASED) && !defined(__LP64__)
ap = *--vp;
#else
vp--;
GETARG(form,form,argf,args,char*,char*,'1',t_user,n_user);
if(!form)
form = "";
-#if defined(__FreeBSD__) && !defined(__LP64__)
+#if defined(CSRG_BASED) && !defined(__LP64__)
GETARG(argsp,argsp,argf,args,va_list*,va_list*,'2',t_user,n_user);
memcpy((Void_t*)(&(fa->args)), (Void_t*)(&args), sizeof(va_list));
memcpy((Void_t*)(&args), (Void_t*)argsp, sizeof(va_list));
default : /* unknown directive */
if(extf)
{
-#if defined(__FreeBSD__) && !defined(__LP64__)
+#if defined(CSRG_BASED) && !defined(__LP64__)
va_list savarg = args; /* is this portable? */
#else
va_list savarg; /* is this portable? Sorry .. NO. */
if((sp = astr) )
goto s_format;
-#if defined(__FreeBSD__) && !defined(__LP64__)
+#if defined(CSRG_BASED) && !defined(__LP64__)
args = savarg; /* extf failed, treat as if unmatched */
#else
__va_copy( args, savarg ); /* extf failed, treat as if unmatched */
int cnt ;
int comflg ;
pid_t chld_pid = 0;
-#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__)
+#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ;
#else
union wait chld_stat ;
static pid_t gtob_pid = 0;
static pid_t btop_pid = 0;
-#if defined( SVR4 ) || defined( SYSV ) || defined(__osf__) || defined(__FreeBSD__)
+#if defined( SVR4 ) || defined( SYSV ) || defined(__osf__) || defined(CSRG_BASED)
static int chld_stat ;
#else
static union wait chld_stat ;
char *style ; /* style */
int chk_fd;
pid_t chld_pid = 0;
-#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__)
+#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ;
#else
union wait chld_stat ;
{
FILE *fp ;
pid_t chld_pid = 0;
-#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__)
+#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ;
#else
union wait chld_stat ;
char buf[BUFSIZE], *p;
pid_t chld_pid = 0;
-#if defined( SVR4 ) || defined( SYSV ) || defined(__FreeBSD__)
+#if defined( SVR4 ) || defined( SYSV ) || defined(CSRG_BASED)
int chld_stat ;
#else
union wait chld_stat ;