Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
887e4e23
Commit
887e4e23
authored
10 years ago
by
Nicola Joly
Committed by
Morris Jette
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add configure checks for faccessat/eacess
parent
ea31431e
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
config.h.in
+6
-0
6 additions, 0 deletions
config.h.in
configure
+2
-0
2 additions, 0 deletions
configure
configure.ac
+2
-0
2 additions, 0 deletions
configure.ac
src/slurmd/slurmstepd/task.c
+3
-5
3 additions, 5 deletions
src/slurmd/slurmstepd/task.c
with
13 additions
and
5 deletions
config.h.in
+
6
−
0
View file @
887e4e23
...
...
@@ -112,12 +112,18 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `eaccess' function. */
#undef HAVE_EACCESS
/* Define to 1 if you have the <errno.h> header file. */
#undef HAVE_ERRNO_H
/* Define to 1 if function EVP_MD_CTX_cleanup exists. */
#undef HAVE_EVP_MD_CTX_CLEANUP
/* Define to 1 if you have the `faccessat' function. */
#undef HAVE_FACCESSAT
/* Define to 1 if you have the `fdatasync' function. */
#undef HAVE_FDATASYNC
...
...
This diff is collapsed.
Click to expand it.
configure
+
2
−
0
View file @
887e4e23
...
...
@@ -19510,6 +19510,8 @@ for ac_func in \
cfmakeraw \
setresuid \
get_current_dir_name \
faccessat \
eaccess \
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
2
−
0
View file @
887e4e23
...
...
@@ -201,6 +201,8 @@ AC_CHECK_FUNCS( \
cfmakeraw \
setresuid \
get_current_dir_name \
faccessat \
eaccess \
)
AC_CHECK_DECLS([hstrerror, strsignal, sys_siglist])
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmstepd/task.c
+
3
−
5
View file @
887e4e23
...
...
@@ -539,11 +539,9 @@ _make_tmpdir(stepd_step_rec_t *job)
* still work with older systems we include this check.
*/
#if defined(__FreeBSD__)
#define __GLIBC__ (1)
#define __GLIBC_PREREQ(a,b) (1)
#endif
#if defined __GLIBC__ && __GLIBC_PREREQ(2, 4)
#if defined(HAVE_FACCESSAT)
else
if
(
faccessat
(
AT_FDCWD
,
tmpdir
,
X_OK
|
W_OK
,
AT_EACCESS
))
#elif defined(HAVE_EACCESS)
else
if
(
eaccess
(
tmpdir
,
X_OK
|
W_OK
))
/* check permissions */
#else
else
if
(
euidaccess
(
tmpdir
,
X_OK
|
W_OK
))
...
...
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