#if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT)
s |OP* |doform |NN CV *cv|NN GV *gv|NN OP *retop
-s |int |emulate_eaccess|NN const char* path|Mode_t mode
# if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
sR |int |dooneliner |NN const char *cmd|NN const char *filename
# endif
#if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT)
#ifdef PERL_CORE
#define doform S_doform
-#define emulate_eaccess S_emulate_eaccess
#endif
# if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
#ifdef PERL_CORE
#if defined(PERL_IN_PP_SYS_C) || defined(PERL_DECL_PROT)
#ifdef PERL_CORE
#define doform(a,b,c) S_doform(aTHX_ a,b,c)
-#define emulate_eaccess(a,b) S_emulate_eaccess(aTHX_ a,b)
#endif
# if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
#ifdef PERL_CORE
return res;
}
-# define PERL_EFF_ACCESS(p,f) (emulate_eaccess((p), (f)))
-#else
-/* With it or without it: anyway you get a warning: either that
- it is unused, or it is declared static and never defined.
- */
-STATIC int
-S_emulate_eaccess(pTHX_ const char* path, Mode_t mode)
-{
- PERL_UNUSED_ARG(path);
- PERL_UNUSED_ARG(mode);
- Perl_croak(aTHX_ "switching effective uid is not implemented");
- /*NOTREACHED*/
- return -1;
-}
+# define PERL_EFF_ACCESS(p,f) (emulate_eaccess(aTHX_ (p), (f)))
#endif
PP(pp_backtick)
__attribute__nonnull__(pTHX_2)
__attribute__nonnull__(pTHX_3);
-STATIC int S_emulate_eaccess(pTHX_ const char* path, Mode_t mode)
- __attribute__nonnull__(pTHX_1);
-
# if !defined(HAS_MKDIR) || !defined(HAS_RMDIR)
STATIC int S_dooneliner(pTHX_ const char *cmd, const char *filename)
__attribute__warn_unused_result__