[TUHS] looking for a quote

Theodore Ts'o tytso at mit.edu
Fri Dec 8 02:24:48 AEST 2017


On Thu, Dec 07, 2017 at 11:50:24AM +0000, Ralph Corderoy wrote:
> Hi Larry,
> 
> > I *much* prefer sbuf.st_size than whatever.size, the former is
> > instantly a stat structure, the later is a "whatever".
> 
> It's awful.  :-)
> st.st_size `stutters' and that jars when reading in my head.
> If st.size isn't clear from context, then stbuf.size probably is.
> Ditto ar_hdr->uid versus hdr->ar_uid.

The reason why it's useful is that it's much more likely to find
relevant lines of code by using "grep st_size *.[ch]".  If you grep
for "size", there will be way too many false matches.

    	    	       	      	       - Ted



More information about the TUHS mailing list