home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.28 / text0021.txt < prev    next >
Encoding:
Text File  |  1992-08-17  |  711 b   |  25 lines

  1. Submitted-by: hurtta@cs.Helsinki.FI (Kari E. Hurtta)
  2.  
  3. In article <11394lINNjtc@ftp.UU.NET> richard@aiai.ed.ac.uk (Richard Tobin) wrote:
  4. > Since Sun provide wait4() and waitpid(), they have no excuse for
  5. > not using it in getcwd() (or popen()).
  6.  
  7. getwd() is however recommented - not getcwd().
  8.  
  9. GETCWD(3V)             C LIBRARY FUNCTIONS             GETCWD(3V)
  10.  
  11.  
  12.  
  13. NAME
  14.      getcwd - get pathname of current working directory
  15. <...>
  16. BUGS
  17.      Since this function uses popen() to create a pipe to the pwd
  18.      command,  it  is  slower than getwd() and gives poorer error
  19.      diagnostics.  getcwd() is provided  only  for  compatibility
  20.      with other UNIX operating systems.
  21.  
  22.  
  23. Volume-Number: Volume 28, Number 22
  24.  
  25.