@property
    def in_waiting(self):
        #~ s = fcntl.ioctl(self.fd, termios.FIONREAD, TIOCM_zero_str)
        s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)
        return struct.unpack('I', s)[0]

    # select based implementation, proved to work on many systems
Get the gid for a given group name. If no group given,
dataset/ETHPy150Open pyserial/pyserial/serial/serialposix.py/Serial.in_waiting--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/get_gid