search for: cmdstr

Displaying 15 results from an estimated 15 matches for "cmdstr".

2010 Jun 27
1
[PATCH] ROSH: Upgraded
...yright 2008-2010 Gene Cumm - All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,22 +20,24 @@ /* * ToDos: - * Change functions to use pwdstr - * In rosh_run() Reparse cmdstr relative to pwdstr + * rosh_ls(): sorted; then multiple columns */ -// #define DO_DEBUG 1 - /* Uncomment the above line for debugging output; Comment to remove */ -// #define DO_DEBUG2 1 - /* Uncomment the above line for super-debugging output; Must have regular debugging enabled; Comment to rem...
2009 Feb 15
2
COM32 module: Read-Only shell
...hell; Simple shell system designed for SYSLINUX-derivitives. + * Provides minimal commands utilizing the console via stdout/stderr as the + * sole output devices. Designed to compile for Linux for testing/debugging. + */ + +/* + * ToDos: + * Change functions to use pwdstr + * In rosh_run() Reparse cmdstr relative to pwdstr + */ + +// #define DO_DEBUG 1 + /* Uncomment the above line for debugging output; Comment to remove */ +// #define DO_DEBUG2 1 + /* Uncomment the above line for super-debugging output; Must have regular debugging enabled; Comment to remove */ + +#include "rosh.h" + +#de...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...Copyright 2008-2009 Gene Cumm - All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,20 +22,24 @@ * ToDos: * Change functions to use pwdstr * In rosh_run() Reparse cmdstr relative to pwdstr + * rosh_ls(): sorted; then multiple columns */ -// #define DO_DEBUG 1 - /* Uncomment the above line for debugging output; Comment to remove */ -// #define DO_DEBUG2 1 - /* Uncomment the above line for super-debugging output; Must have regular debugging enabled; Comment to rem...
2008 Oct 22
1
NEW: COM32 module to alias
...* __COM32__ */ #define ALIAS_CMD_SZ 128 // #define DO_DEBUG 1 #define APP_LONGNAME "Alias COM32" #define APP_NAME "alias" #define APP_YEAR "2008" #define APP_AUTHOR "Gene Cumm" #define APP_VER "beta-b002" int main(int argc, char *argv[]){ char cmdstr[ALIAS_CMD_SZ]; // Command string to execute int curpos; // Current position in cmdstr; Use memcpy rather than strcat int arglen; // length of current argument string int i; // Initialization curpos = 0; cmdstr[0] = 0; for(i=1; i<argc; i++){ arglen = strlen(argv[i]); memcpy(cmdstr + c...
2008 Oct 27
0
NEW: COM32 module to alias (Revised)
...// #define DO_DEBUG 1 /* Uncomment this for additional output #define APP_LONGNAME "Alias COM32" #define APP_NAME "alias" #define APP_YEAR "2008" #define APP_AUTHOR "Gene Cumm" #define APP_VER "beta-b003" int main(int argc, char *argv[]) { char cmdstr[ALIAS_CMD_SZ]; // Command string to execute int curpos; // Current position in cmdstr; Use memcpy rather than strcat int arglen; // length of current argument string int i; // Initialization curpos = 0; cmdstr[0] = 0; #ifdef DO_DEBUG printf("\n%d\n\n", ALIAS_CMD_SZ); #endif /* DO_...
2009 Feb 22
2
NEW: COM32 module to run another command, optionally clearing the screen
...else # define DEBUG_PRINTF(f, ...) ((void)0) #endif /* DO_DEBUG */ #define APP_LONGNAME "Run COM32" #define APP_NAME "run" #define APP_YEAR "2009" #define APP_AUTHOR "Gene Cumm" #define APP_VER "beta-b005" int main(int argc, char *argv[]) { char cmdstr[RUN_CMD_SZ]; /* Command string to execute */ int curpos; /* Current position in cmdstr; Use memcpy rather than strcat */ int arglen; /* length of current argument string */ int argst; /* Starting argument to listen to */ int i; /* Initialization */ curpos = 0; argst = 1; cmdstr[0] = 0;...
2007 Jun 06
3
string overflow in rpcclient add "printer" driver command
Hello, I get the folowing error msg in rpcclient -c 'adddriver' command: ERROR: string overflow by 1 (1024 - 1023) in safe_strcpy [adddriver "Windows NT x86" "My Driver Name 001:aaa] Printer Driver My Driver Name 001 successfully installed. My command is like this: rpcclient MYSRV -s /etc/samba/smb.conf -A auth.txt -c 'adddriver "Windows NT x86" "My
2011 Apr 01
0
[GIT PULL] elflink cmdline
...\n"); + for (me = all_entries; me; me = me->next ) { + if (!strncmp(prefix, me->label, len)) + printf(" %s\n", me->label); + } +} + static struct menu_entry *find_label(const char *str) { const char *p; @@ -606,6 +618,78 @@ static char *is_message_name(char *cmdstr, enum message_number *msgnr) return NULL; } +static int cat_file(const char *filename) +{ + FILE *f; + char line[2048]; + + f = fopen(filename, "r"); + if (!f) + return -1; + + while (fgets(line, sizeof(line), f) != NULL) + printf("%s", line); + + fclose(f); + return 0...
2003 Oct 26
0
Patches for samba 3.0.0 client/client.c
...imeout = connect_timeout) || + (cli_set_port(cli, port) != port) || !cli_connect(cli, server_name, &ip)) { d_printf("Connection to %s failed\n", desthost); return 1; @@ -2795,6 +2811,7 @@ { "command", 'c', POPT_ARG_STRING, &cmdstr, 'c', "Execute semicolon separated commands" }, { "send-buffer", 'b', POPT_ARG_INT, &io_bufsize, 'b', "Changes the transmit/send buffer", "BYTES" }, { "port", 'p', POPT_ARG_INT, &port, 'p...
2009 Apr 08
0
zpool history coredump
...2008-12-11.14:22:22 zfs snapshot m/ar@20081211 2009-01-16.11:19:32 zfs destroy m/ar@20081211 2009-03-30.19:19:07 zpool clear m 2009-04-06.20:59:09 zpool replace m ad6h ad14h 2009-04-07.13:55:42 zpool import -f m Assertion failed: (*), function nvlist_lookup_string(records[i], ZPOOL_HIST_CMD, &cmdstr) == 0, file /usr/src/cddl/sbin/zpool/../../../cddl/contrib/opensolaris/cmd/zpool/zpool_main.c, line 3338. Abort (core dumped) (gdb) bt #0 0x481dfff7 in kill () from /lib/libc.so.7 #1 0x481dff56 in raise () from /lib/libc.so.7 #2 0x481deb8a in abort () from /lib/libc.so.7 #3 0x481c6546 in __a...
2013 Feb 07
0
There seems a deadlock in libvirt
...= -1, txBuffer = 0x7f69980e9b00 "{\"execute\":\"query-balloon\",\"id\":\"libvirt-1359\"}\r\n", txOffset = 49, txLength = 49, rxBuffer = 0x0, rxLength = 0, rxObject = 0x0, finished = false, passwordHandler = 0, passwordOpaque = 0x0} cmdstr = 0x7f69980ef2f0 "{\"execute\":\"query-balloon\",\"id\":\"libvirt-1359\"}" id = 0x7f69980b0a20 "libvirt-1359" exe = <optimized out> __FUNCTION__ = "qemuMonitorJSONCommandWithFd" __func__ = &q...
2015 Jul 11
0
EXTLINUX - GCC 5
...: (error) Uninitialized variable: p Possibly a false positive. It depends on what pxe_get_cached_info() does to &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. ----------...
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...[P_WIDTH] = {"width", 0}, [P_MARGIN] = {"margin", 10}, @@ -641,6 +653,7 @@ extern uint16_t PXERetry; static struct labeldata ld; static int parse_main_config(const char *filename); +static int parse_bls1_dir(const char *dirname); static char *is_kernel_type(char *cmdstr, enum kernel_type *type) { @@ -1239,6 +1252,40 @@ static void parse_config_file(FILE * f) default_cmd = refstrdup(skipspace(p + 2)); } + else if (looking_at(p, "bls1")) { + p = skipspace(p + 4); + if (looking_at(p, "include")) { + p = skipspace(p + 7); + pa...
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
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a