Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jul 2014 00:48:18 +0800
From:      Julian Elischer <julian@freebsd.org>
To:        freebsd-arch@freebsd.org
Subject:   Re: sys/proc.h inclusion of sys/time.h
Message-ID:  <53BD7252.1010605@freebsd.org>
In-Reply-To: <20140708210727.GA63071@stack.nl>
References:  <53BC4F49.7000903@FreeBSD.org> <20140708210727.GA63071@stack.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/9/14, 5:07 AM, Jilles Tjoelker wrote:
> On Tue, Jul 08, 2014 at 03:06:33PM -0500, Bryan Drewery wrote:
>> In r34924 sys/proc.h was changed to only include sys/time.h if not
>> building in kernel.
>> [snip]
>> (Why am I doing this? I need PID_MAX and NO_PID for a tcpdump change I
>> am testing that is intended for upstreaming. Perhaps I can use
>> kern.pid_max in __FreeBSD__ and other hacks on other platforms, I have
>> not yet decided on this.)
which I do every so often (*).. it's also needed for ibsc binaries 
(SCO?)  which I have NEVER done.

(*) about a year ago, compilinga freebsd-1.1 system on a fast modern 
system took just a few minutes.
> The kern.pid_max sysctl is mostly intended for running FreeBSD 1.0
> binaries, which have a 16-bit pid_t. Therefore, it is run-time
> adjustable and existing processes may have a pid higher than its value.
>
> Ideally, you do not need PID_MAX and NO_PID; try to use a variable of
> type pid_t only for a process ID and store flags elsewhere. There may be
> a problem if you need to read pid_t from an internal structure or
> message, though.
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53BD7252.1010605>