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
dd991f8d
Commit
dd991f8d
authored
11 years ago
by
Steven Murray
Committed by
Steven Murray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed strerror_r_wrapper() prototype
parent
568100ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mediachanger/castorrmc/common/strerror_r_wrapper.cpp
+1
-1
1 addition, 1 deletion
mediachanger/castorrmc/common/strerror_r_wrapper.cpp
mediachanger/castorrmc/h/strerror_r_wrapper.h
+14
-1
14 additions, 1 deletion
mediachanger/castorrmc/h/strerror_r_wrapper.h
with
15 additions
and
2 deletions
mediachanger/castorrmc/common/strerror_r_wrapper.cpp
+
1
−
1
View file @
dd991f8d
...
...
@@ -38,6 +38,6 @@
/*******************************************************************************
* strerror_r_wrapper
******************************************************************************/
extern
"C"
int
strerror_r_wrapper
(
int
errnum
,
char
*
buf
,
unsigned
in
t
buflen
)
{
extern
"C"
int
strerror_r_wrapper
(
int
errnum
,
char
*
buf
,
size_
t
buflen
)
{
return
strerror_r
(
errnum
,
buf
,
buflen
);
}
This diff is collapsed.
Click to expand it.
mediachanger/castorrmc/h/strerror_r_wrapper.h
+
14
−
1
View file @
dd991f8d
...
...
@@ -27,6 +27,19 @@
#include
<stddef.h>
/* The following EXTERN_C marco has been intentionally copied from */
/* h/osdep.h instead of just including h/osdep.h. The reason for this is */
/* this header file must include the minimum number of header files because */
/* the implementation file common/strerror_r_wrapper.cpp will undefine */
/* _GNU_SOURCE and define _XOPEN_SOURCE as being 600. */
/* */
/* Macros for externalization (UNIX) (J.-D.Durand) */
#if defined(__cplusplus)
#define EXTERN_C extern "C"
#else
#define EXTERN_C extern
#endif
/**
* This function wraps the XSI compliant version of strerror_r() and therefore
* writes the string representation of the specified error number to the
...
...
@@ -36,6 +49,6 @@
* @param buf The buffer.
* @param buflen The length of the buffer.
*/
int
strerror_r_wrapper
(
int
errnum
,
char
*
buf
,
size_t
buflen
);
EXTERN_C
int
strerror_r_wrapper
(
int
errnum
,
char
*
buf
,
size_t
buflen
);
#endif
/* H_STRERROR_R_WRAPPER_H */
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