[#11952] NORETURN — "Nobuyoshi.Nakada" <nobu.nakada@...>

なかだです。

24 messages 2001/01/10
[#11956] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11957] Re: NORETURN — matz@... (Yukihiro Matsumoto) 2001/01/10

まつもと ゆきひろです

[#11958] Re: NORETURN — WATANABE Hirofumi <eban@...> 2001/01/10

わたなべです.

[#11959] CVS branches (Re: Re: NORETURN) — matz@... (Yukihiro Matsumoto) 2001/01/10

[#12087] string#index, gsub, []= のバグ? — Beyond <beyond@...>

18 messages 2001/01/27
[#12091] Re: string#index, gsub, []= のバグ? — matz@... (Yukihiro Matsumoto) 2001/01/27

まつもと ゆきひろです

[ruby-dev:11954] Re: setreuid()

From: WATANABE Hirofumi <eban@...>
Date: 2001-01-10 05:04:53 UTC
List: ruby-dev #11954
わたなべです.

Shugo Maeda <shugo@ruby-lang.org> writes:

:外国の人から、OpenBSD 2.7で、
:
:process.c:939: warning: this program uses setreuid(), which is deprecated.
:process.c:974: warning: this program uses setregid(), which is deprecated.
:
:と言われるというメールをもらったのですが、どうするのが正しいので
:しょう?

perl-5.6.0/hints/openbsd.sh を見ると

# setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions
# in 4.4BSD.  Configure will find these but they are just emulated
# and do not have the same semantics as in 4.3BSD.
d_setregid=$undef
d_setreuid=$undef
d_setrgid=$undef
d_setruid=$undef

となっていて、perl.h には

#ifndef HAS_SETREUID
#  ifdef HAS_SETRESUID
#    define setreuid(r,e) setresuid(r,e,(Uid_t)-1)
#    define HAS_SETREUID
#  endif
#endif
#ifndef HAS_SETREGID
#  ifdef HAS_SETRESGID
#    define setregid(r,e) setresgid(r,e,(Gid_t)-1)
#    define HAS_SETREGID
#  endif
#endif

となっているので setres[ug]id() を使えってことだと思います。
とすると
setres[ug]id
setre[ug]id
setr[ug]id
set[ug]id
の順番であったら使うという変更でいいのかな?

-- 
わたなべひろふみ

In This Thread