Subject: Re: Problems with gdb under NetBSD 1.0
To: Mark P. Gooderum <mark@nirvana.good.com>
From: Tobias Weingartner <weingart@austin.BrandonU.CA>
List: current-users
Date: 12/14/1994 08:17:13
In message <199412140549.XAA03486@nirvana.good.com>, "Mark P. Gooderum" writes:
>
[Deleted.]
>
> HAVE_LSEEK
> NEED_LSEEK_PROTOTYPE
> LSEEK_OFFSET_ARG_TYPE
> LSEEEK_IN_OSFCNS_H
>
> Autoconf would have simple standard compile tests for most of these defines,
> the 3rd define might be generated by a run time test.
> The referencing code would then reference lseek by saying:
>
> #ifdef HAVE_LSEEK
> # ifdef NEED_LSEEK_PROTOTYPE
> LSEEK_OFFSET_ARG_TYPE lseek(int fd, LSEEK_OFFSET_ARG_TYPE off, int whence);
> # else
> # ifdef LSEEK_IN_UNISTD_H
> # include <unistd.h>
> # else if defined(LSEEK_IN_OSFCNS_H)
> # include <osfcns.h>
> # else
> # define x(y /* puke and die, more portable than #error */
> # endif
> # endif
> #else
> /* deal with it, define lseek(), whatever */
> #endif
>
Yuk! I don't care what people say, but *THAT* is hideous! Nothing against
the original poster...
--Toby.
*----------------------------------------------------------------------------*
| Tobias Weingartner | Email: weingart@BrandonU.Ca | Need a Unix sys-admin? |
| Box 27, Beulah, MB |-----------------------------| Send E-Mail for resume, |
| R0M 0B0, Canada | Unix Guru, Admin, Sys-Prgmr | and other details... |
|----------------------------------------------------------------------------|
| %SYSTEM-F-ANARCHISM, The operating system has been overthrown |
*----------------------------------------------------------------------------*