Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 12:43:28 +0400
From:      pluknet <pluknet@gmail.com>
To:        Gabor Kovesdan <gabor@freebsd.org>
Cc:        soc-status@freebsd.org
Subject:   Re: Collective resource limits status report #3
Message-ID:  <AANLkTinJcthrFcG4Vt8FK6NQ_UoDlCjeTNfYnCfoA0EU@mail.gmail.com>
In-Reply-To: <4C230A0B.3080700@FreeBSD.org>
References:  <4C1BCB96.4040608@FreeBSD.org> <AANLkTikwUYWCIvlDQ60L4L8gMcEeDFIV6850csEwuH8E@mail.gmail.com> <4C21CAF0.2040607@FreeBSD.org> <AANLkTikLoskpABjaUlufnBGOBeU-Z62CiuQfH5sDyY1Z@mail.gmail.com> <4C230A0B.3080700@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 24 June 2010 11:32, Gabor Kovesdan <gabor@freebsd.org> wrote:
> El 2010. 06. 23. 14:44, pluknet escribi=F3:
>>
>> On 23 June 2010 12:50, Gabor Kovesdan<gabor@freebsd.org> =A0wrote:
>>
>>>>
>>>> +typedef __uint32_t =A0 =A0 __jid_t;
>>>>
>>>>
>>>
>>> This has to be signed because calls may return -1.
>>>
>>
>> It might return jid_t (-1) then as it's done similarly for getpid(2)
>> family
>> which return pid_t(-1) on error, or similarly for inet_addr(3) which
>> returns
>> INADDR_NONE (0xffffffff, or -1 for uint32_t, let it be signed) on error.
>>
>
> In the meantime, I've found this:
> http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=3D0650&db=3Db=
ks&fname=3D/SGI_Admin/IA_Resource/apa.html
> Now, I changed it back because some applications may expect it to be a
> 64-bit variable then, and we are not sure about its relation to uid_t yet=
,
> so we may provide higher capacity.

Hey, it's even more interesting than I could imagine.
uid_t, pid_t here are signed types as well, int32_t or long, depending
on machine type.
That probably explains why jid_t has also a signed type (e.g. might inherit=
 it).
Upper bits in jid_t are reserved for machine ID (has signed int type),
used also in IRIX array sessions. That's why jid_t has to be 64-bit capable=
.

--=20
wbr,
pluknet



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