int i;
for (i = 0; lnm[i]; i++) uplnm[i] = _toupper(lnm[i]);
if (!strcmp(uplnm,"DEFAULT")) {
- if (eqv && *eqv) Perl_my_chdir(eqv);
+ if (eqv && *eqv) my_chdir(eqv);
return;
}
}
if (dirflag != 0) {
if (decc_dir_barename && decc_posix_compliant_pathnames) {
Newx(remove_name, NAM$C_MAXRSS+1, char);
- mp_do_pathify_dirspec(name, remove_name, 0);
+ do_pathify_dirspec(name, remove_name, 0);
if (!rmdir(remove_name)) {
Safefree(remove_name);
if (dirflag != 0)
if (decc_dir_barename && decc_posix_compliant_pathnames) {
Newx(remove_name, NAM$C_MAXRSS+1, char);
- mp_do_pathify_dirspec(name, remove_name, 0);
+ do_pathify_dirspec(name, remove_name, 0);
rmsts = rmdir(remove_name);
Safefree(remove_name);
}
if (do_fileify_dirspec(name,dirfile,0) == NULL) return -1;
if (flex_stat(dirfile,&st) || !S_ISDIR(st.st_mode)) retval = -1;
- else retval = mp_do_kill_file(dirfile, 1);
+ else retval = mp_do_kill_file(aTHX_ dirfile, 1);
return retval;
} /* end of do_rmdir */
int trnend;
/* now we have foo:bar or foo:[000000]bar to decide from */
- islnm = my_trnlnm(vmspath, esa, 0);
- trnend = islnm ? strlen(esa) - 1 : 0;
+ islnm = vmstrnenv(vmspath, esa, 0, fildev, 0);
+ trnend = islnm ? islnm - 1 : 0;
/* if this was a logical name, ']' or '>' must be present */
/* if not a logical name, then assume a device and hope. */
MUTEX_LOCK( (perl_mutex *) dd->mutex );
- entry = Perl_readdir(dd);
+ entry = readdir(dd);
*result = entry;
retval = ( *result == NULL ? errno : 0 );
#define lstat(_x, _y) stat(_x, _y)
#endif
+#define flex_stat_int(a,b,c) Perl_flex_stat_int(aTHX_ a,b,c)
+
static int
Perl_flex_stat_int(pTHX_ const char *fspec, Stat_t *statbufp, int lstat_flag)
{
int
Perl_flex_stat(pTHX_ const char *fspec, Stat_t *statbufp)
{
- return Perl_flex_stat_int(fspec, statbufp, 0);
+ return flex_stat_int(fspec, statbufp, 0);
}
/*}}}*/
int
Perl_flex_lstat(pTHX_ const char *fspec, Stat_t *statbufp)
{
- return Perl_flex_stat_int(fspec, statbufp, 1);
+ return flex_stat_int(fspec, statbufp, 1);
}
/*}}}*/
#define init_os_extras Perl_init_os_extras
#define vms_realpath(a, b) Perl_vms_realpath(aTHX_ a,b)
#define vms_case_tolerant(a) Perl_vms_case_tolerant(a)
-#define vms_decc_feature_get_name(a) \
- Perl_vms_decc_feature_get_name(aTHX_ a)
-#define vms_decc_feature_get_value(a, b) \
- Perl_vms_decc_feature_get_value(aTHX_ a, b)
-#define vms_decc_feature_set_value(a, b, c) \
- Perl_vms_decc_feature_set_value(aTHX_ a, b, c)
-#define vms_decc_feature_get_index(a) \
- Perl_vms_decc_feature_get_index(aTHX_ a)
/* Delete if at all possible, changing protections if necessary. */
#define unlink kill_file
/* prototype section start marker; `typedef' passes through cpp */
typedef char __VMS_PROTOTYPES__;
int Perl_vmstrnenv (const char *, char *, unsigned long int, struct dsc$descriptor_s **, unsigned long int);
-char * Perl_vms_realpath (const char *, char *);
+char * Perl_vms_realpath (pTHX_ const char *, char *);
#if !defined(PERL_IMPLICIT_CONTEXT)
int Perl_vms_case_tolerant(void);
char * Perl_my_getenv (const char *, bool);
int Perl_rmscopy (pTHX_ const char *, const char *, int);
int Perl_my_mkdir (pTHX_ const char *, Mode_t);
bool Perl_vms_do_aexec (pTHX_ SV *, SV **, SV **);
-char * Perl_vms_realpath (pTHX_ const char *, char *);
-char * Perl_vms_decc_feature_get_name(pTHX_ int a);
-int Perl_vms_decc_feature_get_value(pTHX_ int, int);
-int Perl_vms_decc_feature_set_value(pTHX_ int, int, int)
-int Perl_vms_decc_feature_get_index(aTHX_ const char *)
#endif
int Perl_vms_case_tolerant(void);
char * Perl_my_getenv_len (pTHX_ const char *, unsigned long *, bool);