[TUHS] UNIX of choice these days?

Dave Horsfall dave at horsfall.org
Wed Sep 27 10:58:59 AEST 2017


On Tue, 26 Sep 2017, Grant Taylor wrote:

>> Exactly; why 255 of all things?
>
> High order of 8 bits?  (Assuming low order starts at 0.)

Yeah, but still doesn't answer the question, application-wise.  I'm gonna 
guess (without digging through the source) that it's a "dup2(0, 255)*" or 
something, to "save" a copy of stdin/out/err for some obscure reason.

[*]
OK, "getdtablesize() - 1" instead of 255...

-- 
Dave Horsfall DTM (VK2KFU)  "Those who don't understand security will suffer."




More information about the TUHS mailing list