* configure.in, dln.c, file.c, intern.h, missing.h (eaccess): use
system routine if provided. fixed: [ruby-core:07195] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
06f4b438fb
commit
a26039acbc
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jan 25 22:29:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in, dln.c, file.c, intern.h, missing.h (eaccess): use
|
||||||
|
system routine if provided. fixed: [ruby-core:07195]
|
||||||
|
|
||||||
Sun Jan 22 23:27:13 2006 Go Noguchi <gonoguti@yahoo.co.jp>
|
Sun Jan 22 23:27:13 2006 Go Noguchi <gonoguti@yahoo.co.jp>
|
||||||
|
|
||||||
* lib/test/unit/autorunner.rb (process_args): ignore arguments after
|
* lib/test/unit/autorunner.rb (process_args): ignore arguments after
|
||||||
|
@ -498,7 +498,7 @@ AC_FUNC_MEMCMP
|
|||||||
AC_REPLACE_FUNCS(dup2 memmove strcasecmp strncasecmp strerror strftime\
|
AC_REPLACE_FUNCS(dup2 memmove strcasecmp strncasecmp strerror strftime\
|
||||||
strchr strstr strtoul crypt flock\
|
strchr strstr strtoul crypt flock\
|
||||||
isnan finite isinf hypot acosh erf)
|
isnan finite isinf hypot acosh erf)
|
||||||
AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd\
|
AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd eaccess\
|
||||||
truncate chsize times utimes fcntl lockf lstat link symlink readlink\
|
truncate chsize times utimes fcntl lockf lstat link symlink readlink\
|
||||||
setitimer setruid seteuid setreuid setresuid setproctitle socketpair\
|
setitimer setruid seteuid setreuid setresuid setproctitle socketpair\
|
||||||
setrgid setegid setregid setresgid issetugid pause lchown lchmod\
|
setrgid setegid setregid setresgid issetugid pause lchown lchmod\
|
||||||
|
2
dln.c
2
dln.c
@ -89,8 +89,6 @@ char *getenv();
|
|||||||
# include <image.h>
|
# include <image.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int eaccess(const char *, int);
|
|
||||||
|
|
||||||
#ifndef NO_DLN_LOAD
|
#ifndef NO_DLN_LOAD
|
||||||
|
|
||||||
#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(_AIX) && !defined(__APPLE__) && !defined(_UNICOSMP)
|
#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(_AIX) && !defined(__APPLE__) && !defined(_UNICOSMP)
|
||||||
|
2
file.c
2
file.c
@ -818,6 +818,7 @@ group_member(GETGROUPS_T gid)
|
|||||||
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
|
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_EACCESS
|
||||||
int
|
int
|
||||||
eaccess(const char *path, int mode)
|
eaccess(const char *path, int mode)
|
||||||
{
|
{
|
||||||
@ -857,6 +858,7 @@ eaccess(const char *path, int mode)
|
|||||||
return access(path, mode);
|
return access(path, mode);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
1
intern.h
1
intern.h
@ -282,7 +282,6 @@ VALUE rb_thread_local_aset(VALUE, ID, VALUE);
|
|||||||
void rb_thread_atfork(void);
|
void rb_thread_atfork(void);
|
||||||
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
|
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
|
||||||
/* file.c */
|
/* file.c */
|
||||||
int eaccess(const char*, int);
|
|
||||||
VALUE rb_file_s_expand_path(int, VALUE *);
|
VALUE rb_file_s_expand_path(int, VALUE *);
|
||||||
VALUE rb_file_expand_path(VALUE, VALUE);
|
VALUE rb_file_expand_path(VALUE, VALUE);
|
||||||
void rb_file_const(const char*, VALUE);
|
void rb_file_const(const char*, VALUE);
|
||||||
|
@ -39,6 +39,10 @@ extern char *crypt(const char *, const char *);
|
|||||||
extern int dup2(int, int);
|
extern int dup2(int, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_EACCESS
|
||||||
|
extern int eaccess(const char*, int);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef HAVE_FINITE
|
#ifndef HAVE_FINITE
|
||||||
extern int finite(double);
|
extern int finite(double);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user