//svarcom/trunk/cmd/cd.c |
---|
97,7 → 97,7 |
} |
} |
if (err != 0) { |
outputnl(doserr(err)); |
nls_outputnl_doserr(err); |
return(CMD_FAIL); |
} |
} |
//svarcom/trunk/cmd/chcp.c |
---|
106,7 → 106,7 |
sprintf(p->BUFFER, "Active code page: %d", nnn); |
outputnl(p->BUFFER); |
} else { |
outputnl(doserr(errcode)); |
nls_outputnl_doserr(errcode); |
return(CMD_FAIL); |
} |
} |
//svarcom/trunk/cmd/copy.c |
---|
283,7 → 283,7 |
if (t != 0) { |
output(setup->src[i]); |
output(" - "); |
outputnl(doserr(t)); |
nls_outputnl_doserr(t); |
continue; |
} |
cursrclen = strlen(setup->cursrc); /* remember cursrc length */ |
347,7 → 347,7 |
t = cmd_copy_internal(setup->dst, 0, setup->cursrc, 0, appendflag, setup->databuf, setup->databufsz); |
if (t != 0) { |
outputnl(doserr(t)); |
nls_outputnl_doserr(t); |
return(CMD_FAIL); |
} |
//svarcom/trunk/cmd/date.c |
---|
149,7 → 149,7 |
i = nls_getpatterns(nls); |
if (i != 0) { |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
return(CMD_FAIL); |
} |
//svarcom/trunk/cmd/del.c |
---|
97,7 → 97,7 |
err = findfirst(dta, buff, DOS_ATTR_RO | DOS_ATTR_SYS | DOS_ATTR_HID); |
if (err != 0) { /* report the error only if query had no wildcards */ |
for (i = 0; buff[i] != 0; i++) if (buff[i] == '?') break; |
if (buff[i] == 0) outputnl(doserr(err)); |
if (buff[i] == 0) nls_outputnl_doserr(err); |
break; |
} |
} else { |
133,7 → 133,7 |
if (err != 0) { |
output(fname); |
output(": "); |
outputnl(doserr(err)); |
nls_outputnl_doserr(err); |
break; |
} |
} |
//svarcom/trunk/cmd/dir.c |
---|
154,7 → 154,7 |
} |
i = nls_getpatterns(nls); |
if (i != 0) outputnl(doserr(i)); |
if (i != 0) nls_outputnl_doserr(i); |
/* parse command line */ |
for (i = 0; i < p->argc; i++) { |
230,7 → 230,7 |
i = file_truename(filespecptr, p->BUFFER); |
} |
if (i != 0) { |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
return(CMD_FAIL); |
} |
258,7 → 258,7 |
i = findfirst(dta, p->BUFFER, DOS_ATTR_RO | DOS_ATTR_HID | DOS_ATTR_SYS | DOS_ATTR_DIR | DOS_ATTR_ARC); |
if (i != 0) { |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
return(CMD_FAIL); |
} |
352,7 → 352,7 |
if (flags & DIR_FLAG_PAUSE) dir_pagination(&availrows); |
/* xxxx bytes free */ |
i = cmd_dir_df(&summary_totsz, drv); |
if (i != 0) outputnl(doserr(i)); |
if (i != 0) nls_outputnl_doserr(i); |
alignpos += 13 + 13; |
memset(buff2, ' ', alignpos); /* align the freebytes value to same column as totbytes */ |
i = nls_format_number(buff2 + alignpos, summary_totsz, nls); |
//svarcom/trunk/cmd/mkdir.c |
---|
69,7 → 69,7 |
} |
if (err != 0) { |
outputnl(doserr(err)); |
nls_outputnl_doserr(err); |
return(CMD_FAIL); |
} |
//svarcom/trunk/cmd/rename.c |
---|
54,7 → 54,7 |
/* convert src to truename format */ |
i = file_truename(p->argv[0], src); |
if (i != 0) { |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
return(CMD_FAIL); |
} |
83,7 → 83,7 |
/* apply truename to dest to normalize wildcards into ? chars */ |
i = file_truename(buff1, dst); |
if (i != 0) { |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
return(CMD_FAIL); |
} |
101,7 → 101,7 |
*/ |
i = findfirst(dta, src, 0); |
if (i != 0) outputnl(doserr(i)); |
if (i != 0) nls_outputnl_doserr(i); |
while (i == 0) { |
/* write found fname into buff1 and dst fname into buff2 - both in FCB |
153,7 → 153,7 |
output(" -> "); |
output(buff2 + fnameoffset); |
output(" "); |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
} |
/* next please */ |
i = findnext(dta); |
//svarcom/trunk/cmd/rmdir.c |
---|
69,7 → 69,7 |
} |
if (err != 0) { |
outputnl(doserr(err)); |
nls_outputnl_doserr(err); |
return(CMD_FAIL); |
} |
//svarcom/trunk/cmd/time.c |
---|
152,7 → 152,7 |
i = nls_getpatterns(nls); |
if (i != 0) { |
outputnl(doserr(i)); |
nls_outputnl_doserr(i); |
return(CMD_FAIL); |
} |
//svarcom/trunk/cmd/type.c |
---|
105,7 → 105,7 |
} |
if (err != 0) { |
outputnl(doserr(err)); |
nls_outputnl_doserr(err); |
return(CMD_FAIL); |
} |