home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / cmds / root.3 / usr / include / sys / fcpriocntl.h / fcpriocntl
Text File  |  1998-08-19  |  2KB  |  65 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ifndef _PROC_CLASS_FCPRIOCNTL_H    /* wrapper symbol for kernel use */
  12. #define _PROC_CLASS_FCPRIOCNTL_H    /* subject to change without notice */
  13.  
  14. #ident    "@(#)kern:proc/class/fcpriocntl.h    1.2.2.1"
  15. #ident    "$Header: $"
  16.  
  17. #if defined(__cplusplus)
  18. extern "C" {
  19. #endif
  20.  
  21. /*
  22.  * Fixed class specific structures for the priocntl system call.
  23.  */
  24.  
  25. typedef struct fcparms {
  26.     short    fc_uprilim;    /* user priority limit */
  27.     short    fc_upri;    /* user priority */
  28.     long    fc_timeleft;    /* time-left for this lwp */
  29.     short    fc_cpupri;    /* the assigned cpu priority */
  30.     short    fc_umdpri;    /* the computed user mode priority */
  31. } fcparms_t;
  32.  
  33.  
  34. typedef struct fcinfo {
  35.     short    fc_maxupri;    /* configured limits of user priority range */
  36. } fcinfo_t;
  37.  
  38. #define    FC_NOCHANGE    -1
  39.  
  40. /*
  41.  * The following is used by the dispadmin(1M) command for
  42.  * scheduler administration and is not for general use.
  43.  */
  44.  
  45. typedef struct fcadmin {
  46.     struct fcdpent    *fc_dpents;
  47.     short        fc_ndpents;
  48.     short        fc_cmd;
  49. } fcadmin_t;
  50.  
  51. #define    FC_GETDPSIZE    1
  52. #define    FC_GETDPTBL    2
  53. #define    FC_SETDPTBL    3
  54.  
  55. /* Enhanced Application Compatibility Support */
  56. #define SCO_FC_MIN_PRI  0
  57. /* Enhanced Application Compatibility Support */
  58.  
  59.  
  60. #if defined(__cplusplus)
  61.     }
  62. #endif
  63.  
  64. #endif /* _PROC_CLASS_FCPRIOCNTL_H */
  65.