mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* configure.in: checks presence of grp.h and setgroups().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
31094808f9
commit
1fe598da35
3 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,6 @@
|
||||||
Mon Jun 9 13:27:13 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
Mon Jun 9 19:02:33 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* configure.in: checks presence of grp.h and setgroups().
|
||||||
|
|
||||||
* process.c (proc_getgroups, proc_setgroups): raise
|
* process.c (proc_getgroups, proc_setgroups): raise
|
||||||
NotImplementedError unless available. [ruby-talk:73014]
|
NotImplementedError unless available. [ruby-talk:73014]
|
||||||
|
|
|
@ -352,7 +352,7 @@ AC_HEADER_STDC
|
||||||
AC_HEADER_SYS_WAIT
|
AC_HEADER_SYS_WAIT
|
||||||
AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\
|
AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\
|
||||||
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
|
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
|
||||||
syscall.h pwd.h a.out.h utime.h memory.h direct.h sys/resource.h \
|
syscall.h pwd.h grp.h a.out.h utime.h memory.h direct.h sys/resource.h \
|
||||||
sys/mkdev.h sys/utime.h float.h)
|
sys/mkdev.h sys/utime.h float.h)
|
||||||
|
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
@ -376,7 +376,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid syscall chroot fsync\
|
||||||
truncate chsize times utimes fcntl lockf lstat symlink readlink\
|
truncate chsize times utimes fcntl lockf lstat symlink readlink\
|
||||||
setitimer setruid seteuid setreuid setresuid setproctitle\
|
setitimer setruid seteuid setreuid setresuid setproctitle\
|
||||||
setrgid setegid setregid setresgid pause lchown lchmod\
|
setrgid setegid setregid setresgid pause lchown lchmod\
|
||||||
getpgrp setpgrp getpgid setpgid getgroups getpriority getrlimit\
|
getpgrp setpgrp getpgid setpgid getgroups setgroups getpriority getrlimit\
|
||||||
dlopen sigprocmask sigaction _setjmp setsid telldir seekdir fchmod\
|
dlopen sigprocmask sigaction _setjmp setsid telldir seekdir fchmod\
|
||||||
mktime timegm cosh sinh tanh)
|
mktime timegm cosh sinh tanh)
|
||||||
AC_STRUCT_TIMEZONE
|
AC_STRUCT_TIMEZONE
|
||||||
|
|
|
@ -45,7 +45,7 @@ struct timeval rb_time_interval _((VALUE));
|
||||||
#include <sys/times.h>
|
#include <sys/times.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GETGROUPS
|
#ifdef HAVE_GRP_H
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1255,7 +1255,7 @@ proc_getgroups(VALUE obj)
|
||||||
static VALUE
|
static VALUE
|
||||||
proc_setgroups(VALUE obj, VALUE ary)
|
proc_setgroups(VALUE obj, VALUE ary)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GETGROUPS
|
#ifdef HAVE_SETGROUPS
|
||||||
size_t ngroups;
|
size_t ngroups;
|
||||||
gid_t *groups;
|
gid_t *groups;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in a new issue