Binmode.xs

filter: Statementstmt 97.5% 119 / 122 Branchbran 60.4% 104 / 172 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 75.8% 223 / 294 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
↑ Summary blib/lib/Sys/Binmode.pm »
1 #define PERL_NO_GET_CONTEXT
2 #include "EXTERN.h"
3 #include "perl.h"
4 #include "XSUB.h"
5  
6 #include <stdbool.h>
7  
8 #include "ppport.h"
9  
10 #define DEBUG 0
11  
12 /* A duplicate of PL_ppaddr as we find it at BOOT time.
13 We can thus overwrite PL_ppaddr with our own wrapper functions.
14 This interacts better with wrap_op_checker(), which doesn’t provide
15 a good way to call the op’s (now-overwritten) op_ppaddr callback.
16 */
17 static Perl_ppaddr_t ORIG_PL_ppaddr[OP_max];
18  
19 #define MYPKG "Sys::Binmode"
20 #define HINT_KEY MYPKG "/enabled"
21  
22 /* An idempotent variant of dMARK that allows us to inspect the
23 mark stack without changing it: */
24 #ifndef dMARK_TOPMARK
25 #define dMARK_TOPMARK SV **mark = PL_stack_base + TOPMARK
26 #endif
27  
28 #define DOWNGRADE_SVPV(sv) if (SvPOK(sv) && SvUTF8(sv)) sv_utf8_downgrade(sv, FALSE)
29  
30 100 PERL_STATIC_INLINE void MY_DOWNGRADE(pTHX_ SV** svp) {
31 100 ▶ if (UNLIKELY(SvGAMAGIC(*svp))) {
Branch: 6 branches
BranchTrueFalseTotal
if (UNLIKELY(SvGAMAGIC(*svp))) { 100 0 100
if (UNLIKELY(SvGAMAGIC(*svp))) { 1 99 100
if (UNLIKELY(SvGAMAGIC(*svp))) { 1 0 1
if (UNLIKELY(SvGAMAGIC(*svp))) { 1 99 100
if (UNLIKELY(SvGAMAGIC(*svp))) { 1 0 1
if (UNLIKELY(SvGAMAGIC(*svp))) { 1 99 100
32  
33 /* If the parameter in question is magical/overloaded
34 then we need to fetch the (string) value, downgrade it,
35 then replace the overloaded object in the stack with
36 our fetched value.
37 */
38  
39 1 SV* replacement = sv_newmortal();
40  
41 /* fetches the overloadeed value */
42 1 sv_copypv(replacement, *svp);
43  
44 1 ▶ DOWNGRADE_SVPV(replacement);
Branch: 2 branches
BranchTrueFalseTotal
DOWNGRADE_SVPV(replacement); 1 0 1
DOWNGRADE_SVPV(replacement); 1 0 1
45  
46 1 *svp = replacement;
47 }
48  
49 /* NB: READONLY strings can be downgraded. */
50 99 ▶ else DOWNGRADE_SVPV(*svp);
Branch: 2 branches
BranchTrueFalseTotal
else DOWNGRADE_SVPV(*svp); 84 15 99
else DOWNGRADE_SVPV(*svp); 57 27 84
51 100 }
52  
53 #define BINMODE_IS_ON (cop_hints_fetch_pvs(PL_curcop, HINT_KEY, 0) != &PL_sv_placeholder)
54  
55 /* For ops that take an indefinite number of args. */
56 #define MAKE_OPEN_LIST_WRAPPER(OPID) MAKE_CAPPED_LIST_WRAPPER(OPID, 0)
57  
58 /* For ops whose number of string args is a fixed range.
59  
60 NB: In some perls, some list opts don’t set MARK. In those cases we
61 fall back to MAXARG. As of now mkdir is the known “offender”, and
62 only on Alpine Linux 3.11 & 3.12 (not 3.13).
63 */
64 #define MAKE_CAPPED_LIST_WRAPPER(OPID, OP_MAXARG) \
65 static OP* _wrapped_pp_##OPID(pTHX) { \
66 if (BINMODE_IS_ON) { \
67 dSP; \
68 dMARK_TOPMARK; \
69 \
70 /* The compiler should optimize this away \
71 for MAKE_OPEN_LIST_WRAPPER: \
72 */ \
73 if (OP_MAXARG) \
74 if (SP < MARK || (SP - MARK) > OP_MAXARG) { \
75 unsigned numargs = MAXARG; \
76 MARK = SP; \
77 while (numargs--) MARK--; \
78 } \
79 \
80 while (++MARK <= SP) MY_DOWNGRADE(aTHX_ MARK); \
81 } \
82 \
83 return ORIG_PL_ppaddr[OPID](aTHX); \
84 }
85  
86 /* For ops that take a fixed number of args. */
87 #define MAKE_FIXED_LIST_WRAPPER(OPID, NUMARGS) \
88 static OP* _wrapped_pp_##OPID(pTHX) { \
89 if (BINMODE_IS_ON) { \
90 unsigned numargs = NUMARGS; \
91 dSP; \
92 while (numargs--) MY_DOWNGRADE(aTHX_ SP--); \
93 } \
94 \
95 return ORIG_PL_ppaddr[OPID](aTHX); \
96 }
97  
98 /* For ops where only the last arg is a string. */
99 #define MAKE_SP_WRAPPER(OPID) \
100 static OP* _wrapped_pp_##OPID(pTHX) { \
101 if (BINMODE_IS_ON) { \
102 dSP; \
103 MY_DOWNGRADE(aTHX_ SP); \
104 } \
105 \
106 return ORIG_PL_ppaddr[OPID](aTHX); \
107 }
108  
109  
110 32 ▶MAKE_OPEN_LIST_WRAPPER(OP_OPEN);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_OPEN); 6 8 14
MAKE_OPEN_LIST_WRAPPER(OP_OPEN); 18 6 24
111 4 ▶MAKE_CAPPED_LIST_WRAPPER(OP_SYSOPEN, 4);
Branch: 5 branches
BranchTrueFalseTotal
MAKE_CAPPED_LIST_WRAPPER(OP_SYSOPEN, 4); 1 0 1
MAKE_CAPPED_LIST_WRAPPER(OP_SYSOPEN, 4); 1 0 1
MAKE_CAPPED_LIST_WRAPPER(OP_SYSOPEN, 4); 0 1 1
MAKE_CAPPED_LIST_WRAPPER(OP_SYSOPEN, 4); 0 0 0
MAKE_CAPPED_LIST_WRAPPER(OP_SYSOPEN, 4); 3 1 4
112 3 ▶MAKE_FIXED_LIST_WRAPPER(OP_TRUNCATE, 2);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_FIXED_LIST_WRAPPER(OP_TRUNCATE, 2); 1 0 1
MAKE_FIXED_LIST_WRAPPER(OP_TRUNCATE, 2); 2 1 3
113 3 ▶MAKE_OPEN_LIST_WRAPPER(OP_EXEC);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_EXEC); 1 0 1
MAKE_OPEN_LIST_WRAPPER(OP_EXEC); 2 1 3
114 7 ▶MAKE_OPEN_LIST_WRAPPER(OP_SYSTEM);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_SYSTEM); 1 0 1
MAKE_OPEN_LIST_WRAPPER(OP_SYSTEM); 6 1 7
115  
116 3 ▶MAKE_SP_WRAPPER(OP_BIND);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_BIND); 2 1 3
117 1 ▶MAKE_SP_WRAPPER(OP_CONNECT);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_CONNECT); 1 0 1
118 2 ▶MAKE_SP_WRAPPER(OP_SSOCKOPT);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_SSOCKOPT); 2 0 2
119 1 ▶MAKE_SP_WRAPPER(OP_SEND);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_SEND); 1 0 1
120  
121 0 ▶MAKE_SP_WRAPPER(OP_IOCTL);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_IOCTL); 0 0 0
122  
123 1 ▶MAKE_SP_WRAPPER(OP_LSTAT);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_LSTAT); 1 0 1
124 1 ▶MAKE_SP_WRAPPER(OP_STAT);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_STAT); 1 0 1
125 1 ▶MAKE_SP_WRAPPER(OP_FTRREAD);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTRREAD); 1 0 1
126 1 ▶MAKE_SP_WRAPPER(OP_FTRWRITE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTRWRITE); 1 0 1
127 1 ▶MAKE_SP_WRAPPER(OP_FTREXEC);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTREXEC); 1 0 1
128 1 ▶MAKE_SP_WRAPPER(OP_FTEREAD);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTEREAD); 1 0 1
129 1 ▶MAKE_SP_WRAPPER(OP_FTEWRITE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTEWRITE); 1 0 1
130 1 ▶MAKE_SP_WRAPPER(OP_FTEEXEC);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTEEXEC); 1 0 1
131 3 ▶MAKE_SP_WRAPPER(OP_FTIS);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTIS); 2 1 3
132 1 ▶MAKE_SP_WRAPPER(OP_FTSIZE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTSIZE); 1 0 1
133 1 ▶MAKE_SP_WRAPPER(OP_FTMTIME);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTMTIME); 1 0 1
134 1 ▶MAKE_SP_WRAPPER(OP_FTATIME);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTATIME); 1 0 1
135 1 ▶MAKE_SP_WRAPPER(OP_FTCTIME);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTCTIME); 1 0 1
136 1 ▶MAKE_SP_WRAPPER(OP_FTROWNED);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTROWNED); 1 0 1
137 1 ▶MAKE_SP_WRAPPER(OP_FTEOWNED);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTEOWNED); 1 0 1
138 1 ▶MAKE_SP_WRAPPER(OP_FTZERO);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTZERO); 1 0 1
139 1 ▶MAKE_SP_WRAPPER(OP_FTSOCK);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTSOCK); 1 0 1
140 1 ▶MAKE_SP_WRAPPER(OP_FTCHR);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTCHR); 1 0 1
141 1 ▶MAKE_SP_WRAPPER(OP_FTBLK);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTBLK); 1 0 1
142 1 ▶MAKE_SP_WRAPPER(OP_FTFILE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTFILE); 1 0 1
143 1 ▶MAKE_SP_WRAPPER(OP_FTDIR);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTDIR); 1 0 1
144 1 ▶MAKE_SP_WRAPPER(OP_FTPIPE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTPIPE); 1 0 1
145 1 ▶MAKE_SP_WRAPPER(OP_FTSUID);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTSUID); 1 0 1
146 1 ▶MAKE_SP_WRAPPER(OP_FTSGID);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTSGID); 1 0 1
147 1 ▶MAKE_SP_WRAPPER(OP_FTSVTX);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTSVTX); 1 0 1
148 1 ▶MAKE_SP_WRAPPER(OP_FTLINK);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTLINK); 1 0 1
149 /* MAKE_SP_WRAPPER(OP_FTTTY); */
150 1 ▶MAKE_SP_WRAPPER(OP_FTTEXT);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTTEXT); 1 0 1
151 1 ▶MAKE_SP_WRAPPER(OP_FTBINARY);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_FTBINARY); 1 0 1
152 4 ▶MAKE_SP_WRAPPER(OP_CHDIR);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_CHDIR); 2 2 4
153 4 ▶MAKE_OPEN_LIST_WRAPPER(OP_CHOWN);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_CHOWN); 1 0 1
MAKE_OPEN_LIST_WRAPPER(OP_CHOWN); 3 1 4
154 0 ▶MAKE_SP_WRAPPER(OP_CHROOT);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_CHROOT); 0 0 0
155 2 ▶MAKE_OPEN_LIST_WRAPPER(OP_UNLINK);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_UNLINK); 1 0 1
MAKE_OPEN_LIST_WRAPPER(OP_UNLINK); 1 1 2
156 4 ▶MAKE_OPEN_LIST_WRAPPER(OP_CHMOD);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_CHMOD); 1 1 2
MAKE_OPEN_LIST_WRAPPER(OP_CHMOD); 2 1 3
157 4 ▶MAKE_OPEN_LIST_WRAPPER(OP_UTIME);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_UTIME); 1 0 1
MAKE_OPEN_LIST_WRAPPER(OP_UTIME); 3 1 4
158 3 ▶MAKE_FIXED_LIST_WRAPPER(OP_RENAME, 2);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_FIXED_LIST_WRAPPER(OP_RENAME, 2); 1 0 1
MAKE_FIXED_LIST_WRAPPER(OP_RENAME, 2); 2 1 3
159 3 ▶MAKE_FIXED_LIST_WRAPPER(OP_LINK, 2);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_FIXED_LIST_WRAPPER(OP_LINK, 2); 1 0 1
MAKE_FIXED_LIST_WRAPPER(OP_LINK, 2); 2 1 3
160 3 ▶MAKE_FIXED_LIST_WRAPPER(OP_SYMLINK, 2);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_FIXED_LIST_WRAPPER(OP_SYMLINK, 2); 1 0 1
MAKE_FIXED_LIST_WRAPPER(OP_SYMLINK, 2); 2 1 3
161 2 ▶MAKE_SP_WRAPPER(OP_READLINK);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_READLINK); 2 0 2
162 6 ▶MAKE_CAPPED_LIST_WRAPPER(OP_MKDIR, 2);
Branch: 5 branches
BranchTrueFalseTotal
MAKE_CAPPED_LIST_WRAPPER(OP_MKDIR, 2); 3 0 3
MAKE_CAPPED_LIST_WRAPPER(OP_MKDIR, 2); 3 0 3
MAKE_CAPPED_LIST_WRAPPER(OP_MKDIR, 2); 0 3 3
MAKE_CAPPED_LIST_WRAPPER(OP_MKDIR, 2); 0 0 0
MAKE_CAPPED_LIST_WRAPPER(OP_MKDIR, 2); 3 3 6
163 2 ▶MAKE_SP_WRAPPER(OP_RMDIR);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_RMDIR); 2 0 2
164 1 ▶MAKE_SP_WRAPPER(OP_OPEN_DIR);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_OPEN_DIR); 1 0 1
165  
166 2418 ▶MAKE_SP_WRAPPER(OP_REQUIRE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_REQUIRE); 7 2411 2418
167 1 ▶MAKE_SP_WRAPPER(OP_DOFILE);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_DOFILE); 1 0 1
168 1 ▶MAKE_SP_WRAPPER(OP_BACKTICK);
Branch: 1 branch
BranchTrueFalseTotal
MAKE_SP_WRAPPER(OP_BACKTICK); 1 0 1
169  
170 /* (These appear to be fine already.)
171 MAKE_SP_WRAPPER(OP_GHBYADDR);
172 MAKE_SP_WRAPPER(OP_GNBYADDR);
173 */
174  
175 0 ▶MAKE_OPEN_LIST_WRAPPER(OP_SYSCALL);
Branch: 2 branches
BranchTrueFalseTotal
MAKE_OPEN_LIST_WRAPPER(OP_SYSCALL); 0 0 0
MAKE_OPEN_LIST_WRAPPER(OP_SYSCALL); 0 0 0
176  
177 /* ---------------------------------------------------------------------- */
178  
179 #define MAKE_BOOT_WRAPPER(OPID) \
180 ORIG_PL_ppaddr[OPID] = PL_ppaddr[OPID]; \
181 PL_ppaddr[OPID] = _wrapped_pp_##OPID;
182  
183 //----------------------------------------------------------------------
184  
185 bool initialized = false;
186  
187 MODULE = Sys::Binmode PACKAGE = Sys::Binmode
188  
189 PROTOTYPES: DISABLE
190  
191 BOOT:
192 /* In theory this is for PL_check rather than PL_ppaddr, but per
193 Paul Evans in practice this mutex gets used for other stuff, too.
194 Paul says a race here should be exceptionally rare, so for pre-5.16
195 perls (which lack this mutex) let’s just skip it.
196 */
197 #ifdef OP_CHECK_MUTEX_LOCK
198 OP_CHECK_MUTEX_LOCK;
199 #endif
200 13 ▶ if (!initialized) {
Branch: 1 branch
BranchTrueFalseTotal
if (!initialized) { 13 0 13
201 13 initialized = true;
202  
203 13 HV *stash = gv_stashpv(MYPKG, FALSE);
204 13 newCONSTSUB(stash, "_HINT_KEY", newSVpvs(HINT_KEY));
205  
206 13 MAKE_BOOT_WRAPPER(OP_OPEN);
207 13 MAKE_BOOT_WRAPPER(OP_SYSOPEN);
208 13 MAKE_BOOT_WRAPPER(OP_TRUNCATE);
209 13 MAKE_BOOT_WRAPPER(OP_EXEC);
210 13 MAKE_BOOT_WRAPPER(OP_SYSTEM);
211  
212 13 MAKE_BOOT_WRAPPER(OP_BIND);
213 13 MAKE_BOOT_WRAPPER(OP_CONNECT);
214 13 MAKE_BOOT_WRAPPER(OP_SSOCKOPT);
215 13 MAKE_BOOT_WRAPPER(OP_SEND);
216  
217 13 MAKE_BOOT_WRAPPER(OP_IOCTL);
218  
219 13 MAKE_BOOT_WRAPPER(OP_LSTAT);
220 13 MAKE_BOOT_WRAPPER(OP_STAT);
221 13 MAKE_BOOT_WRAPPER(OP_FTRREAD);
222 13 MAKE_BOOT_WRAPPER(OP_FTRWRITE);
223 13 MAKE_BOOT_WRAPPER(OP_FTREXEC);
224 13 MAKE_BOOT_WRAPPER(OP_FTEREAD);
225 13 MAKE_BOOT_WRAPPER(OP_FTEWRITE);
226 13 MAKE_BOOT_WRAPPER(OP_FTEEXEC);
227 13 MAKE_BOOT_WRAPPER(OP_FTIS);
228 13 MAKE_BOOT_WRAPPER(OP_FTSIZE);
229 13 MAKE_BOOT_WRAPPER(OP_FTMTIME);
230 13 MAKE_BOOT_WRAPPER(OP_FTATIME);
231 13 MAKE_BOOT_WRAPPER(OP_FTCTIME);
232 13 MAKE_BOOT_WRAPPER(OP_FTROWNED);
233 13 MAKE_BOOT_WRAPPER(OP_FTEOWNED);
234 13 MAKE_BOOT_WRAPPER(OP_FTZERO);
235 13 MAKE_BOOT_WRAPPER(OP_FTSOCK);
236 13 MAKE_BOOT_WRAPPER(OP_FTCHR);
237 13 MAKE_BOOT_WRAPPER(OP_FTBLK);
238 13 MAKE_BOOT_WRAPPER(OP_FTFILE);
239 13 MAKE_BOOT_WRAPPER(OP_FTDIR);
240 13 MAKE_BOOT_WRAPPER(OP_FTPIPE);
241 13 MAKE_BOOT_WRAPPER(OP_FTSUID);
242 13 MAKE_BOOT_WRAPPER(OP_FTSGID);
243 13 MAKE_BOOT_WRAPPER(OP_FTSVTX);
244 13 MAKE_BOOT_WRAPPER(OP_FTLINK);
245 /* MAKE_BOOT_WRAPPER(OP_FTTTY); */
246 13 MAKE_BOOT_WRAPPER(OP_FTTEXT);
247 13 MAKE_BOOT_WRAPPER(OP_FTBINARY);
248 13 MAKE_BOOT_WRAPPER(OP_CHDIR);
249 13 MAKE_BOOT_WRAPPER(OP_CHOWN);
250 13 MAKE_BOOT_WRAPPER(OP_CHROOT);
251 13 MAKE_BOOT_WRAPPER(OP_UNLINK);
252 13 MAKE_BOOT_WRAPPER(OP_CHMOD);
253 13 MAKE_BOOT_WRAPPER(OP_UTIME);
254 13 MAKE_BOOT_WRAPPER(OP_RENAME);
255 13 MAKE_BOOT_WRAPPER(OP_LINK);
256 13 MAKE_BOOT_WRAPPER(OP_SYMLINK);
257 13 MAKE_BOOT_WRAPPER(OP_READLINK);
258 13 MAKE_BOOT_WRAPPER(OP_MKDIR);
259 13 MAKE_BOOT_WRAPPER(OP_RMDIR);
260 13 MAKE_BOOT_WRAPPER(OP_OPEN_DIR);
261  
262 13 MAKE_BOOT_WRAPPER(OP_REQUIRE);
263 13 MAKE_BOOT_WRAPPER(OP_DOFILE);
264 13 MAKE_BOOT_WRAPPER(OP_BACKTICK);
265  
266 /* (These appear to be fine already.)
267 MAKE_BOOT_WRAPPER(OP_GHBYADDR);
268 MAKE_BOOT_WRAPPER(OP_GNBYADDR);
269 */
270  
271 13 MAKE_BOOT_WRAPPER(OP_SYSCALL);
272 }
273 #ifdef OP_CHECK_MUTEX_UNLOCK
274 OP_CHECK_MUTEX_UNLOCK;
275 #endif
↑ Summary blib/lib/Sys/Binmode.pm »