search for: rosh_path_sz

Displaying 3 results from an estimated 3 matches for "rosh_path_sz".

2010 Jun 27
1
[PATCH] ROSH: Upgraded
...ot;--'%s'\n", filestr); + } +} /* Concatenate multiple files to stdout * cmdstr command string to process - * pwdstr Present Working Directory string */ -void rosh_cat(const char *cmdstr, const char *pwdstr) +void rosh_cat(const char *cmdstr) { FILE *f; - char filestr[ROSH_PATH_SZ + 1]; + char filestr[ROSH_PATH_SZ]; char buf[ROSH_BUF_SZ]; int numrd; int cmdpos; - ROSH_DEBUG("CMD: '%s'\npwd: '%s'\n", cmdstr, pwdstr); + ROSH_DEBUG("CMD: '%s'\n", cmdstr); /* Initialization */ filestr[0] = 0; cmd...
2009 Feb 15
2
COM32 module: Read-Only shell
...#39;%s'\npwd: '%s'\n", cmdstr, pwdstr, \ + ipwdstr); +} /* rosh_1 */ + +/* Concatenate multiple files to stdout + * cmdstr command string to process + * pwdstr Present Working Directory string + */ +void rosh_cat(const char *cmdstr, const char *pwdstr) +{ + FILE *f; + char filestr[ROSH_PATH_SZ + 1]; + char buf[ROSH_BUF_SZ]; + int numrd; + int cmdpos; + + ROSH_DEBUG("CMD: '%s'\npwd: '%s'\n", cmdstr, pwdstr); + /* Initialization */ + filestr[0] = 0; + cmdpos = 0; + /* skip the first word */ + cmdpos = rosh_parse_sp_1(filestr, cmdstr, cmdpos); + cmdpos = rosh_parse...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...- cd (Change Directory) not implemented for use with run and exit.\n"); + ROSH_COM32(rosh_cd_norun_str); if (strlen(filestr) != 0) rv = chdir(filestr); else rv = chdir(ipwdstr); if (rv != 0) { rosh_error(errno, "cd", filestr); + errno = 0; } else { getcwd(pwdstr, ROSH_PATH_SZ + 1); printf(" %s\n", pwdstr); @@ -334,21 +350,263 @@ void rosh_cd(const char *cmdstr, char *pwdstr, const char *ipwdstr) } /* rosh_cd */ /* Print the syslinux config file name - * cmdstr command string to process - * pwdstr Present Working Directory string */ -void rosh_cfg(cons...