Esempio n. 1
0
 def flags(self, flags):
     """Set file descriptor's flags (fcntl.F_SETFL)"""
     fcntl.fcntl(self.fd, fcntl.F_SETFL, int(flags))
Esempio n. 2
0
 def flags(self, flags):
     """Set file descriptor's flags (fcntl.F_SETFL)"""
     fcntl.fcntl(self.fd, fcntl.F_SETFL, int(flags))
Esempio n. 3
0
 def flags(self):
     """Get file descriptor's flags (fcntl.F_GETFL)"""
     return int(fcntl.fcntl(self.fd, fcntl.F_GETFL))
Esempio n. 4
0
 def flags(self):
     """Get file descriptor's flags (fcntl.F_GETFL)"""
     return int(fcntl.fcntl(self.fd, fcntl.F_GETFL))