Table of Contents

Name

reqDESC_processor - process a file containing a list of label/refnames and request DESC records from database

Description

reqDESC_processor reads from a file containing a list label/refname pairs. Each time the function is called one line of the file is parsed and a DESC record request is formulated and sent to dbman. The file should be opened before calling this function and closed when finished.

This function is part of librmt.

Syntax

int reqDESC_processor(
FILE *in,
int DBsock,
int *Line,
int verbosity
);

Arguments

in

The pathname of the file to read from.

DBsock

The file descriptor for the connection to dbman.

Line

a variable containing the current line number of the file being processed. This should be initialized to zero before calling this function the first time.

verbosity

Defines the amount of messages to print. This value is passed on to SendRec. A value of 0 produces no messages. See the SendRec manpage for full details on available values.

Return Values

-1 - error, end of input, bad db connection
0 - no record processed
   comment and empty lines return this

1 - record processed

See Also

librmt(3rmt)

Manual page revision

$Id: reqDESC_processor.3,v 1.2 2008/08/22 16:22:16 mcnamer Exp $


Table of Contents