search for: rosh_debug

Displaying 5 results from an estimated 5 matches for "rosh_debug".

2010 Jun 27
1
[PATCH] ROSH: Upgraded
...) { @@ -43,37 +45,13 @@ void rosh_version(void) APP_AUTHOR); } -void rosh_help(int type) +void print_beta(void) { - rosh_version(); - switch (type) { - case 2: - puts(rosh_help_str2); - break; - case 1: - default: - puts(rosh_help_str1); - } + puts(rosh_beta_str); + ROSH_DEBUG("DO_DEBUG active\n"); + ROSH_DEBUG2("DO_DEBUG2 active\n"); } -/* Determine if a character is whitespace - * inc input character - * returns 0 if not whitespace - */ -int rosh_issp(char inc) -{ - int rv; - switch (inc) { - case ' ': - case '\t': -...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...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(const char *cmdstr, const char *pwdstr) +void rosh_cfg() { - ROSH_DEBUG("CMD: '%s'\npwd: '%s'\n", cmdstr, pwdstr); printf("CFG: '%s'\n", syslinux_config_file()); } /* rosh_cfg */ +/* Process optstr to optarr + * optstr option string to process + * optarr option array to populate + */ +void rosh_ls_arg_opt(const char *...
2009 Feb 15
2
COM32 module: Read-Only shell
...n, 6000); + } +// rosh_console_std(); + return inc; +} /* rosh_getkey */ + +/* Template for command functions + * cmdstr command string to process + * pwdstr Present Working Directory string + * ipwdstr Initial PWD + */ +void rosh_1(const char *cmdstr, const char *pwdstr, const char *ipwdstr) +{ + ROSH_DEBUG("CMD: '%s'\npwd: '%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 *pwdst...
2009 Mar 07
3
rosh patch V2
Here is a second version of my patch from last night. It uses the provided ctype function isspace and does the same readdir(). I remove the rosh_issp() function. I admit to being a bit liberal with my use of braces and spaces. We all of the habit of knowing we can invent a more perfect wheel. Let me know if you have any questions. Keith -------------- next part -------------- A non-text
2009 Mar 06
4
rosh patch
...1; break; - default: rv = 0; + int rv = 0 ; + + if ( ( inc == ' ') || ( inc == '\t') ) + { + rv = 1 ; } return rv; } /* ros_issp */ @@ -384,8 +384,7 @@ if (S_ISDIR(fdstat.st_mode)) { ROSH_DEBUG("PATH '%s' is a directory\n", ifilstr); d = fdopendir(fd); - de = readdir(d); - while (de != NULL) { + while ( de = readdir(d) ) { #ifdef DO_DEBUG filestr2[0]...