Main Page | Report this Page
Linux Forum Index  »  Linux Miscellaneous Topics  »  Linux equivalent of: unix_sequencenumber() and...
Page 1 of 1    

Linux equivalent of: unix_sequencenumber() and...

Author Message
Martin Nicholas...
Posted: Tue Jun 30, 2009 6:12 am
Guest
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.

Here's the definitions, taken from: http://cr.yp.to/proto/maildir.html

Quote:
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.
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Fri Nov 27, 2009 10:07 am