Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Today at 12:05 p.m. CEST
GitLab will be temporarily unavailable due to brief maintenance.
Show more breadcrumbs
dCache
cta
Commits
a4444353
Commit
a4444353
authored
25 years ago
by
Olof Barring
Committed by
Steven Murray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update information. Add paragraph about getconfent_r()
parent
ef1d0bf1
No related branches found
Branches containing commit
Tags
v0.0-85
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mediachanger/castorrmc/common/getconfent.man
+55
-8
55 additions, 8 deletions
mediachanger/castorrmc/common/getconfent.man
with
55 additions
and
8 deletions
mediachanger/castorrmc/common/getconfent.man
+
55
−
8
View file @
a4444353
.\" @(#)getconfent.man 1.1 CERN CN-SW/DC Frederic Hemmer 08/10/91
.\" $Id: getconfent.man,v 1.2 1999/07/20 15:47:46 obarring Exp $
.\" $Log: getconfent.man,v $
.\" Revision 1.2 1999/07/20 15:47:46 obarring
.\" Update information. Add paragraph about getconfent_r()
.\"
.\" Copyright (C) 1990,1991 by CERN/CN/SW/DC
.\" All rights reserved
.\"
.TH GETCONFENT l "08/10/91"
.SH NAME
getconfent \- Get configuration entry
getconfent
, getconfent_r
\- Get configuration entry
.SH SYNOPSIS
.nf
.LP
.B char * getconfent(category, name, flags)
.B char \(**category;
.B char \(**name;
.B int flags;
.BI "char * getconfent ("
.br
.BI " const char *" category ,
.br
.BI " const char *" name ,
.br
.BI " int " flags );
.PP
.BI "char * getconfent_r ("
.br
.BI " const char *" category ,
.br
.BI " const char *" name ,
.br
.BI " int " flags ,
.br
.BI " char *" buffer ,
.br
.BI " int " bufsiz );
.fi
.IX "getconfent function" "" "\fLget\fP \(em configuration entry"
.SH DESCRIPTION
...
...
@@ -22,9 +41,26 @@ get the
entry from the configuration file.
Every entry in the configuration file is categorized. The
.I category
parameter is its specifier.
parameter is its specifier. The
.B getconfent_r(\|)
function is a re-entrant version of
.B getconfent(\|)
using the passed
.I buffer
parameter instead of an internal static buffer.
.PP
If threads are created usint the
.B Cthread_crate(\|)
interface, it is not mandatory to call
.B getconfent_r(\|)
in order to assure thread-safe code. In that case
.B getconfent(\|)
calls the re-entrant version internally using a buffer allocated
in thread local storage.
.SH "RETURN VALUE"
.B getconfent(\|)
and
.B getconfent_r(\|)
return NULL if the entry is not found. Otherwise,
it returns the matched entry.
If
...
...
@@ -32,5 +68,16 @@ If
is not null, the return value is a pointer to the full string matched
in the configuration file. Otherwise, only the pointer to the first
blank separated token is returned.
.SH "ERRORS"
.PP
If the
.B getconfent(\|), getconfent_r(\|)
function fail,
.B serrno
may be set to one of the following values:
.TP
.B SENOCONFIG
configuration file not found.
.SH "SEE ALSO"
.BR shift.conf
.BR shift.conf,
.BR Cthread_create(l)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment