]> granicus.if.org Git - python/commit
posix_fildes(): New helper: run a function that takes a file descriptor
authorFred Drake <fdrake@acm.org>
Mon, 15 Apr 2002 19:40:07 +0000 (19:40 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 15 Apr 2002 19:40:07 +0000 (19:40 +0000)
commit4d1e64bb4606c76770af8e66e699220a3d146631
tree5977714f8d58b8595a0dbd500312fe3658febdf2
parent0157276cf8983270a64b77416d43daa8a12fa661
posix_fildes():  New helper: run a function that takes a file descriptor
    and returns None.  This allows any object that supports the fileno()
    method to be passed as a file descriptor, not just an integer.

posix_fchdir():  New exposed function: implements posix.fchdir().  This
    closes SF feature #536796.

posix_fsync(), posix_fdatasync():  Convert to use posix_fildes() instead
    of posix_int().  This also changes them from METH_VARARGS to METH_O
    functions.

setup_confname_table():  Remove unused variable.  Change to take a module
    rather than a dict to save the resulting table into.

setup_confname_tables():  Change to take a module instead of a dict to
    pass to setup_confname_table().
Modules/posixmodule.c