コード例 #1
0
def fstat(space, fd):
    """Perform a stat system call on the file referenced to by an open
file descriptor."""
    try:
        st = rposix_stat.fstat(fd)
    except OSError, e:
        raise wrap_oserror(space, e)
コード例 #2
0
ファイル: interp_posix.py プロジェクト: abhinavthomas/pypy
def fstat(space, fd):
    """Perform a stat system call on the file referenced to by an open
file descriptor."""
    try:
        st = rposix_stat.fstat(fd)
    except OSError, e:
        raise wrap_oserror(space, e)
コード例 #3
0
 def test_fstat(self):
     stat = rposix_stat.fstat(0)  # stdout
     assert stat.st_mode != 0
コード例 #4
0
 def test_fstat(self):
     stat = rposix_stat.fstat(0)  # stdout
     assert stat.st_mode != 0