Displaying 7 results from an estimated 7 matches for "filestr2".
Did you mean:
filestr
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...}
+} /* rosh_ls_arg_opt */
+
+/* Retrieve the size of a file argument
+ * filestr directory name of directory entry
+ * de directory entry
+ */
+int rosh_ls_de_size(const char *filestr, struct dirent *de)
+{
+ int de_size;
+
+#ifdef __COM32__
+ de_size = de->d_size;
+#else /* __COM32__ */
+ char filestr2[ROSH_PATH_SZ + 1];
+ int fd2, file2pos;
+ struct stat fdstat;
+ int status;
+
+ filestr2[0] = 0;
+ file2pos = -1;
+ if (filestr) {
+ file2pos = strlen(filestr);
+ memcpy(filestr2, filestr, file2pos);
+ filestr2[file2pos] = '/';
+ }
+ strcpy(filestr2+file2pos+1, de->d_name);
+ fd2 = op...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...arr[2] = cpos - optstr;
+ } else {
+ optarr[2] = -1;
+ }
+} /* rosh_ls_arg_opt */
+
+/* Retrieve the size of a file argument
+ * filestr directory name of directory entry
+ * de directory entry
+ */
+int rosh_ls_de_size(const char *filestr, struct dirent *de)
+{
+ int de_size;
+ char filestr2[ROSH_PATH_SZ];
+ int fd2, file2pos;
+ struct stat fdstat;
+ int status;
+
+ filestr2[0] = 0;
+ file2pos = -1;
+ if (filestr) {
+ file2pos = strlen(filestr);
+ memcpy(filestr2, filestr, file2pos);
+ filestr2[file2pos] = '/';
+ }
+ strcpy(filestr2 + file2pos + 1, de-&g...
2009 Mar 06
4
rosh patch
...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] = 0;
file2pos = strlen(filestr);
@@ -401,7 +400,6 @@
#ifdef DO_DEBUG
// inchar = fgetc(stdin);
#endif /* DO_DEBUG */
- de = readdir(d);
}
closedir(d);
} else if (S_ISR...
2009 Feb 15
2
COM32 module: Read-Only shell
...input filename/directory name to list
+ * pwdstr Present Working Directory string
+ */
+void rosh_dir_arg(const char *ifilstr, const char *pwdstr)
+{
+ struct stat fdstat;
+ int status;
+ int fd;
+ char filestr[ROSH_PATH_SZ + 1];
+ int filepos;
+ DIR *d;
+ struct dirent *de;
+#ifdef DO_DEBUG
+ char filestr2[ROSH_PATH_SZ + 1];
+ int fd2, file2pos;
+#ifdef __COM32__
+// int inchar;
+ char ty;
+#endif /* __COM32__ */
+#endif /* DO_DEBUG */
+
+ /* Initialization; make filestr based on leading character of ifilstr
+ and pwdstr */
+ if (ifilstr[0] == SEP) {
+ strcpy(filestr, ifilstr);
+ } else {
+ strcp...
2015 Jul 11
0
EXTLINUX - GCC 5
...&p.
-----------------------------------------------------------------
Checking com32/rosh/rosh.c: COMMAND_LINE_SIZE...
[com32/rosh/rosh.c:1128]: (error) Uninitialized variable: cmdstr
Checking com32/rosh/rosh.c: FILENAME_MAX...
[com32/rosh/rosh.c:559]: (error) Uninitialized variable: filestr2
...
[com32/rosh/rosh.c:600]: (error) Uninitialized variable: filestr2
Possibly non-functional compile time alternatives due to
unqualified macro settings by cppcheck.
-----------------------------------------------------------------
[com32/sysdump/memmap.c:50]: (error) Possible null point...
2015 Jul 11
3
EXTLINUX - GCC 5
> On Jul 10, 2015 5:29 PM, "poma via Syslinux" <syslinux at zytor.com> wrote:
>
> > The same as with the ISOLINUX, stable and git.
> > Only this time has nothing to do with the menu.
>
> 1) EXTLINUX is no longer a discrete variant. The installer extlinux now
> installs SYSLINUX.
> 2) William Kensington already saw a similar behavior wherein an
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