Re: NOFIXADE / NOPRINTADE

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: NOFIXADE / NOPRINTADE
Date: 2004-09-23 13:51:56
Message-ID: 200409231351.i8NDpuF24378@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


No idea. That code came in at a time when we weren't as good at
documenting platform-specific stuff. (We never expected to be this
popular or to be playing with this code 8 years later.) :-)

I just found this:

http://joshua.raleigh.nc.us/docs/linux-2.4.10_html/87660.html

Want to update the C comments?

---------------------------------------------------------------------------

Neil Conway wrote:
> There's a bunch of very ugly code in backend/main/main.c that involves
> the preprocessor constants "NOFIXADE" and "NOPRINTADE". The code seems
> to be related to support for Alpha and/or ultrix4. NOFIXADE is defined
> by port/osf.h and port/ultrix4.h, while NOPRINTADE is not defined as far
> as I can tell (... unless some system header defines it?)
>
> Does anyone have any idea what this code is intended to do, and why it
> is necessary? It would be nice to remove it, but even if that's not
> possible we can at least explain why it is necessary.
>
> The code in question is:
>
> #if defined(__alpha) /* no __alpha__ ? */
> #ifdef NOFIXADE
> int buffer[] = {SSIN_UACPROC, UAC_SIGBUS};
> #endif /* NOFIXADE */
> #ifdef NOPRINTADE
> int buffer[] = {SSIN_UACPROC, UAC_NOPRINT};
> #endif /* NOPRINTADE */
> #endif /* __alpha */
>
> #ifdef WIN32
> char *env_locale;
> #endif
>
> #if defined(NOFIXADE) || defined(NOPRINTADE)
>
> #if defined(ultrix4)
> syscall(SYS_sysmips, MIPS_FIXADE, 0, NULL, NULL, NULL);
> #endif
>
> #if defined(__alpha) /* no __alpha__ ? */
> if (setsysinfo(SSI_NVPAIRS, buffer, 1, (caddr_t) NULL,
> (unsigned long) NULL) < 0)
> write_stderr("%s: setsysinfo failed: %s\n",
> argv[0], strerror(errno));
> #endif
> #endif /* NOFIXADE || NOPRINTADE */
>
> -Neil
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-09-23 14:08:15 Re: BUG: possible busy loop when connection is closed while trying to establish SSL connection
Previous Message Andrew Dunstan 2004-09-23 13:44:50 Re: Use of zlib