Main Page | Modules | Files | Functions | Code Elements | Data Structures | Deprecated

ss/ss_const.h

Go to the documentation of this file.
00001 /*==============================================================================
00002                 Copyright (c) 2003-2005 UGS Corporation
00003                    Unpublished - All Rights Reserved
00004  ==============================================================================*/
00005 
00012 /*  */
00013 
00014 #ifndef SS_CONST_H
00015 #define SS_CONST_H
00016 
00017 #include <unidefs.h>
00018 
00019 #ifndef UNX
00020     #include <signal.h>
00021 #else
00022     #include <sys/signal.h>
00023 #endif
00024 
00025 #include <ss/libss_exports.h>
00026 
00041 #define SS_EIM_CONTEXT                  1
00042 #define SS_USER_CONTEXT                 2
00043 
00049 #define SS_NUM_MTYPES                   3
00050 
00058 #define SS_WNT_MACHINE                  0
00059 #define SS_VMS_MACHINE                  1
00060 #define SS_UNIX_MACHINE                 2
00061 
00062 #define SS_VALID_MTYPE(a) ( (a >= 0) && (a < SS_NUM_MTYPES) )
00063 
00064 #ifdef VMS
00065     #define SS_MACHINE_TYPE             SS_VMS_MACHINE
00066 #endif
00067 
00068 #ifdef UNX
00069     #define SS_MACHINE_TYPE             SS_UNIX_MACHINE
00070 #endif
00071 
00072 #ifdef WNT
00073     #define SS_MACHINE_TYPE             SS_WNT_MACHINE
00074 #endif
00075 
00082 #define SS_ANYPROTO                     0
00083 #define SS_DECNET                       1
00084 #define SS_TCPIP                        2
00085 
00091 #define SS_BACKGROUND                   1
00092 #define SS_FOREGROUND                   2
00093 #define SS_DETACHED                     3
00094 #define SS_DETACHED2                    4
00095 #define SS_CHAINED                      5
00096 
00104 #define SS_NOTSTOPPED                   0
00105 
00107 #define SS_EXITED                       1
00108 
00110 #define SS_SIGNALLED                    2
00111 
00118 #ifdef VMS
00119     #define SS_EXIT_STAT_OK             1
00120 #else
00121     #define SS_EXIT_STAT_OK             0
00122 #endif
00123 
00129 #define SS_IPCCRT                       1
00130 #define SS_IPCATT                       2
00131 #define SS_IPCNET                       4
00132 #define SS_IPCACCEPT                    8
00133 
00139 #define SS_ENABLED                      1
00140 #define SS_DISABLED                     2
00141 
00147 #define SS_NIPC_HEADER_LONGS            1
00148 #define SS_NIPC_MAXMSGLEN               0x10000  /* 64 k */
00149 
00155 #define SS_NO_ACCESS                    16
00156 #define SS_NO_EXIST                     07// Can't assign 08. Compilation error.
00157 #define SS_READ                         04
00158 #define SS_WRITE                        02
00159 #define SS_EXECUTE                      01
00160 #define SS_EXISTS                       00
00161 
00167 #define SS_MSG_WAIT                     1
00168 #define SS_MSG_NOWAIT                   2
00169 #define SS_MSG_NOTIFY                   4
00170 #define SS_MSG_NETHDR                   8
00171 
00177 #define SS_NATIVE                       0
00178 #define SS_SERVER                       1
00179 #define SS_UGFM                         2
00180 
00186 #define SS_FILE                         1
00187 #define SS_DIRECTORY                    2
00188 
00194 #define SS_NOFILE                       0x0
00195 #define SS_OPEN                         0x1
00196 #define SS_CLOSED                       0x2
00197 #define SS_ERROR                        0x4
00198 #define SS_DELETED                      0x8
00199 #define SS_NODIR                        0x10
00200 
00206 #define SS_RDONLY                       01
00207 #define SS_WRONLY                       02
00208 #define SS_RDWRITE                      03
00209 #define SS_APPEND                       04
00210 
00216 #ifdef VMS
00217     #define SS_ALL_PERMISSIONS_DMODE    07777
00218     #define SS_DEF_FMODE                06644
00219     #define SS_DEF_DMODE                07755
00220     #define SS_NO_WORLD_ACCESS_FMODE    06640
00221     #define SS_NO_WORLD_ACCESS_DMODE    07750
00222     #define SS_SYS_BIT                  01000
00223 #else
00224     #define SS_ALL_PERMISSIONS_DMODE    0777
00225     #define SS_DEF_FMODE                0644
00226     #define SS_DEF_DMODE                0755
00227     #define SS_NO_WORLD_ACCESS_FMODE    0640
00228     #define SS_NO_WORLD_ACCESS_DMODE    0750
00229     #define SS_SYS_BIT                  0
00230 #endif
00231 
00237 #define SS_TEXT                         010000
00238 #define SS_BINARY                       020000
00239 #define SS_TRANSLATE                    040000
00240 
00243 #define SS_OBJECT                       0
00244 
00249 #define SS_VOID                         0
00250 #define SS_CHAR                         1
00251 #define SS_WCHAR                        2
00252 #define SS_BYTE                         3
00253 #define SS_SHORT                        4
00254 #define SS_LONG                         5
00255 #define SS_FLOAT                        6
00256 #define SS_DOUBLE                       7
00257 #define SS_NUM_TYPES                    8
00258 
00261 #define SS_MAXMSGLEN                    1024
00262 
00264 #define SS_MAXPATHLEN                   256
00265 
00267 #define SS_MAXHOSTLEN                   80
00268 
00272 #define SS_MAX_NO_CHAR                  4096
00273 
00275 #define SS_MAXLLEN                      (SS_MAX_NO_CHAR + 3)
00276 
00278 #define SS_MAX_NUM_FILES                100
00279 
00281 #define SS_MAXPIDSTR                    (SS_MAXPATHLEN + SS_MAXHOSTLEN + 2)
00282 
00284 #define SS_USERLEN                      80
00285 
00287 #define SS_MAX_ENV_LEN                  255
00288 
00290 #define GMT_ZONE                        "GMT_TIME_ZONE"
00291 
00296 #ifdef UNX
00297     #define SS_SIGMAIL                  SIGUSR1
00298     #define SS_SIGCLD                   SIGCLD
00299 #else
00300     #define SS_SIGCLD                   18
00301 #endif
00302 
00308 #define SS_SIGHUP                       SIGHUP
00309 #define SS_SIGINT                       SIGINT
00310 #define SS_SIGILL                       SIGILL
00311 #define SS_SIGTRAP                      SIGTRAP
00312 #define SS_SIGFPE                       SIGFPE
00313 #define SS_SIGBUS                       SIGBUS
00314 #define SS_SIGSEGV                      SIGSEGV
00315 #define SS_SIGTERM                      SIGTERM
00316 #ifdef WNT
00317     #define SS_SIGQUIT                  SIGINT
00318     #define SS_SIGKILL                  SIGINT
00319 #else
00320     #define SS_SIGQUIT                  SIGQUIT
00321     #define SS_SIGKILL                  SIGKILL
00322 #endif
00323 
00329 #ifdef WNT
00330     #define SS_ACCESS_REPLACE_FOR_USER  (1)
00331     #define SS_ACCESS_ADD               (2)
00332     #define SS_ACCESS_REPLACE_ALL       (3)
00333 #endif
00334 
00338 #include <ss/libss_undef.h>
00339 
00340 #endif