mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Changes for BeOS, QNX and long long, by Chris Herborth.
This commit is contained in:
parent
1a8791e0b8
commit
bcc207484a
12 changed files with 132 additions and 14 deletions
|
@ -51,6 +51,13 @@ static PyObject *
|
|||
mkpwent(p)
|
||||
struct passwd *p;
|
||||
{
|
||||
#ifdef __BEOS__
|
||||
/* For faking the GECOS field. - [cjh] */
|
||||
char *be_user = NULL;
|
||||
|
||||
be_user = getenv( "USER" );
|
||||
#endif
|
||||
|
||||
return Py_BuildValue(
|
||||
"(ssllsss)",
|
||||
p->pw_name,
|
||||
|
@ -64,7 +71,12 @@ mkpwent(p)
|
|||
(long)p->pw_uid,
|
||||
(long)p->pw_gid,
|
||||
#endif
|
||||
#ifdef __BEOS__
|
||||
/* BeOS doesn't have a GECOS field, oddly enough. - [cjh] */
|
||||
be_user ? be_user : "baron",
|
||||
#else
|
||||
p->pw_gecos,
|
||||
#endif
|
||||
p->pw_dir,
|
||||
p->pw_shell);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue