Displaying 13 results from an estimated 13 matches for "__com32__".
Did you mean:
d__com32__
2008 Oct 22
1
NEW: COM32 module to alias
...as a KERNEL with a boot line command as the
* APPEND line.
*/
/*
* History
* b002 Alter the concatenation of the command line arguments to use memcpy
* b001 Initial version
*/
#include <stdio.h>
#include <stdlib.h>
// #include <stdbool.h>
#include <string.h>
#ifdef __COM32__ /* Allow targetting Linux, etc to test */
#include <syslinux/boot.h> /* syslinux_run_command() */
#endif /* __COM32__ */
#define ALIAS_CMD_SZ 128
// #define DO_DEBUG 1
#define APP_LONGNAME "Alias COM32"
#define APP_NAME "alias"
#define APP_YEAR "2008"
#define...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...7 +11,8 @@
## -----------------------------------------------------------------------
##
-## COM32 GRC configurables
+## COM32 ROSH configurables
##
## Include the COM32 common configurables
include ../MCONFIG
-
-# CFLAGS = $(GCCOPT) -W -Wall -march=i386 \
-# -fomit-frame-pointer -D__COM32__ \
-# -nostdinc -iwithprefix include \
-# -I$(com32)/libutil/include -I$(com32)/include
-# -g3 -dD
-
-# LNXCFLAGS = -I$(com32)/libutil/include -W -Wall -O -g3 -D_GNU_SOURCE -dD
-# -U__GNUC__
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index 5eaa47d..d78e73a 100644
--- a/com32...
2008 Oct 27
0
NEW: COM32 module to alias (Revised)
...LEN or COMMAND_LINE_SIZE (in that order) if available
* b002 Alter the concatenation of the command line arguments to use memcpy
* b001 Initial version
*/
#include <stdio.h>
#include <stdlib.h>
// #include <stdbool.h>
#include <string.h>
#include <limits.h>
#ifdef __COM32__ /* Allow targetting Linux, etc to test */
#include <syslinux/boot.h> /* syslinux_run_command() */
#endif /* __COM32__ */
#ifdef __linux__ /* For COMMAND_LINE_SIZE */
#include <asm/setup.h>
#endif /* __linux__ */
// Possible referenced values for command line length:
// MAX_CMDLINE_L...
2009 Feb 22
2
NEW: COM32 module to run another command, optionally clearing the screen
...E_LEN or COMMAND_LINE_SIZE (in that order) if available
* b002 Alter the concatenation of the command line arguments to use memcpy
* b001 Initial version
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <consoles.h>
#ifdef __COM32__ /* Allow targetting Linux, etc to test */
#include <syslinux/boot.h> /* syslinux_run_command() */
#else
#ifdef __linux__ /* For COMMAND_LINE_SIZE */
#include <asm/setup.h>
#endif /* __linux__ */
#endif /* __COM32__ */
// #define DO_DEBUG 1 /* Uncomment this for additional output */...
2010 Mar 18
0
[MODULE] COM32 module to time null-dumping a file
...mp
+ */
+
+/*
+ * ToDos:
+ * Refine timing to be more precise.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/times.h>
+#include <consoles.h>
+#include <minmax.h>
+
+
+#ifdef __COM32__
+#define BUFSZ 2048
+/* What's optimal? Under 4k?
+ * layout.inc: xfer_buf_seg equ 1000h
+ */
+
+float get_tps(){ return 18.2; }
+
+#else /* __COM32__ */
+
+#define BUFSZ 16384
+/* Need to check what might be a "best" buffer/fetch block size here */
+
+float get_tps(){ return (float)...
2010 Mar 20
1
[MODULE] COM32 module to time null-dumping a file, v1.1
...priority.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/times.h>
+#include <consoles.h>
+#include <minmax.h>
+#include <limits.h>
+#include <string.h>
+
+#ifdef __COM32__
+# define BUFSZ_DEF 2048
+/* What's optimal? Under 4k?
+ * layout.inc: xfer_buf_seg equ 1000h
+ */
+# define O_DIRECT 0
+
+static inline float get_tps(){ return 18.2; }
+
+#else /* __COM32__ */
+
+# define BUFSZ_DEF 16384
+/* Need to check what might be a "best" buffer/fetch block...
2007 Mar 15
1
my_isspace can be isblank
...void console_cleanup(void);
--- com32/modules/menumain.c
//depot/opensource/main/syslinux-3/com32/modules/menumain.c#2
+++ com32/modules/menumain.c 07-03-15 16:26:57
@@ -30,6 +30,7 @@
#include <sha1.h>
#include <base64.h>
#include <colortbl.h>
+#include <ctype.h>
#ifdef __COM32__
#include <com32.h>
#endif
@@ -483,10 +484,10 @@
if ( cursor ) {
int prevcursor = cursor;
- while ( cursor && my_isspace(cmdline[cursor-1]) )
+ while ( cursor && isblank(cmdline[cursor-1]) )
cursor--;
- while ( cursor && !my_isspace(cmdline[cursor-1]) )...
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...= (int)fdstat.st_size;
+ *st_mode = fdstat.st_mode;
+ return de_size;
+} /* rosh_ls_de_size_mode */
+
+/* Returns the Inode number if fdstat contains it
+ * fdstat struct to extract inode from if not COM32, for now
+ */
+long rosh_ls_d_ino(struct stat *fdstat)
+{
+ long de_ino;
+#ifdef __COM32__
+ if (fdstat)
+ de_ino = -1;
+ else
+ de_ino = 0;
+#else /* __COM32__ */
+ de_ino = fdstat->st_ino;
+#endif /* __COM32__ */
+ return de_ino;
+}
+
+/* Convert a d_type to a single char in human readable format
+ * d_type d_type to convert
+ * returns human readable single character; a...
2009 Feb 15
2
COM32 module: Read-Only shell
...incorporated herein by reference.
+##
+## -----------------------------------------------------------------------
+
+##
+## COM32 GRC configurables
+##
+
+## Include the COM32 common configurables
+include ../MCONFIG
+
+# CFLAGS = $(GCCOPT) -W -Wall -march=i386 \
+# -fomit-frame-pointer -D__COM32__ \
+# -nostdinc -iwithprefix include \
+# -I$(com32)/libutil/include -I$(com32)/include
+# -g3 -dD
+
+# LNXCFLAGS = -I$(com32)/libutil/include -W -Wall -O -g3 -D_GNU_SOURCE -dD
+# -U__GNUC__
diff --git a/com32/rosh/Makefile b/com32/rosh/Makefile
new file mode 100644
index 0000000..f...
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...is normal unless
the maximum length is met/exceeded. */
if (str[curpos - 1] == ' ')
str[--curpos] = '\0';
return curpos;
} /* rosh_argcat */
int main (int argc, char *argv[])
{
char in[INS];
int inl;
char *ret;
int argc2;
char **argv2;
#ifdef __COM32__
console_ansi_std();
#endif
inl = argcat(in, INS, argc, argv);
printf(" %d: ", inl);
puts(in);
argc2 = parse_args1(&argv2, in);
print_argv(argc2, argv2);
free_args1(&argv2);
puts("");
return 0;
}
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
...ude <core-elf.h>
#include <sys/module.h>
#include "menu.h"
diff --git a/com32/elflink/modules/printmsg.c b/com32/elflink/modules/printmsg.c
index da9ec29..e5fc62c 100644
--- a/com32/elflink/modules/printmsg.c
+++ b/com32/elflink/modules/printmsg.c
@@ -26,6 +26,7 @@
#ifdef __COM32__
#include <com32.h>
#endif
+#include <core-elf.h>
#include "menu.h"
diff --git a/core/elflink/core-elf.h b/core/elflink/core-elf.h
index d13f506..dcca900 100644
--- a/core/elflink/core-elf.h
+++ b/core/elflink/core-elf.h
@@ -18,9 +18,9 @@ enum kernel_type {
KT_CONFI...
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
Here are the patches that I've got queued up based on the very helpful
feedback I received from people testing Syslinux 5.00-pre9. Unless
anyone has any concerns these will make it into Syslinux 5.00-pre10.
Matt Fleming (9):
pxe: Don't call open_config() from the pxe core
ldlinux: Print a warning if no config file is found
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and