*/
#ifdef sys$getdviw
#undef sys$getdviw
-#endif
int sys$getdviw
(unsigned long efn,
unsigned short chan,
void * (astadr)(unsigned long),
void * astprm,
void * nullarg);
+#endif
#if __CRTL_VER >= 70300000 && !defined(__VAX)
return count;
}
-
-int SYS$FILESCAN
+#ifdef sys$filescan
+#undef sys$filescan
+int sys$filescan
(const struct dsc$descriptor_s * srcstr,
struct filescan_itmlst_2 * valuelist,
unsigned long * fldflags,
struct dsc$descriptor_s *auxout,
unsigned short * retlen);
+#endif
/* vms_split_path - Verify that the input file specification is a
* VMS format file specification, and provide pointers to the components of
item_list[8].length = 0;
item_list[8].component = NULL;
- status = SYS$FILESCAN
+ status = sys$filescan
((const struct dsc$descriptor_s *)&path_desc, item_list,
&flags, NULL, NULL);
_ckvmssts_noperl(status); /* All failure status values indicate a coding error */
char * vmsfspec, *tmpfspec;
char * esa, *cp, *out = NULL;
char * tbuf;
- char * esal;
+ char * esal = NULL;
char * outbufl;
struct FAB myfab = cc$rms_fab;
rms_setup_nam(mynam);
if (outbufl != NULL)
PerlMem_free(outbufl);
PerlMem_free(esa);
- PerlMem_free(esal);
+ if (esal != NULL)
+ PerlMem_free(esal);
set_vaxc_errno(retsts);
if (retsts == RMS$_PRV) set_errno(EACCES);
else if (retsts == RMS$_DEV) set_errno(ENODEV);
if (outbufl != NULL)
PerlMem_free(outbufl);
PerlMem_free(esa);
- PerlMem_free(esal);
+ if (esal != NULL)
+ PerlMem_free(esal);
set_vaxc_errno(retsts);
if (retsts == RMS$_PRV) set_errno(EACCES);
else set_errno(EVMSERR);
if (trimver || trimtype) {
if (defspec && *defspec) {
char *defesal = NULL;
- defesal = PerlMem_malloc(NAML$C_MAXRSS + 1);
+ defesal = PerlMem_malloc(VMS_MAXRSS + 1);
if (defesal != NULL) {
struct FAB deffab = cc$rms_fab;
rms_setup_nam(defnam);
if (isunix) {
if (do_tounixspec(esa,outbuf,0,fs_utf8) == NULL) {
if (out) Safefree(out);
- PerlMem_free(esal);
+ if (esal != NULL)
+ PerlMem_free(esal);
PerlMem_free(esa);
if (outbufl != NULL)
PerlMem_free(outbufl);
if (do_tounixspec(outbuf,tmpfspec,0,fs_utf8) == NULL) {
if (out) Safefree(out);
PerlMem_free(esa);
- PerlMem_free(esal);
+ if (esal != NULL)
+ PerlMem_free(esal);
PerlMem_free(tmpfspec);
if (outbufl != NULL)
PerlMem_free(outbufl);
rms_set_rsal(mynam, NULL, 0, NULL, 0);
sts = rms_free_search_context(&myfab); /* Free search context */
PerlMem_free(esa);
- PerlMem_free(esal);
+ if (esal != NULL)
+ PerlMem_free(esal);
if (outbufl != NULL)
PerlMem_free(outbufl);
return outbuf;