[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Base Operating System and Extensions Technical Reference, Volume 2

trcstart Subroutine

Purpose

Starts a trace session.

Library

Runtime Services Library (librts.a)

Syntax

int trcstart(Argument)
char *Argument;

Description

The trcstart subroutine starts a trace session. The Argument parameter points to a character string containing the flags invoked with the trace daemon. To specify that a generic trace session is to be started, include the -g flag.

Parameters

Argument Character pointer to a string holding valid arguments from the trace daemon.

Return Values

If the trace daemon is started successfully, the channel number is returned. Channel number 0 is returned if a generic trace was not requested. If the trace daemon is not started successfully, a value of -1 is returned.

Implementation Specifics

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

Files

/dev/trace Trace special file.

Related Information

The trcon subroutine.

The trace daemon.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]