I'm surprised there isn't an equivalent of the above, or have I missed
something? They are very handy for creating maildir filenames and other
sorts of systemwide uniqueness. These days they might
be: /dev/sequencenumnber and /dev/bootnumnber I suppose.
unix_sequencenumber() system call, which returns a number that increases
by 1 every time it is called, starting from 0 after reboot.
unix_bootnumber() system call, which reports the number of times that the
system has been booted.