Annotation of mstools/h/process.h, revision 1.1

1.1     ! root        1: /***
        !             2: *process.h - definition and declarations for process control functions
        !             3: *
        !             4: *      Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
        !             5: *
        !             6: *Purpose:
        !             7: *      This file defines the modeflag values for spawnxx calls.
        !             8: *      Only P_WAIT and P_OVERLAY are currently implemented on MS-DOS.
        !             9: *      Also contains the function argument declarations for all
        !            10: *      process control related routines.
        !            11: *
        !            12: ****/
        !            13: 
        !            14: #ifndef _INC_PROCESS
        !            15: 
        !            16: #ifdef __cplusplus
        !            17: extern "C" {
        !            18: #endif
        !            19: 
        !            20: 
        !            21: #if (_MSC_VER <= 600)
        !            22: #define __cdecl _cdecl
        !            23: #endif
        !            24: 
        !            25: /* modeflag values for _spawnxx routines */
        !            26: 
        !            27: #ifndef _MT
        !            28: extern int _p_overlay;
        !            29: #endif
        !            30: 
        !            31: #define _P_WAIT        0
        !            32: #define _P_NOWAIT      1
        !            33: #ifdef _MT
        !            34: #define _P_OVERLAY     2
        !            35: #else
        !            36: #define _P_OVERLAY     _p_overlay
        !            37: #endif
        !            38: #define _OLD_P_OVERLAY 2
        !            39: #define _P_NOWAITO     3
        !            40: #define _P_DETACH      4
        !            41: 
        !            42: 
        !            43: /* action codes used with _cwait() */
        !            44: 
        !            45: #define _WAIT_CHILD     0
        !            46: #define _WAIT_GRANDCHILD 1
        !            47: 
        !            48: 
        !            49: /* function prototypes */
        !            50: 
        !            51: #ifdef _MT
        !            52: unsigned long  _beginthread (void (*) (void *),
        !            53:        unsigned, void *);
        !            54: void _endthread(void);
        !            55: #endif
        !            56: void abort(void);
        !            57: void _cexit(void);
        !            58: void _c_exit(void);
        !            59: int _cwait(int *, int, int);
        !            60: int _execl(const char *, const char *, ...);
        !            61: int _execle(const char *, const char *, ...);
        !            62: int _execlp(const char *, const char *, ...);
        !            63: int _execlpe(const char *, const char *, ...);
        !            64: int _execv(const char *, const char * const *);
        !            65: int _execve(const char *, const char * const *, const char * const *);
        !            66: int _execvp(const char *, const char * const *);
        !            67: int _execvpe(const char *, const char * const *, const char * const *);
        !            68: void exit(int);
        !            69: void _exit(int);
        !            70: int _getpid(void);
        !            71: int _spawnl(int, const char *, const char *, ...);
        !            72: int _spawnle(int, const char *, const char *, ...);
        !            73: int _spawnlp(int, const char *, const char *, ...);
        !            74: int _spawnlpe(int, const char *, const char *, ...);
        !            75: int _spawnv(int, const char *, const char * const *);
        !            76: int _spawnve(int, const char *, const char * const *,
        !            77:        const char * const *);
        !            78: int _spawnvp(int, const char *, const char * const *);
        !            79: int _spawnvpe(int, const char *, const char * const *,
        !            80:        const char * const *);
        !            81: int system(const char *);
        !            82: int _wait(int *);
        !            83: int _loaddll(char *);
        !            84: int _unloaddll(int);
        !            85: int (* _getdllprocaddr(int, char *, int))();
        !            86: 
        !            87: #if !__STDC__
        !            88: /* Non-ANSI names for compatibility */
        !            89: 
        !            90: #define P_WAIT         _P_WAIT
        !            91: #define P_NOWAIT       _P_NOWAIT
        !            92: #define P_OVERLAY      _P_OVERLAY
        !            93: #define OLD_P_OVERLAY  _OLD_P_OVERLAY
        !            94: #define P_NOWAITO      _P_NOWAITO
        !            95: #define P_DETACH       _P_DETACH
        !            96: 
        !            97: #define WAIT_CHILD     _WAIT_CHILD
        !            98: #define WAIT_GRANDCHILD _WAIT_GRANDCHILD
        !            99: 
        !           100: #define cwait   _cwait
        !           101: #define execl   _execl
        !           102: #define execle  _execle
        !           103: #define execlp  _execlp
        !           104: #define execlpe  _execlpe
        !           105: #define execv   _execv
        !           106: #define execve  _execve
        !           107: #define execvp  _execvp
        !           108: #define execvpe  _execvpe
        !           109: #define getpid  _getpid
        !           110: #define spawnl  _spawnl
        !           111: #define spawnle  _spawnle
        !           112: #define spawnlp  _spawnlp
        !           113: #define spawnlpe _spawnlpe
        !           114: #define spawnv  _spawnv
        !           115: #define spawnve  _spawnve
        !           116: #define spawnvp  _spawnvp
        !           117: #define spawnvpe _spawnvpe
        !           118: #define wait    _wait
        !           119: 
        !           120: #endif
        !           121: 
        !           122: #ifdef __cplusplus
        !           123: }
        !           124: #endif
        !           125: 
        !           126: #define _INC_PROCESS
        !           127: #endif /* _INC_PROCESS */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.