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
Show more breadcrumbs
dCache
cta
Commits
a6f57bd7
Commit
a6f57bd7
authored
19 years ago
by
Miguel Coelho dos Santos
Committed by
Steven Murray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added man pages info for getconfent_fromfile, getconfent_multi and getconfent_multi_fromfile.
parent
c36996c5
Branches
Branches containing commit
Tags
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
+68
-4
68 additions, 4 deletions
mediachanger/castorrmc/common/getconfent.man
with
68 additions
and
4 deletions
mediachanger/castorrmc/common/getconfent.man
+
68
−
4
View file @
a6f57bd7
.\" @(#)@(#)$RCSfile: getconfent.man,v $ $Revision: 1.
5
$ $Date: 200
3/10/13 16:00
:1
9
$ CERN IT-PDP/DC Frederic Hemmer
.\" @(#)@(#)$RCSfile: getconfent.man,v $ $Revision: 1.
6
$ $Date: 200
5/05/23 14:51
:1
0
$ CERN IT-PDP/DC Frederic Hemmer
.\" Copyright (C) 1990-2000 by CERN/IT/PDP/DC
.\" All rights reserved
.\"
.TH GETCONFENT 3 "$Date: 200
3/10/13 16:00
:1
9
$" CASTOR "Common Library Functions"
.TH GETCONFENT 3 "$Date: 200
5/05/23 14:51
:1
0
$" CASTOR "Common Library Functions"
.SH NAME
getconfent, getconfent_r \- Get configuration entry
.SH SYNOPSIS
...
...
@@ -27,6 +27,44 @@ getconfent, getconfent_r \- Get configuration entry
.BI " char *" buffer ,
.br
.BI " int " bufsiz );
.PP
.BI "int getconfent_multi ("
.br
.BI " const char *" category ,
.br
.BI " const char *" name ,
.br
.BI " int " flags ,
.br
.BI " char ***" result ,
.br
.BI " int **" count );
.PP
.BI "char * getconfent_fromfile ("
.br
.BI " const char *" filename ,
.br
.BI " const char *" category ,
.br
.BI " const char *" name ,
.br
.BI " int " flags );
.PP
.BI "int getconfent_multi_fromfile ("
.br
.BI " const char *" filename ,
.br
.BI " const char *" category ,
.br
.BI " const char *" name ,
.br
.BI " int " flags ,
.br
.BI " char ***" result ,
.br
.BI " int **" count );
.PP
.fi
.IX "getconfent function" "" "\fLget\fP \(em configuration entry"
.SH DESCRIPTION
...
...
@@ -52,11 +90,31 @@ interface, it is not mandatory to call
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"
in thread local storage.
.PP
.B getconfent_multi(\|)
returns the
.I result
in the form of an array associated with a
.I count
of the number of results.
.PP
.B getconfent_fromfile(\|)
and
.B getconfent_multi_fromfile(\|)
preform the same operation as
.B getconfent(\|)
and
.B getconfent_multi(\|)
but reading the information from a file.
.PP
.SH "RETURN VALUE"
.B getconfent(\|)
,
.B getconfent_r(\|)
and
.B getconfent_fromfile(|\)
return NULL if the entry is not found. Otherwise,
it returns the matched entry.
If
...
...
@@ -64,6 +122,12 @@ 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.
.PP
.B getconfent_multi(\|)
and
.B getconfent_multi_fromfile(\|)
return 0 if successful, -1 if failed.
.SH "ERRORS"
.PP
If the
...
...
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