]> granicus.if.org Git - python/commit
Added support for getlogin(); does *not* use getlogin_r() where
authorFred Drake <fdrake@acm.org>
Tue, 14 Dec 1999 21:25:03 +0000 (21:25 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 14 Dec 1999 21:25:03 +0000 (21:25 +0000)
commit12c6e2d4978e4fdca8262bafeecd5e63eef23c1e
tree7cf7a3da903551414a14838c493d2aa683c78559
parentf581db15a38a7f4a75f295069a5ea4c1c89a6144
Added support for getlogin(); does *not* use getlogin_r() where
available since the interface is poorly defined on at least one major
platform (Solaris).

Moved table of constant names for fpathconf() & pathconf() into the
conditional that defines the conv_path_confname() helper; Mark Hammond
reported that defining the table when none of the constants were
defined causes the compiler to complain (won't allow 0-length array,
imagine that!).

In posix_fpathconf(), use conv_path_confname() as the O& conversion
function, instead of the conv_confname() helper, which has the wrong
signature (posix_pathconf() already used the right thing).
Modules/posixmodule.c