1 Dec 2008 02:27
Re: Query about uname.
Rob Landley <rob <at> landley.net>
2008-12-01 01:27:27 GMT
2008-12-01 01:27:27 GMT
On Saturday 29 November 2008 07:08:43 Michael Kerrisk wrote: > [CC+= linux-msan <at> , which is where man-pages discussions really belong...] I wonder what linux-doc is for? > > Posix doesn't specify init or mount either. "Posix doesn't specify" > > doesn't forbid something else from specifying it. > > I think you somewhat misunderstand "unspecified". For a wise > application writer, this means: avoid relying on specific behaviors > here if you want to write portable and future-proof programs. Perhaps I'm strange in trying to treat Linux as a platform I want to write software for. I'm all for future-proofing, but after a binary's compiled there's not a whole lot you can do about it, and if they're happy to break binary compatibility all bets are off anyway. > >> As noted in the first para of the description, > >> the fields of the structure are null-terminated, which, in the typical > >> case, makes it quite possible to use them without knowing their > >> (maximum) lengths. > > > > Use a field, yes. Iterate though the fields/find the next field, no. > > (This strikes me as a somewhat unusual requirement in the context of > uname()) Implementing "uname -a", or having uname's command line argument parsing that treats "snrvm" as a series of fields in order.(Continue reading)
RSS Feed