home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v1 / text0030.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.1 KB

  1. Date: Thu, 18 Jul 85 20:29:59 EDT
  2. From: Keith Bostic <seismo!keith>
  3. To: /dev/null
  4. Subject: Re: getopt(3) (again...)
  5. Cc: pegasus!hansen, ut-sally!std-unix
  6.  
  7. > Actually, the recently posted rewrite by Rich Salz is closer to AT&T's code
  8. > than is yours and his is more accurate.
  9.  
  10. You're right, I apologize.  I totally missed the USG use of opterr and have
  11. updated my code appropriately.  I am currently trying to get 4.3 to use
  12. the correct code.
  13.  
  14. > Actually this is important in some applications which do not already use
  15. > stdio and do not wish to load in the 10k or so overhead that using stdio
  16. > incurs. AT&T's code does not use stdio in getopt(3).
  17.  
  18. Not true.  The size difference between:
  19.  
  20.     main() { puts("foo"); }
  21. and
  22.     main() { write(0,"foo",3); }
  23.  
  24. is exactly zero.
  25.  
  26. > In fact, why go with yours or Rich's version at all and not use the
  27. > public-domain version that AT&T published at January's Uni-Forum in Dallas?
  28. > That would have gotten rid of all thought of incompatiblity!
  29.  
  30. Amen, I didn't know about it in January or I would have said something when
  31. Berkeley asked to use mine.
  32.  
  33. --keith
  34.  
  35.  
  36. Volume-Number: Volume 1, Number 31
  37.  
  38.