1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Document gethostid(3) and sethostid(3) as obsolete.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-01-23 17:53:27 +01:00
parent 4ee83c9466
commit d50e8f1bce
2 changed files with 9 additions and 1 deletions

View file

@ -93,6 +93,15 @@ named host, but don't care much about the low-level details. If you use these
modern networking interfaces, then your program can use without modification
IPv4, IPv6, or whatever new protocol is used in the future.
gethostid, sethostid
--------------------
These functions are built on the assumption that 32-bits are enough such that
each computer has an unique identity. It isn't. These functions are usually
implemented by using the IPv4 address, which already creates conflicts because
multiple systems can have the same LAN address. The functions are silly and any
use of them probably is silly too.
getpgrp
-------

View file

@ -311,7 +311,6 @@ int fdatasync(int);
int fexecve(int, char* const [], char* const []);
long fpathconf(int, int);
int getgroups(int, gid_t []);
long gethostid(void);
pid_t getpgrp(void);
pid_t getsid(pid_t);