HPlogo MPE/iX Intrinsics Reference Manual > Chapter 6 Command Definitions (FLUSHLOG-GETUSERMODE)

GETPRIVMODE

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Dynamically enters privileged mode. Privileged mode (PM) capability is required.


CAUTION: Normal operating system checks and limitations are bypassed in privileged mode (PM). It is possible for a PM program to destroy file integrity, including the operating system software itself. Hewlett-Packard will investigate and attempt to resolve problems resulting from the use of PM code. This service, which is not provided under the standard service contract, is available on a time and materials billing basis. Hewlett-Packard will not support, correct, or attend to any modification of the operating system software.

Syntax



  GETPRIVMODE;

Operation Notes


After a successful call to GETPRIVMODE, the program remains in privileged mode until a call to GETUSERMODE or the program exits the current procedure. (A procedure refers to a Pascal procedure or function, a C function, a Fortran subprogram, an SPL procedure, or a COBOL program). Any procedures called while in privileged mode will execute in privileged mode. When the procedure that called GETPRIVMODE exits, the previous privilege level is restored.

Condition Codes


CCE (2)Request granted. The program was in nonprivileged mode at the time of the intrinsic call.
CCG (0)Request granted. The program was already in privileged mode at the time of the intrinsic call.
CCL (1)Not returned.

Related Information


IntrinsicsGETUSERMODE
Manuals




GETPRIORITY


GETPROCID