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