[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 1

defssys Subroutine


Initializes the SRCsubsys structure with default values.


System Resource Controller Library (libsrc.a)


#include <sys/srcobj.h>
#include <spc.h>
void defssys(SRCSubsystem)
struct SRCsubsys *SRCSubsystem;


The defssys subroutine initializes the SRCsubsys structure of the /usr/include/sys/srcobj.h file with the following default values:

Field Value
display SRCYES
multi SRCNO
waittime TIMELIMIT
priority 20
action ONCE
standerr /dev/console
standin /dev/console
standout /dev/console

All other numeric fields are set to 0, and all other alphabetic fields are set to an empty string.

This function must be called to initialize the SRCsubsys structure before an application program uses this structure to add records to the subsystem object class.


SRCSubsystem Points to the SRCsubsys structure.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The addssys subroutine.

Defining Your Subsystem to the SRC, List of SRC Subroutines, List of SRC Object-Definition Commands, System Resource Controller (SRC) Overview for Programmers in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.

[ Previous | Next | Contents | Glossary | Home | Search ]