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