Skip to content

Commit

Permalink
5.9.1 suidperl
Browse files Browse the repository at this point in the history
Message-Id: <200403182117.i2ILHug513080@milan.maths.usyd.edu.au>

(which variables renamed as requested, plus tweaks to work on platforms
with no ST_NOEXEC)

p4raw-id: //depot/perl@22563
  • Loading branch information
psz2036 authored and nwc10 committed Mar 23, 2004
1 parent 45a2796 commit ae3f3ef
Show file tree
Hide file tree
Showing 5 changed files with 427 additions and 128 deletions.
4 changes: 4 additions & 0 deletions embedvar.h
Expand Up @@ -246,6 +246,7 @@
#define PL_exitlistlen (vTHX->Iexitlistlen)
#define PL_expect (vTHX->Iexpect)
#define PL_fdpid (vTHX->Ifdpid)
#define PL_fdscript (vTHX->Ifdscript)
#define PL_filemode (vTHX->Ifilemode)
#define PL_forkprocess (vTHX->Iforkprocess)
#define PL_formfeed (vTHX->Iformfeed)
Expand Down Expand Up @@ -393,6 +394,7 @@
#define PL_sublex_info (vTHX->Isublex_info)
#define PL_subline (vTHX->Isubline)
#define PL_subname (vTHX->Isubname)
#define PL_suidscript (vTHX->Isuidscript)
#define PL_sv_arenaroot (vTHX->Isv_arenaroot)
#define PL_sv_count (vTHX->Isv_count)
#define PL_sv_no (vTHX->Isv_no)
Expand Down Expand Up @@ -547,6 +549,7 @@
#define PL_Iexitlistlen PL_exitlistlen
#define PL_Iexpect PL_expect
#define PL_Ifdpid PL_fdpid
#define PL_Ifdscript PL_fdscript
#define PL_Ifilemode PL_filemode
#define PL_Iforkprocess PL_forkprocess
#define PL_Iformfeed PL_formfeed
Expand Down Expand Up @@ -694,6 +697,7 @@
#define PL_Isublex_info PL_sublex_info
#define PL_Isubline PL_subline
#define PL_Isubname PL_subname
#define PL_Isuidscript PL_suidscript
#define PL_Isv_arenaroot PL_sv_arenaroot
#define PL_Isv_count PL_sv_count
#define PL_Isv_no PL_sv_no
Expand Down
5 changes: 5 additions & 0 deletions intrpvar.h
Expand Up @@ -530,6 +530,11 @@ PERLVARI(Irehash_seed, UV, 0) /* 582 hash initializer */

PERLVARI(Irehash_seed_set, bool, FALSE) /* 582 hash initialized? */

/* These two variables are needed to preserve 5.8.x bincompat because we can't
change function prototypes of two exported functions. Probably should be
taken out of blead soon, and relevant prototypes changed. */
PERLVARI(Ifdscript, int, -1) /* fd for script */
PERLVARI(Isuidscript, int, -1) /* fd for suid script */
/* New variables must be added to the very end, before this comment,
* for binary compatibility (the offsets of the old members must not change).
* (Don't forget to add your variable also to perl_clone()!)
Expand Down

0 comments on commit ae3f3ef

Please sign in to comment.