Print this page
Bring back LX zones.
*** 26,35 ****
--- 26,37 ----
#ifndef _SYS_PTMS_H
#define _SYS_PTMS_H
+ #pragma ident "%Z%%M% %I% %E% SMI"
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
*** 124,133 ****
--- 126,141 ----
#else
#define DDBG(a, b)
#define DDBGP(a, b)
#endif
+ typedef struct __ptmptsopencb_arg *ptmptsopencb_arg_t;
+ typedef struct ptmptsopencb {
+ boolean_t (*ppocb_func)(ptmptsopencb_arg_t);
+ ptmptsopencb_arg_t ppocb_arg;
+ } ptmptsopencb_t;
+
#endif /* _KERNEL */
typedef struct pt_own {
uid_t pto_ruid;
gid_t pto_rgid;
*** 155,164 ****
--- 163,185 ----
#define UNLKPT (('P'<<8)|2) /* unlock master/slave pair */
#define PTSSTTY (('P'<<8)|3) /* set tty flag */
#define ZONEPT (('P'<<8)|4) /* set zone of master/slave pair */
#define OWNERPT (('P'<<8)|5) /* set owner/group for slave device */
+ #ifdef _KERNEL
+ /*
+ * kernel ioctl commands
+ *
+ * PTMPTSOPENCB: Returns a callback function pointer and opaque argument.
+ * The return value of the callback function when it's invoked
+ * with the opaque argument passed to it will indicate if the
+ * pts slave device is currently open.
+ */
+ #define PTMPTSOPENCB (('P'<<8)|6) /* check if the slave is open */
+
+ #endif /* _KERNEL */
+
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PTMS_H */