[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


defssys Subroutine

Purpose

Initializes the SRCsubsys structure with default values.

Library

System Resource Controller Library (libsrc.a)

Syntax

#include <sys/srcobj.h>
#include <spc.h>


void defssys( SRCSubsystem)
struct SRCsubsys *SRCSubsystem;

Description

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
contact SRCSOCKET
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.

Parameters


SRCSubsystem Points to the SRCsubsys structure.

Implementation Specifics

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

Related Information

The addssys (addssys Subroutine) subroutine.

Defining Your Subsystem to the SRC, List of SRC Subroutines, System Resource Controller (SRC) Overview for Programmers in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]