Lines 208-214
xf86InstallSIGIOHandler(int fd, void (*f) (int, void *), void *closure)
Link Here
|
208 |
} |
208 |
} |
209 |
} |
209 |
} |
210 |
#endif |
210 |
#endif |
211 |
#ifdef I_SETSIG /* System V Streams - used on Solaris for input devices */ |
211 |
#ifdef HAVE_ISASTREAM /* System V Streams - used on Solaris for input devices */ |
212 |
if (!installed && isastream(fd)) { |
212 |
if (!installed && isastream(fd)) { |
213 |
if (ioctl(fd, I_SETSIG, S_INPUT | S_ERROR | S_HANGUP) == -1) { |
213 |
if (ioctl(fd, I_SETSIG, S_INPUT | S_ERROR | S_HANGUP) == -1) { |
214 |
xf86Msg(X_WARNING, "fcntl(%d, I_SETSIG): %s\n", |
214 |
xf86Msg(X_WARNING, "fcntl(%d, I_SETSIG): %s\n", |
Lines 279-285
xf86RemoveSIGIOHandler(int fd)
Link Here
|
279 |
#ifdef O_ASYNC |
279 |
#ifdef O_ASYNC |
280 |
fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_ASYNC); |
280 |
fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) & ~O_ASYNC); |
281 |
#endif |
281 |
#endif |
282 |
#ifdef I_SETSIG |
282 |
#ifdef HAVE_ISASTREAM |
283 |
if (isastream(fd)) { |
283 |
if (isastream(fd)) { |
284 |
if (ioctl(fd, I_SETSIG, 0) == -1) { |
284 |
if (ioctl(fd, I_SETSIG, 0) == -1) { |
285 |
xf86Msg(X_WARNING, "fcntl(%d, I_SETSIG, 0): %s\n", |
285 |
xf86Msg(X_WARNING, "fcntl(%d, I_SETSIG, 0): %s\n", |