Sansonetti Laurent <[EMAIL PROTECTED]> writes: >Hi hackers, > >Just a little question about utsname.h (on a 4.4-release), is it normal >to see a value of 32 for SYS_NMLN instead of 256 (like other >implementations such as OpenBSD 3.0) ?
I've just sent in a PR regarding this; Solaris 8 has it at 257, NetBSD (and as you say, OpenBSD) at 256. However, some systems are even more pathetic than FreeBSD regarding this, HP-UX 10 for example has it a 9 only. Generally, software shouldn't assume that it could get anything reasonable from the nodename field of the struct (like an untruncated hostname), some software still uses it (such as nmh) but it would still be nice if it returned something reasonable on FreeBSD; no need to leave it broken just because it's also broken on some other systems. --mkb To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message