summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-12-15 17:48:42 +0000
committerSteve Peters <steve@fisharerojo.org>2005-12-15 17:48:42 +0000
commitce8abf5f5d2e5b19646ab17c24a3ea87c70428c8 (patch)
tree9b13716c71da689a4c8ca1e2cd37692bcbf34739 /proto.h
parented4b2e6b8e3e407b046b3d57848a2e57898d7d60 (diff)
downloadperl-ce8abf5f5d2e5b19646ab17c24a3ea87c70428c8.tar.gz
Prevent require() from attempting to open directories and block
devices. This fixes RT #24404. p4raw-id: //depot/perl@26373
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index b5dfd5be22..f8b64bb23d 100644
--- a/proto.h
+++ b/proto.h
@@ -3285,6 +3285,11 @@ STATIC void S_save_lines(pTHX_ AV *array, SV *sv)
STATIC OP* S_doeval(pTHX_ int gimme, OP** startop, CV* outside, U32 seq)
__attribute__warn_unused_result__;
+STATIC PerlIO * S_check_type_and_open(pTHX_ const char *name, const char *mode)
+ __attribute__warn_unused_result__
+ __attribute__nonnull__(pTHX_1)
+ __attribute__nonnull__(pTHX_2);
+
STATIC PerlIO * S_doopen_pm(pTHX_ const char *name, const char *mode)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1)