search for: parse_lin

Displaying 9 results from an estimated 9 matches for "parse_lin".

Did you mean: parse_line
2010 Aug 27
0
Writing custom package provider for tazpkg
...der can install a package just fine, the problem comes when a package is already installed and should not be installed again. It seems my REGEX is not matching any of the installed packages in the list and just tries to do an install again. I know the problem must lie in the REGEX used by the self.parse_line method as puppet always returns no matches. Please see below for sample output from querying tazpkg and the errors puppet is throwing. In my example I want to ensure the screen package is installed, as you can see in the output puppet fails to match it and installs it again. ========== Puppetd Er...
2005 Aug 22
0
Segfault in imap
...7 0x0809f9d9 in io_loop_run (ioloop=0x80be9b0) at ioloop.c:230 #8 0x08060877 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:229 (gdb) p *data $1 = {flags = 0, date = 0, received_date = 1124608407, virtual_size = 2870, physical_size = 2856, sent_date = {time = -1, timezone = 0}, parse_line = { field_idx = 0, start_pos = 0, end_pos = 0, line_num = 0, cache = 0}, parse_line_num = 0, parts = 0x0, envelope = 0x0, body = 0x0, bodystructure = 0x0, uid_string = 0x0, envelope_data = 0x0, seq = 11473, rec = 0xb7de7088, cache_flags = 0, access_part = 3, stream = 0x80cc224, fi...
2006 Jan 31
1
beta2: strange assert
...>, expunge = 0x491c8 <index_mail_expunge>}, pool = 0xbb940, module_contexts = {buffer = 0xbbad8, element_size = 4}}, data = { flags = MAIL_SEEN, date = 0, received_date = 1138391916, virtual_size = 35917, physical_size = 35337, sent_date = {time = -1, timezone = 0}, parse_line = {field_idx = 4294967295, start_pos = 168, end_pos = 201, line_num = 32, cache = 1}, parse_line_num = 41, parts = 0x0, envelope = 0xc0f10 "\"Fri, 27 Jan 2006 14:58:13 -0500 (EST)\" \"Your Order Confirmation\" ((NIL NIL \"customerservice\" \"st...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...int i, j; + + for (i = 0, j = 0; i < len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0'; + + return j ? i : 0; +} + +static int parse_line(char *str, u16 *bdf, u16 *nvfs, char **ptr) +{ + u8 b, d, f, val; + int err; + char *p; + + + err = sscanf(str, "NumVFs=%hu", nvfs); + if (err == 1) + return 1; + + err = sscanf(str, "%2hhx:%2hhx.%1hhu=%1hhu", &b, &d, &f, &val); + if (err != 4) + return -EINVA...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...int i, j; + + for (i = 0, j = 0; i < len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0'; + + return j ? i : 0; +} + +static int parse_line(char *str, u16 *bdf, u16 *nvfs, char **ptr) +{ + u8 b, d, f, val; + int err; + char *p; + + + err = sscanf(str, "NumVFs=%hu", nvfs); + if (err == 1) + return 1; + + err = sscanf(str, "%2hhx:%2hhx.%1hhu=%1hhu", &b, &d, &f, &val); + if (err != 4) + return -EINVA...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...int i, j; + + for (i = 0, j = 0; i < len; i++) { + if (j == 0 && isspace(str[i])) + continue; + + if (str[i] == '\n') + break; + + if (j >= VF_PARAM_LEN - 1) + return -E2BIG; + + buf[j++] = str[i]; + } + + buf[j] = '\0'; + + return j ? i : 0; +} + +static int parse_line(char *str, u16 *bdf, u16 *nvfs, char **ptr) +{ + u8 b, d, f, val; + int err; + char *p; + + + err = sscanf(str, "NumVFs=%hu", nvfs); + if (err == 1) + return 1; + + err = sscanf(str, "%2hhx:%2hhx.%1hhu=%1hhu", &b, &d, &f, &val); + if (err != 4) + return -EINVA...
2006 Apr 05
7
Regex for splitting string
Hi We have a search website where the user can type in individual words separated by spaces and/or phrases enclosed in single or double quotes. We are looking for a way to obtain a list of words and phrases from the search string. Can someone help? Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2005 Jun 04
0
Crash and Assertion Error
...7 0x0809dd69 in io_loop_run (ioloop=0x80bb9b0) at ioloop.c:218 #8 0x08060587 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:228 (gdb) p *data $2 = {flags = 0, date = 0, received_date = 1117844856, virtual_size = 2735, physical_size = 2721, sent_date = {time = -1, timezone = 0}, parse_line = { field_idx = 4294967295, start_pos = 67, end_pos = 118, line_num = 29, cache = 1}, parse_line_num = 53, parts = 0x80cb018, envelope = 0x0, body = 0x0, bodystructure = 0x0, uid_string = 0x0, envelope_data = 0x0, seq = 9276, rec = 0xb7dd3854, cache_flags = 0, stream = 0x80f53c4,...
2002 Oct 05
2
ogg123 remote interface
...(buf_t *)arg; DEBUG("Enter buffer_thread_cleanup"); } diff -urN -X diff.ignore ogg123.orig/cfgfile_options.c ogg123/cfgfile_options.c --- ogg123.orig/cfgfile_options.c Sat Jan 26 12:06:37 2002 +++ ogg123/cfgfile_options.c Sat Oct 5 14:35:29 2002 @@ -221,7 +221,7 @@ parse_code_t parse_line (file_option_t opts[], char *line) { - char *equals, *value = ""; + char *equals, *value = 0; file_option_t *opt; int len; diff -urN -X diff.ignore ogg123.orig/ogg123.c ogg123/ogg123.c --- ogg123.orig/ogg123.c Sat Oct 5 14:32:34 2002 +++ ogg123/ogg123.c Sat Oct 5 14:36:55 20...