Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath
Commits
bf6ab281
Commit
bf6ab281
authored
Sep 13, 2013
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add _xstat and _lxstat
parent
af53ea31
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
configure.ac
configure.ac
+2
-0
longpath_tbl_functions.h
src/include/longpath/longpath_tbl_functions.h
+8
-0
longpath.c
src/longpath.c
+21
-0
No files found.
configure.ac
View file @
bf6ab281
...
...
@@ -106,6 +106,8 @@ _xstat
lutimes
mkostemp
mkostemps
_xstat
_lxstat
)
...
...
src/include/longpath/longpath_tbl_functions.h
View file @
bf6ab281
...
...
@@ -73,6 +73,14 @@ FUNCTION(int, fsetxattr, int, const char *, const void *, size_t, int)
#endif
#endif
/* solaris legacy */
#ifdef HAVE__XSTAT
FUNCTION
(
int
,
_xstat
,
int
,
const
char
*
,
struct
stat
*
)
#endif
#ifdef HAVE__LXSTAT
FUNCTION
(
int
,
_lxstat
,
int
,
const
char
*
,
struct
stat
*
)
#endif
#if defined(INTERPOSE) && defined(TRACE)
FUNCTION
(
void
*
,
dlopen
,
const
char
*
,
int
mode
)
#endif
src/longpath.c
View file @
bf6ab281
...
...
@@ -870,11 +870,32 @@ int
our
(
stat
)(
const
char
*
name
,
struct
stat
*
sb
)
{
return
our
(
fstatat
)(
AT_FDCWD
,
name
,
sb
,
0
);
}
#ifdef HAVE__XSTAT
int
our
(
_xstat
)(
int
ver
,
const
char
*
name
,
struct
stat
*
sb
)
{
if
(
ver
!=
_STAT_VER
)
{
errno
=
EINVAL
;
return
-
1
;
}
return
our
(
fstatat
)(
AT_FDCWD
,
name
,
sb
,
0
);
}
#endif
int
our
(
lstat
)(
const
char
*
name
,
struct
stat
*
sb
)
{
return
our
(
fstatat
)(
AT_FDCWD
,
name
,
sb
,
AT_SYMLINK_NOFOLLOW
);
}
#ifdef HAVE__XSTAT
int
our
(
_lxstat
)(
int
ver
,
const
char
*
name
,
struct
stat
*
sb
)
{
if
(
ver
!=
_STAT_VER
)
{
errno
=
EINVAL
;
return
-
1
;
}
return
our
(
fstatat
)(
AT_FDCWD
,
name
,
sb
,
AT_SYMLINK_NOFOLLOW
);
}
#endif
#if !defined(_LP64)
int
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment