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
ca1264dd
Commit
ca1264dd
authored
23 years ago
by
Jean-Damien Durand
Committed by
Steven Murray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Document new Cglobals_get() prototype (return code has a meaning)
parent
dd88297a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mediachanger/castorrmc/common/Cglobals.man
+10
-3
10 additions, 3 deletions
mediachanger/castorrmc/common/Cglobals.man
with
10 additions
and
3 deletions
mediachanger/castorrmc/common/Cglobals.man
+
10
−
3
View file @
ca1264dd
.\"
.\" $Id: Cglobals.man,v 1.
1
2001/06/1
0
0
6:54
:5
2
jdurand Exp $
.\" $Id: Cglobals.man,v 1.
2
2001/06/1
2
0
7:49
:5
3
jdurand Exp $
.\"
.TH CGLOBALS "3" "$Date: 2001/06/1
0
0
6:54
:5
2
$" "CASTOR" "Common Library Functions"
.TH CGLOBALS "3" "$Date: 2001/06/1
2
0
7:49
:5
3
$" "CASTOR" "Common Library Functions"
.SH NAME
\fBCglobals\fP \- \fBC\fPASTOR thread-safe \fBglobal\fP variable\fBs\fP interface
.SH SYNOPSIS
...
...
@@ -17,7 +17,7 @@
.RE
.BI ");"
.P
.BI "
void
Cglobals_get(int *" key ", void **" addr ", size_t " size ");"
.BI "
int
Cglobals_get(int *" key ", void **" addr ", size_t " size ");"
.P
.BI "void Cglobals_getTid(int *" Tid ");"
.P
...
...
@@ -123,6 +123,13 @@ bytes length speficied in your previous call to \fBCglobals_get\fP. Because of a
.I key
has then an importance, that's why it is necessary to always declare it with an initial value of -1.
.P
Return code is -1 on error, 0 on success and \fBnot\fP the first call for this
.I
key
, 1 on success and \fBit is\fP the first call for this
.I key.
This allows to distinguish when Cglobals_get() initialize the memory with zeros (return code 1) and not (return code 0).
.P
\fBCglobals_getTid\fP uses the third function address,
.I getTid
, given as an argument to \fBCglobals_init\fP, and will return in
...
...
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