Print this page
Bring back LX zones.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/ptms.h
          +++ new/usr/src/uts/common/sys/ptms.h
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21  /*
  22   22   * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   */
  24   24  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  25   25  /*        All Rights Reserved   */
  26   26  
  27   27  
  28   28  #ifndef _SYS_PTMS_H
  29   29  #define _SYS_PTMS_H
  30   30  
       31 +#pragma ident   "%Z%%M% %I%     %E% SMI"
       32 +
  31   33  #ifdef  __cplusplus
  32   34  extern "C" {
  33   35  #endif
  34   36  
  35   37  #ifdef _KERNEL
  36   38  
  37   39  /*
  38   40   * Structures and definitions supporting the pseudo terminal
  39   41   * drivers. This structure is private and should not be used by any
  40   42   * applications.
↓ open down ↓ 78 lines elided ↑ open up ↑
 119  121  #ifdef DEBUG
 120  122  extern void ptms_log(char *, uint_t);
 121  123  extern void ptms_logp(char *, uintptr_t);
 122  124  #define DDBG(a, b) ptms_log(a, b)
 123  125  #define DDBGP(a, b) ptms_logp(a, b)
 124  126  #else
 125  127  #define DDBG(a, b)
 126  128  #define DDBGP(a, b)
 127  129  #endif
 128  130  
      131 +typedef struct __ptmptsopencb_arg *ptmptsopencb_arg_t;
      132 +typedef struct ptmptsopencb {
      133 +        boolean_t               (*ppocb_func)(ptmptsopencb_arg_t);
      134 +        ptmptsopencb_arg_t      ppocb_arg;
      135 +} ptmptsopencb_t;
      136 +
 129  137  #endif /* _KERNEL */
 130  138  
 131  139  typedef struct pt_own {
 132  140          uid_t   pto_ruid;
 133  141          gid_t   pto_rgid;
 134  142  } pt_own_t;
 135  143  
 136  144  /*
 137  145   * ioctl commands
 138  146   *
↓ open down ↓ 10 lines elided ↑ open up ↑
 149  157   *          zone entry.
 150  158   *
 151  159   * PT_OWNER: Sets uid and gid for slave device.  It returns 0 on success.
 152  160   *
 153  161   */
 154  162  #define ISPTM           (('P'<<8)|1)    /* query for master */
 155  163  #define UNLKPT          (('P'<<8)|2)    /* unlock master/slave pair */
 156  164  #define PTSSTTY         (('P'<<8)|3)    /* set tty flag */
 157  165  #define ZONEPT          (('P'<<8)|4)    /* set zone of master/slave pair */
 158  166  #define OWNERPT         (('P'<<8)|5)    /* set owner/group for slave device */
      167 +
      168 +#ifdef _KERNEL
      169 +/*
      170 + * kernel ioctl commands
      171 + *
      172 + * PTMPTSOPENCB: Returns a callback function pointer and opaque argument.
      173 + *            The return value of the callback function when it's invoked
      174 + *            with the opaque argument passed to it will indicate if the
      175 + *            pts slave device is currently open.
      176 + */
      177 +#define PTMPTSOPENCB    (('P'<<8)|6)    /* check if the slave is open */
      178 +
      179 +#endif /* _KERNEL */
 159  180  
 160  181  #ifdef  __cplusplus
 161  182  }
 162  183  #endif
 163  184  
 164  185  #endif  /* _SYS_PTMS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX