3 /* #include <sys/select.h> */
6 * This symbol, if defined, indicates that the ioctl() routine is
7 * available to set I/O characteristics
12 * This symbol, if defined, indicates that the routine utime() is
13 * available to update the access and modification times of files.
15 #define HAS_UTIME /**/
20 #define HAS_WAITPID_RUNTIME (_emx_env & 0x200)
23 * This symbol, if defined, indicates that the getpwnam() and
24 * getpwuid() routines are available to get password entries.
25 * The getpwent() has a separate definition, HAS_GETPWENT.
30 * This symbol, if defined, indicates that the getgrnam() and
31 * getgrgid() routines are available to get group entries.
32 * The getgrent() has a separate definition, HAS_GETGRENT.
35 #define HAS_GETGRENT /* fake */
36 #define HAS_SETGRENT /* fake */
37 #define HAS_ENDGRENT /* fake */
40 * This symbol, if defined, indicates that the program should
41 * use the routine my_binmode(FILE *fp, char iotype, int mode) to insure
42 * that a file is in "binary" mode -- that is, that no translation
43 * of bytes occurs on read or write operations.
48 * This symbol holds the type used to declare buffers for information
49 * returned by stat(). It's usually just struct stat. It may be necessary
50 * to include <sys/stat.h> and <sys/types.h> to get any typedef'ed
53 #define Stat_t struct stat
56 * This symbol is defined if this system has a stat structure declaring
59 #define USE_STAT_RDEV /**/
62 * This symbol, if defined, indicates that error messages should be
63 * should be generated in a format that allows the use of the Acme
64 * GUI/editor's autofind feature.
69 * This symbol, if defined, contains a "magic" string which may be used
70 * as the first line of a Perl program designed to be executed directly
71 * by name, instead of the standard Unix #!. If ALTERNATE_SHEBANG
72 * begins with a character other then #, then Perl will only treat
73 * it as a command line if if finds the string "perl" in the first
74 * word; otherwise it's treated as the first line of code in the script.
75 * (IOW, Perl won't hand off to another interpreter via an alternate
76 * shebang sequence that might be legal Perl code.)
78 #define ALTERNATE_SHEBANG "extproc "
81 # define SIGABRT SIGILL
84 # define SIGILL 6 /* blech */
86 #define ABORT() kill(PerlProc_getpid(),SIGABRT);
88 #define BIT_BUCKET "/dev/nul" /* Will this work? */
90 /* Apparently TCPIPV4 defines may be included even with only IAK present */
92 #if !defined(NO_TCPIPV4) && !defined(TCPIPV4)
94 # define TCPIPV4_FORCED /* Just in case */
97 #if defined(I_SYS_UN) && !defined(TCPIPV4)
98 /* It is not working without TCPIPV4 defined. */
102 #define do_spawn(a) os2_do_spawn(a)
103 #define do_aspawn(a,b,c) os2_do_aspawn((a),(b),(c))
105 void Perl_OS2_init(char **);
106 void Perl_OS2_init3(char **envp, void **excH, int flags);
107 void Perl_OS2_term(void **excH, int exitstatus, int flags);
109 /* The code without INIT3 hideously puts env inside: */
111 /* These ones should be in the same block as PERL_SYS_TERM() */
114 # define PERL_SYS_INIT3(argcp, argvp, envp) \
116 _response(argcp, argvp); \
117 _wildcard(argcp, argvp); \
118 Perl_OS2_init3(*envp, xreg, 0)
120 # define PERL_SYS_INIT(argcp, argvp) { \
122 _response(argcp, argvp); \
123 _wildcard(argcp, argvp); \
124 Perl_OS2_init3(NULL, xreg, 0)
126 #else /* Compiling embedded Perl or Perl extension */
128 # define PERL_SYS_INIT3(argcp, argvp, envp) \
130 Perl_OS2_init3(*envp, xreg, 0)
131 # define PERL_SYS_INIT(argcp, argvp) { \
133 Perl_OS2_init3(NULL, xreg, 0)
136 #define FORCE_EMX_DEINIT_EXIT 1
137 #define FORCE_EMX_DEINIT_CRT_TERM 2
138 #define FORCE_EMX_DEINIT_RUN_ATEXIT 4
140 #define PERL_SYS_TERM2(xreg,flags) \
141 Perl_OS2_term(xreg, 0, flags); \
144 #define PERL_SYS_TERM1(xreg) \
145 Perl_OS2_term(xreg, 0, FORCE_EMX_DEINIT_RUN_ATEXIT)
147 /* This one should come in pair with PERL_SYS_INIT() and in the same block */
148 #define PERL_SYS_TERM() \
149 PERL_SYS_TERM1(xreg); \
153 # define PERL_CALLCONV _System
156 /* #define PERL_SYS_TERM() STMT_START { \
157 if (Perl_HAB_set) WinTerminate(Perl_hab); } STMT_END */
159 #define dXSUB_SYS OS2_XS_init()
162 /* # define HAS_FORK */
163 /* # define HIDEMYMALLOC */
164 /* # define PERL_SBRK_VIA_MALLOC */ /* gets off-page sbrk... */
165 #else /* !PERL_IS_AOUT */
166 # ifndef PERL_FOR_X2P
168 # define USE_PERL_SBRK
173 # define SYSTEM_ALLOC(a) sys_alloc(a)
175 void *sys_alloc(int size);
177 #endif /* !PERL_IS_AOUT */
178 #if !defined(PERL_CORE) && !defined(PerlIO) /* a2p */
182 /* os2ish is used from a2p/a2p.h without pTHX/pTHX_ first being
183 * defined. Hack around this to get us to compile.
194 #define TMPPATH1 "plXXXXXX"
195 extern char *tmppath;
196 PerlIO *my_syspopen(pTHX_ char *cmd, char *mode);
197 /* Cannot prototype with I32 at this point. */
198 int my_syspclose(PerlIO *f);
199 FILE *my_tmpfile (void);
200 char *my_tmpnam (char *);
201 int my_mkdir (__const__ char *, long);
202 int my_rmdir (__const__ char *);
203 struct passwd *my_getpwent (void);
204 void my_setpwent (void);
205 void my_endpwent (void);
206 char *gcvt_os2(double value, int digits, char *buffer);
208 struct group *getgrent (void);
209 void setgrent (void);
210 void endgrent (void);
212 struct passwd *my_getpwuid (uid_t);
213 struct passwd *my_getpwnam (__const__ char *);
216 #define L_tmpnam MAXPATHLEN
218 #define tmpfile my_tmpfile
219 #define tmpnam my_tmpnam
220 #define isatty _isterm
222 #define srand srandom
223 #define strtoll _strtoll
224 #define strtoull _strtoull
227 * fwrite1() should be a routine with the same calling sequence as fwrite(),
228 * but which outputs all of the bytes requested as a single stream (unlike
229 * fwrite() itself, which on some systems outputs several distinct records
230 * if the number_of_items parameter is >1).
232 #define fwrite1 fwrite
234 #define my_getenv(var) getenv(var)
235 #define flock my_flock
236 #define rmdir my_rmdir
237 #define mkdir my_mkdir
238 #define setpwent my_setpwent
239 #define getpwent my_getpwent
240 #define endpwent my_endpwent
241 #define getpwuid my_getpwuid
242 #define getpwnam my_getpwnam
244 void *emx_calloc (size_t, size_t);
245 void emx_free (void *);
246 void *emx_malloc (size_t);
247 void *emx_realloc (void *, size_t);
249 /*****************************************************************************/
251 #include <stdlib.h> /* before the following definitions */
252 #include <unistd.h> /* before the following definitions */
254 #include <sys/stat.h>
256 #define chdir _chdir2
257 #define getcwd _getcwd2
259 /* This guy is needed for quick stdstd */
261 #if defined(USE_STDIO_PTR) && defined(STDIO_PTR_LVALUE) && defined(STDIO_CNT_LVALUE)
262 /* Perl uses ungetc only with successful return */
263 # define ungetc(c,fp) \
264 (FILE_ptr(fp) > FILE_base(fp) && c == (int)*(FILE_ptr(fp) - 1) \
265 ? (--FILE_ptr(fp), ++FILE_cnt(fp), (int)c) : ungetc(c,fp))
268 #define PERLIO_IS_BINMODE_FD(fd) _PERLIO_IS_BINMODE_FD(fd)
278 #include <emx/io.h> /* for _fd_flags() prototype */
281 _PERLIO_IS_BINMODE_FD(int fd)
283 int *pflags = _fd_flags(fd);
285 return pflags && (*pflags) & O_BINARY;
288 /* ctermid is missing from emx0.9d */
289 char *ctermid(char *s);
291 #define OP_BINARY O_BINARY
293 #define OS2_STAT_HACK 1
296 #define Stat(fname,bufptr) os2_stat((fname),(bufptr))
297 #define Fstat(fd,bufptr) fstat((fd),(bufptr))
298 #define Fflush(fp) fflush(fp)
299 #define Mkdir(path,mode) mkdir((path),(mode))
303 #define S_IFBLK 0120000
304 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK)
308 #define Stat(fname,bufptr) stat((fname),(bufptr))
309 #define Fstat(fd,bufptr) fstat((fd),(bufptr))
310 #define Fflush(fp) fflush(fp)
311 #define Mkdir(path,mode) mkdir((path),(mode))
315 /* With SD386 it is impossible to debug register variables. */
316 #if !defined(PERL_IS_AOUT) && defined(DEBUGGING) && !defined(register)
320 /* Our private OS/2 specific data. */
322 typedef struct OS2_Perl_data {
327 unsigned long severity;
328 unsigned long phmq; /* Handle to message queue */
329 unsigned long phmq_refcnt;
330 unsigned long phmq_servers;
331 unsigned long initial_mode; /* VIO etc. mode we were started in */
334 extern OS2_Perl_data_t OS2_Perl_data;
336 #define Perl_hab ((HAB)OS2_Perl_data.phab)
337 #define Perl_rc (OS2_Perl_data.rc)
338 #define Perl_severity (OS2_Perl_data.severity)
339 #define errno_isOS2 12345678
340 #define errno_isOS2_set 12345679
341 #define OS2_Perl_flags (OS2_Perl_data.flags)
342 #define Perl_HAB_set_f 1
343 #define Perl_HAB_set (OS2_Perl_flags & Perl_HAB_set_f)
344 #define set_Perl_HAB_f (OS2_Perl_flags |= Perl_HAB_set_f)
345 #define set_Perl_HAB(h) (set_Perl_HAB_f, Perl_hab = h)
346 #define _obtain_Perl_HAB (init_PMWIN_entries(), \
347 Perl_hab = (*PMWIN_entries.Initialize)(0), \
348 set_Perl_HAB_f, Perl_hab)
349 #define perl_hab_GET() (Perl_HAB_set ? Perl_hab : _obtain_Perl_HAB)
350 #define Acquire_hab() perl_hab_GET()
351 #define Perl_hmq ((HMQ)OS2_Perl_data.phmq)
352 #define Perl_hmq_refcnt (OS2_Perl_data.phmq_refcnt)
353 #define Perl_hmq_servers (OS2_Perl_data.phmq_servers)
354 #define Perl_os2_initial_mode (OS2_Perl_data.initial_mode)
356 unsigned long Perl_hab_GET();
357 unsigned long Perl_Register_MQ(int serve);
358 void Perl_Deregister_MQ(int serve);
359 int Perl_Serve_Messages(int force);
360 /* Cannot prototype with I32 at this point. */
361 int Perl_Process_Messages(int force, long *cntp);
362 char *os2_execname(pTHX);
365 struct PMWIN_entries_t {
366 unsigned long (*Initialize)( unsigned long fsOptions );
367 unsigned long (*CreateMsgQueue)(unsigned long hab, long cmsg);
368 int (*DestroyMsgQueue)(unsigned long hmq);
369 int (*PeekMsg)(unsigned long hab, struct _QMSG *pqmsg,
370 unsigned long hwndFilter, unsigned long msgFilterFirst,
371 unsigned long msgFilterLast, unsigned long fl);
372 int (*GetMsg)(unsigned long hab, struct _QMSG *pqmsg,
373 unsigned long hwndFilter, unsigned long msgFilterFirst,
374 unsigned long msgFilterLast);
375 void * (*DispatchMsg)(unsigned long hab, struct _QMSG *pqmsg);
376 unsigned long (*GetLastError)(unsigned long hab);
377 unsigned long (*CancelShutdown)(unsigned long hmq, unsigned long fCancelAlways);
379 extern struct PMWIN_entries_t PMWIN_entries;
380 void init_PMWIN_entries(void);
382 #define perl_hmq_GET(serve) Perl_Register_MQ(serve)
383 #define perl_hmq_UNSET(serve) Perl_Deregister_MQ(serve)
385 #define OS2_XS_init() (*OS2_Perl_data.xs_init)(aTHX)
387 #if _EMX_CRT_REV_ >= 60
388 # define os2_setsyserrno(rc) (Perl_rc = rc, errno = errno_isOS2_set, \
391 # define os2_setsyserrno(rc) (Perl_rc = rc, errno = errno_isOS2)
394 /* The expressions below return true on error. */
395 /* INCL_DOSERRORS needed. rc should be declared outside. */
396 #define CheckOSError(expr) (!(rc = (expr)) ? 0 : (FillOSError(rc), 1))
397 /* INCL_WINERRORS needed. */
398 #define CheckWinError(expr) ((expr) ? 0: (FillWinError, 1))
400 /* This form propagates the return value, setting $^E if needed */
401 #define SaveWinError(expr) ((expr) ? : (FillWinError, 0))
403 /* This form propagates the return value, dieing with $^E if needed */
404 #define SaveCroakWinError(expr,die,name1,name2) \
405 ((expr) ? : (CroakWinError(die,name1 name2), 0))
407 #define FillOSError(rc) (os2_setsyserrno(rc), \
408 Perl_severity = SEVERITY_ERROR)
410 #define WinError_2_Perl_rc \
411 ( init_PMWIN_entries(), \
412 Perl_rc=(*PMWIN_entries.GetLastError)(perl_hab_GET()) )
414 /* Calling WinGetLastError() resets the error code of the current thread.
415 Since for some Win* API return value 0 is normal, one needs to call
416 this before calling them to distinguish normal and anomalous returns. */
417 /*#define ResetWinError() WinError_2_Perl_rc */
419 /* At this moment init_PMWIN_entries() should be a nop (WinInitialize should
420 be called already, right?), so we do not risk stepping over our own error */
421 #define FillWinError ( WinError_2_Perl_rc, \
422 Perl_severity = ERRORIDSEV(Perl_rc), \
423 Perl_rc = ERRORIDERROR(Perl_rc), \
424 os2_setsyserrno(Perl_rc))
426 #define STATIC_FILE_LENGTH 127
428 /* This should match loadOrdinals[] array in os2.c */
429 enum entries_ordinals {
430 ORD_DosQueryExtLibpath,
431 ORD_DosSetExtLibpath,
446 ORD_WinCreateMsgQueue,
447 ORD_WinDestroyMsgQueue,
452 ORD_WinCancelShutdown,
454 ORD_RexxVariablePool,
455 ORD_RexxRegisterFunctionExe,
456 ORD_RexxDeregisterFunction,
458 ORD_PRF32QUERYPROFILESIZE,
459 ORD_PRF32OPENPROFILE,
460 ORD_PRF32CLOSEPROFILE,
461 ORD_PRF32QUERYPROFILE,
463 ORD_PRF32QUERYPROFILEDATA,
464 ORD_PRF32WRITEPROFILEDATA,
466 ORD_WinChangeSwitchEntry,
467 ORD_WinQuerySwitchEntry,
468 ORD_WinQuerySwitchHandle,
469 ORD_WinQuerySwitchList,
470 ORD_WinSwitchToProgram,
471 ORD_WinBeginEnumWindows,
472 ORD_WinEndEnumWindows,
474 ORD_WinGetNextWindow,
476 ORD_WinQueryActiveWindow,
477 ORD_WinQueryClassName,
480 ORD_WinQueryWindowPos,
481 ORD_WinQueryWindowProcess,
482 ORD_WinQueryWindowText,
483 ORD_WinQueryWindowTextLength,
486 ORD_WinSetWindowText,
490 ORD_WinWindowFromPoint,
493 ORD_WinEnableWindowUpdate,
494 ORD_WinIsWindowEnabled,
495 ORD_WinIsWindowShowing,
496 ORD_WinIsWindowVisible,
497 ORD_WinQueryWindowPtr,
498 ORD_WinQueryWindowULong,
499 ORD_WinQueryWindowUShort,
500 ORD_WinSetWindowBits,
502 ORD_WinSetWindowULong,
503 ORD_WinSetWindowUShort,
504 ORD_WinQueryDesktopWindow,
505 ORD_WinSetActiveWindow,
506 ORD_DosQueryModFromEIP,
510 /* RET: return type, AT: argument signature in (), ARGS: should be in () */
511 #define CallORD(ret,o,at,args) (((ret (*)at) loadByOrdinal(o, 1))args)
512 #define DeclFuncByORD(ret,name,o,at,args) \
513 ret name at { return CallORD(ret,o,at,args); }
514 #define DeclVoidFuncByORD(name,o,at,args) \
515 void name at { CallORD(void,o,at,args); }
517 /* These functions return false on error, and save the error info in $^E */
518 #define DeclOSFuncByORD(ret,name,o,at,args) \
519 ret name at { unsigned long rc; return !CheckOSError(CallORD(ret,o,at,args)); }
520 #define DeclWinFuncByORD(ret,name,o,at,args) \
521 ret name at { return SaveWinError(CallORD(ret,o,at,args)); }
523 #define AssignFuncPByORD(p,o) (*(Perl_PFN*)&(p) = (loadByOrdinal(o, 1)))
525 /* This flavor caches the procedure pointer (named as p__Win#name) locally */
526 #define DeclWinFuncByORD_CACHE(ret,name,o,at,args) \
527 DeclWinFuncByORD_CACHE_r(ret,name,o,at,args,0,1)
529 /* This flavor may reset the last error before the call (if ret=0 may be OK) */
530 #define DeclWinFuncByORD_CACHE_resetError(ret,name,o,at,args) \
531 DeclWinFuncByORD_CACHE_r(ret,name,o,at,args,1,1)
533 /* Two flavors below do the same as above, but do not auto-croak */
534 /* This flavor caches the procedure pointer (named as p__Win#name) locally */
535 #define DeclWinFuncByORD_CACHE_survive(ret,name,o,at,args) \
536 DeclWinFuncByORD_CACHE_r(ret,name,o,at,args,0,0)
538 /* This flavor may reset the last error before the call (if ret=0 may be OK) */
539 #define DeclWinFuncByORD_CACHE_resetError_survive(ret,name,o,at,args) \
540 DeclWinFuncByORD_CACHE_r(ret,name,o,at,args,1,0)
542 #define DeclWinFuncByORD_CACHE_r(ret,name,o,at,args,r,die) \
543 static ret (*CAT2(p__Win,name)) at; \
544 static ret name at { \
545 if (!CAT2(p__Win,name)) \
546 AssignFuncPByORD(CAT2(p__Win,name), o); \
547 if (r) ResetWinError(); \
548 return SaveCroakWinError(CAT2(p__Win,name) args, die, "[Win]", STRINGIFY(name)); }
550 /* These flavors additionally assume ORD is name with prepended ORD_Win */
551 #define DeclWinFunc_CACHE(ret,name,at,args) \
552 DeclWinFuncByORD_CACHE(ret,name,CAT2(ORD_Win,name),at,args)
553 #define DeclWinFunc_CACHE_resetError(ret,name,at,args) \
554 DeclWinFuncByORD_CACHE_resetError(ret,name,CAT2(ORD_Win,name),at,args)
555 #define DeclWinFunc_CACHE_survive(ret,name,at,args) \
556 DeclWinFuncByORD_CACHE_survive(ret,name,CAT2(ORD_Win,name),at,args)
557 #define DeclWinFunc_CACHE_resetError_survive(ret,name,at,args) \
558 DeclWinFuncByORD_CACHE_resetError_survive(ret,name,CAT2(ORD_Win,name),at,args)
560 void ResetWinError(void);
561 void CroakWinError(int die, char *name);
563 #define PERLLIB_MANGLE(s, n) perllib_mangle((s), (n))
564 char *perllib_mangle(char *, unsigned int);
566 typedef int (*Perl_PFN)();
567 Perl_PFN loadByOrdinal(enum entries_ordinals ord, int fail);
568 extern const Perl_PFN * const pExtFCN;
569 char *os2error(int rc);
570 int os2_stat(const char *name, struct stat *st);
571 int setpriority(int which, int pid, int val);
572 int getpriority(int which /* ignored */, int pid);
575 int os2_do_spawn(pTHX_ char *cmd);
576 int os2_do_aspawn(pTHX_ SV *really, void **vmark, void **vsp);
581 /* Replacement for syslog.h */
582 # define LOG_EMERG 0 /* system is unusable */
583 # define LOG_ALERT 1 /* action must be taken immediately */
584 # define LOG_CRIT 2 /* critical conditions */
585 # define LOG_ERR 3 /* error conditions */
586 # define LOG_WARNING 4 /* warning conditions */
587 # define LOG_NOTICE 5 /* normal but significant condition */
588 # define LOG_INFO 6 /* informational */
589 # define LOG_DEBUG 7 /* debug-level messages */
591 # define LOG_PRIMASK 0x007 /* mask to extract priority part (internal) */
592 /* extract priority */
593 # define LOG_PRI(p) ((p) & LOG_PRIMASK)
594 # define LOG_MAKEPRI(fac, pri) (((fac) << 3) | (pri))
597 # define LOG_KERN (0<<3) /* kernel messages */
598 # define LOG_USER (1<<3) /* random user-level messages */
599 # define LOG_MAIL (2<<3) /* mail system */
600 # define LOG_DAEMON (3<<3) /* system daemons */
601 # define LOG_AUTH (4<<3) /* security/authorization messages */
602 # define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */
603 # define LOG_LPR (6<<3) /* line printer subsystem */
604 # define LOG_NEWS (7<<3) /* network news subsystem */
605 # define LOG_UUCP (8<<3) /* UUCP subsystem */
606 # define LOG_CRON (15<<3) /* clock daemon */
607 /* other codes through 15 reserved for system use */
608 # define LOG_LOCAL0 (16<<3) /* reserved for local use */
609 # define LOG_LOCAL1 (17<<3) /* reserved for local use */
610 # define LOG_LOCAL2 (18<<3) /* reserved for local use */
611 # define LOG_LOCAL3 (19<<3) /* reserved for local use */
612 # define LOG_LOCAL4 (20<<3) /* reserved for local use */
613 # define LOG_LOCAL5 (21<<3) /* reserved for local use */
614 # define LOG_LOCAL6 (22<<3) /* reserved for local use */
615 # define LOG_LOCAL7 (23<<3) /* reserved for local use */
617 # define LOG_NFACILITIES 24 /* current number of facilities */
618 # define LOG_FACMASK 0x03f8 /* mask to extract facility part */
619 /* facility of pri */
620 # define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
623 * arguments to setlogmask.
625 # define LOG_MASK(pri) (1 << (pri)) /* mask for one priority */
626 # define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) /* all priorities through pri */
629 * Option flags for openlog.
631 * LOG_ODELAY no longer does anything.
632 * LOG_NDELAY is the inverse of what it used to be.
634 # define LOG_PID 0x01 /* log the pid with each message */
635 # define LOG_CONS 0x02 /* log on the console if errors in sending */
636 # define LOG_ODELAY 0x04 /* delay open until first syslog() (default) */
637 # define LOG_NDELAY 0x08 /* don't delay open */
638 # define LOG_NOWAIT 0x10 /* don't wait for console forks: DEPRECATED */
639 # define LOG_PERROR 0x20 /* log to stderr as well */
643 /* ************************************************************ */
644 #define Dos32QuerySysState DosQuerySysState
645 #define QuerySysState(flags, pid, buf, bufsz) \
646 Dos32QuerySysState(flags, 0, pid, 0, buf, bufsz)
648 #define QSS_PROCESS 1
650 #define QSS_SEMAPHORES 2
651 #define QSS_FILE 8 /* Buggy until fixpack18 */
652 #define QSS_SHARED 16
656 APIRET APIENTRY Dos32QuerySysState(ULONG func,ULONG arg1,ULONG pid,
657 ULONG _res_,PVOID buf,ULONG bufsz);
662 } QGLOBAL, *PQGLOBAL;
673 UCHAR _reserved1_; /* padding to ULONG */
674 USHORT _reserved2_; /* padding to ULONG */
675 } QTHREAD, *PQTHREAD;
690 typedef struct qfile {
718 } QPROCESS, *PQPROCESS;
720 typedef struct sema {
737 } QSEMSTRUC, *PQSEMSTRUC;
742 } QSEMOWNER32, *PQSEMOWNER32;
747 PVOID semrecs; /* array of associated sema's */
751 USHORT _reserved_; /* padding to ULONG */
752 } QSEMSMUX32, *PQSEMSMUX32;
760 } QSEMEV32, *PQSEMEV32;
769 USHORT _reserved_; /* padding to ULONG */
770 } QSEMMUX32, *PQSEMMUX32;
772 typedef struct semstr32 {
777 } QSEMSTRUC32, *PQSEMSTRUC32;
779 typedef struct shrmem {
785 } QSHRMEM, *PQSHRMEM;
787 typedef struct module {
796 } QMODULE, *PQMODULE;
802 PQSEMSTRUC32 sem32data;
807 } QTOPLEVEL, *PQTOPLEVEL;
808 /* ************************************************************ */
810 PQTOPLEVEL get_sysinfo(ULONG pid, ULONG flags);