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
e370f9f5
Commit
e370f9f5
authored
Sep 17, 2013
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add faccessat() and access()
parent
03a5d439
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
longpath_tbl_functions.h
src/include/longpath/longpath_tbl_functions.h
+3
-0
longpath.c
src/longpath.c
+11
-0
No files found.
src/include/longpath/longpath_tbl_functions.h
View file @
e370f9f5
...
...
@@ -11,6 +11,9 @@ FUNCTION(int, rename, const char *, const char *)
FUNCTION
(
int
,
utimes
,
const
char
*
,
const
struct
timeval
*
)
FUNCTION
(
int
,
utime
,
const
char
*
,
const
struct
utimbuf
*
)
FUNCTION
(
int
,
access
,
const
char
*
,
int
)
FUNCTION
(
int
,
faccessat
,
int
,
const
char
*
,
int
,
int
)
#if defined(HAVE_LUTIMES)
FUNCTION
(
int
,
lutimes
,
const
char
*
,
const
struct
timeval
*
)
#endif
...
...
src/longpath.c
View file @
e370f9f5
...
...
@@ -943,6 +943,17 @@ our64(lstat)(const char *name, struct stat64 *sb) {
}
#endif
/* ACCESS */
int
our
(
faccessat
)(
int
fd
,
const
char
*
name
,
int
amode
,
int
flag
)
{
Xatl
(
real
(
faccessat
),
fd
,
name
,
amode
,
flag
);
}
int
our
(
access
)(
const
char
*
name
,
int
amode
)
{
return
our
(
faccessat
)(
AT_FDCWD
,
name
,
amode
,
0
);
}
/* RMDIR */
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