Mercurial > hg > xemacs-beta
comparison src/device.h @ 259:11cf20601dec r20-5b28
Import from CVS: tag r20-5b28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:23:02 +0200 |
parents | 83b3d10dcba9 |
children | b2472a1930f2 |
comparison
equal
deleted
inserted
replaced
258:58424f6abf56 | 259:11cf20601dec |
---|---|
207 #ifdef HAVE_UNIXOID_EVENT_LOOP | 207 #ifdef HAVE_UNIXOID_EVENT_LOOP |
208 /* holds some data necessary for SIGIO control. Perhaps this should | 208 /* holds some data necessary for SIGIO control. Perhaps this should |
209 be inside of device_data; but it is used for both TTY's and X | 209 be inside of device_data; but it is used for both TTY's and X |
210 device. Perhaps it should be conditionalized on SIGIO; but | 210 device. Perhaps it should be conditionalized on SIGIO; but |
211 this requires including syssignal.h and systty.h. */ | 211 this requires including syssignal.h and systty.h. */ |
212 int old_sigio_flag; | |
213 int old_fcntl_owner; | 212 int old_fcntl_owner; |
214 unsigned int sigio_enabled :1; | |
215 #endif | 213 #endif |
216 }; | 214 }; |
217 | 215 |
218 DECLARE_LRECORD (device, struct device); | 216 DECLARE_LRECORD (device, struct device); |
219 #define XDEVICE(x) XRECORD (x, device, struct device) | 217 #define XDEVICE(x) XRECORD (x, device, struct device) |
316 #define DEVICE_CANON_CONNECTION(d) ((d)->canon_connection) | 314 #define DEVICE_CANON_CONNECTION(d) ((d)->canon_connection) |
317 #define DEVICE_CONSOLE(d) ((d)->console) | 315 #define DEVICE_CONSOLE(d) ((d)->console) |
318 #define DEVICE_BAUD_RATE(d) ((d)->baud_rate) | 316 #define DEVICE_BAUD_RATE(d) ((d)->baud_rate) |
319 #define DEVICE_INFD(d) ((d)->infd) | 317 #define DEVICE_INFD(d) ((d)->infd) |
320 #define DEVICE_OUTFD(d) ((d)->outfd) | 318 #define DEVICE_OUTFD(d) ((d)->outfd) |
321 #define DEVICE_OLD_SIGIO_FLAG(d) ((d)->old_sigio_flag) | |
322 #define DEVICE_OLD_FCNTL_OWNER(d) ((d)->old_fcntl_owner) | 319 #define DEVICE_OLD_FCNTL_OWNER(d) ((d)->old_fcntl_owner) |
323 #define DEVICE_ON_CONSOLE_P(d) ((d)->on_console_p) | 320 #define DEVICE_ON_CONSOLE_P(d) ((d)->on_console_p) |
324 #define DEVICE_CONNECTED_TO_NAS_P(d) ((d)->connected_to_nas_p) | 321 #define DEVICE_CONNECTED_TO_NAS_P(d) ((d)->connected_to_nas_p) |
325 | 322 |
326 #define LOCK_DEVICE(d) do { (d)->locked = 1; } while (0) | 323 #define LOCK_DEVICE(d) do { (d)->locked = 1; } while (0) |