Home | History | Annotate | Download | only in python2.7

Lines Matching refs:posix

1 """Extended file operations available in POSIX.
60 """File wrapper class that provides extra POSIX file routines."""
100 import posix
102 if not hasattr(posix, 'fdopen'):
105 return posix.fdopen(posix.dup(self._file_.fileno()), self._file_.mode)
108 import posix
110 if not hasattr(posix, 'fdopen'):
113 posix.dup2(self._file_.fileno(), fd)
114 return posix.fdopen(fd, self._file_.mode)