From: Bernt Christandl <beb () mpe ! mpg ! de>
To: tru64-unix-managers
Subject: du-4.0b and getlogin(2)
Date: Tue, 29 Jul 1997 10:05:22 +0000 [thread overview]
Message-ID: <96078614710615.tru64-unix-managers.marc@archive.invalid> (raw)
Hello managers,
is getlogin(2) broken under du-4.0b???
I have a small c-programm,
#include <unistd.h>
main() {
char *val;
val = getlogin();
if ( val == (char *)NULL ) {
perror("getlogin(2) failed");
} else {
printf("getlogin(2): login name = %s\n", val);
}
}
which runs under du-4.0a and returns the loginname,
while under du-4.0b an error is returned:
getlogin(2) failed: Invalid argument
Obviously i've missed something? What's the problem here?
Thank you!
Bernt Christandl
----------------------------------------------------------------------
- Bernt Christandl / Max Planck Institut - Extraterrestrische Physik -
- D-85740 Garching / Phone: +49/89/3299-3342 / Fax: +49/89/3299-3569 -
- email: beb@mpe.mpg.de -
----------------------------------------------------------------------
reply other threads:[~1997-07-29 10:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox