summaryrefslogtreecommitdiff
path: root/perldir.h
diff options
context:
space:
mode:
Diffstat (limited to 'perldir.h')
-rw-r--r--perldir.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/perldir.h b/perldir.h
index e3e68ff099..0272bac1c8 100644
--- a/perldir.h
+++ b/perldir.h
@@ -2,6 +2,18 @@
#define H_PERLDIR 1
#ifdef PERL_OBJECT
+
+#include "ipdir.h"
+
+#define PerlDir_mkdir(name, mode) piDir->Makedir((name), (mode), ErrorNo())
+#define PerlDir_chdir(name) piDir->Chdir((name), ErrorNo())
+#define PerlDir_rmdir(name) piDir->Rmdir((name), ErrorNo())
+#define PerlDir_close(dir) piDir->Close((dir), ErrorNo())
+#define PerlDir_open(name) piDir->Open((name), ErrorNo())
+#define PerlDir_read(dir) piDir->Read((dir), ErrorNo())
+#define PerlDir_rewind(dir) piDir->Rewind((dir), ErrorNo())
+#define PerlDir_seek(dir, loc) piDir->Seek((dir), (loc), ErrorNo())
+#define PerlDir_tell(dir) piDir->Tell((dir), ErrorNo())
#else
#define PerlDir_mkdir(name, mode) Mkdir((name), (mode))
#ifdef VMS