summaryrefslogtreecommitdiff
path: root/vms/vmsish.h
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2007-10-05 22:37:23 +0000
committerCraig A. Berry <craigberry@mac.com>2007-10-05 22:37:23 +0000
commit2ee6e19d6e437934eea429f654b31f6f5e36af58 (patch)
treea05be96c925ff2f3fdb3b03c2d8e661208a2973e /vms/vmsish.h
parent73031816b5ef6a74869c06e84bb621841a623d0a (diff)
downloadperl-2ee6e19d6e437934eea429f654b31f6f5e36af58.tar.gz
symlink() wrapper for VMS that prevents the creation of symlinks
with zero-length names. The standards disallow that and the test suite gets indigestion. p4raw-id: //depot/perl@32037
Diffstat (limited to 'vms/vmsish.h')
-rw-r--r--vms/vmsish.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/vms/vmsish.h b/vms/vmsish.h
index a0a52a3f86..178934e1bb 100644
--- a/vms/vmsish.h
+++ b/vms/vmsish.h
@@ -274,6 +274,9 @@
#define my_getpwent() Perl_my_getpwent(aTHX)
#define my_endpwent() Perl_my_endpwent(aTHX)
#define my_getlogin Perl_my_getlogin
+#ifdef HAS_SYMLINK
+# define my_symlink Perl_my_symlink
+#endif
#define init_os_extras Perl_init_os_extras
#define vms_realpath(a, b, c) Perl_vms_realpath(aTHX_ a,b,c)
#define vms_case_tolerant(a) Perl_vms_case_tolerant(a)
@@ -507,6 +510,9 @@ struct interp_intern {
# define fwrite my_fwrite /* for PerlSIO_fwrite */
# define fdopen my_fdopen
# define fclose my_fclose
+#ifdef HAS_SYMLINK
+# define symlink my_symlink
+#endif
#endif
@@ -958,7 +964,10 @@ unsigned long int Perl_do_aspawn (pTHX_ void *, void **, void **);
unsigned long int Perl_do_spawn (pTHX_ const char *);
FILE * my_fdopen (int, const char *);
int my_fclose (FILE *);
-int my_fwrite (const void *, size_t, size_t, FILE *);
+int my_fwrite (const void *, size_t, size_t, FILE *);
+#ifdef HAS_SYMLINK
+int my_symlink(const char *path1, const char *path2);
+#endif
int Perl_my_flush (pTHX_ FILE *);
struct passwd * Perl_my_getpwnam (pTHX_ const char *name);
struct passwd * Perl_my_getpwuid (pTHX_ Uid_t uid);