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