[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Linux/Hurd compatibility



On Wed, 12 May 1999, Marcus Brinkmann wrote:

> I have less problems with programs that use /proc than with programs which
> rely on the slight POSIX incompleteness/incompatibility of Linux. For
> example, it is a bit easier to program if you know PATH_MAX is an integer...
> but if it is not defined, you need to check with sysconf and cope with
> unlimited paths. On Linux, PATH_MAX is defined, so most people simply rely
> on it.

I've looked at this a just a wee bit. It should be pretty easy to check if
sysconf( _SC_LINE_MAX ) returns -1 without error. But I'm not quite sure
what the desired behavior is exactly. I'm a bit of a rookie; I'm not quite
clear on what should be done in terms of allocating memory in this case.

--
dean hudson,			<deanh@ero.com>	
research fellow,	esoteric research organization




Reply to: