home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / att / 2162 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!yale!news.wesleyan.edu!eagle.wesleyan.edu!triemer
  2. Newsgroups: comp.sys.att
  3. Subject: 3b2 getpwnam...
  4. Message-ID: <1992Sep4.223124.1@eagle.wesleyan.edu>
  5. From: triemer@eagle.wesleyan.edu
  6. Date: 4 Sep 92 22:31:24 EDT
  7. Organization: Wesleyan University
  8. Nntp-Posting-Host: eagle.wesleyan.edu
  9. Lines: 23
  10.  
  11. I am compiling GNU shellutils on my 3b2 - I have finally hit a brick wall after
  12. making all kinds of mods to the date files and other files.  (Fairly trivial,
  13. but necessary for the broken compiler).  I have run into 3 files that have
  14. warning errors.
  15. 2 of the errors comes after...
  16.  
  17.    struct passwd *pwd = getpwnam(argv[optind]);
  18.  
  19. (* This is a problem because getpwnam seems to return an int.. *)
  20.  
  21. The other error comes from
  22.    register struct passwd *pwd;
  23.    pw = getpwuid(uid);
  24.  
  25. After spending an hour or so, tracking down this, I determined that
  26. getpwnam, and getpwuid seem to return int, well, perhaps not, it might very
  27. well return anything but passwd *.  Anyway, I'd like to figure out the 
  28. problem, because I apparently am missing something.  How do I find out what
  29. getpwuid() is defined as... its defined in libc.a, but how do I view what it
  30. returns?
  31.  
  32. -Thomas Riemer
  33.  
  34.