7 @ISA = qw(Exporter DynaLoader);
8 # Items to export into callers namespace by default. Note: do not export
9 # names by default without a very good reason. Use EXPORT_OK instead.
10 # Do not simply export all your public functions/methods/constants.
33 # This AUTOLOAD is used to 'autoload' constants from the constant()
34 # XS function. If a constant is not found then control is passed
35 # to the AUTOLOAD in AutoLoader.
38 ($constname = $AUTOLOAD) =~ s/.*:://;
39 $val = constant($constname, @_ ? $_[0] : 0);
41 if ($! =~ /Invalid/) {
42 $AutoLoader::AUTOLOAD = $AUTOLOAD;
43 goto &AutoLoader::AUTOLOAD;
46 ($pack,$file,$line) = caller;
47 die "Your vendor has not defined OS2::Process macro $constname, used at $file line $line.
51 eval "sub $AUTOLOAD { $val }";
55 bootstrap OS2::Process;
57 # Preloaded methods go here.
59 # Autoload methods go after __END__, and are processed by the autosplit program.
66 OS2::Process - exports constants for system() call on OS2.
71 $pid = system(P_PM+P_BACKGROUND, "epm.exe");
75 the builtin function system() under OS/2 allows an optional first
76 argument which denotes the mode of the process. Note that this argument is
77 recognized only if it is strictly numerical.
79 You can use either one of the process modes:
81 P_WAIT (0) = wait until child terminates (default)
82 P_NOWAIT = do not wait until child terminates
83 P_SESSION = new session
87 and optionally add PM and session option bits:
89 P_DEFAULT (0) = default
90 P_MINIMIZE = minimized
91 P_MAXIMIZE = maximized
92 P_FULLSCREEN = fullscreen (session only)
93 P_WINDOWED = windowed (session only)
95 P_FOREGROUND = foreground (if running in foreground)
96 P_BACKGROUND = background
98 P_NOCLOSE = don't close window on exit (session only)
100 P_QUOTE = quote all arguments
101 P_TILDE = MKS argument passing convention
102 P_UNRELATED = do not kill child when father terminates
106 Andreas Kaiser <ak@ananke.s.bawue.de>.
110 C<spawn*>() system calls.