...input, active low Refer to your printer manual for the meaning of the signals. Note that undocumented bits may also be set, depending on your printer. int ioctl(int fd , LPRESET…