search for: filestr

Displaying 7 results from an estimated 7 matches for "filestr".

2010 Jun 27
1
[PATCH] ROSH: Upgraded
...r); + } + } + break; + case 1: + default: + rosh_version(); + puts(rosh_help_str1); + } +} + /* Handle most/all errors * ierrno Input Error number * cmdstr Command being executed to cause error @@ -143,26 +152,38 @@ void rosh_error(const int ierrno, const char *cmdstr, const char *filestr) { printf("--ERROR: %s '%s': ", cmdstr, filestr); switch (ierrno) { - case EACCES: - printf("Access DENIED\n"); + case 0: + puts("NO ERROR"); break; case ENOENT: - printf("not found\n"); + puts("not found"); /* SYSL...
2009 Mar 05
0
[PATCH 5/5] COM32/rosh: Improvements
...r_adv, istr); + } + } + break; + case 1: default: + rosh_version(); + puts(rosh_help_str1); + } +} + /* Handle most/all errors * ierrno Input Error number * cmdstr Command being executed to cause error @@ -138,21 +159,27 @@ void rosh_error(const int ierrno, const char *cmdstr, const char *filestr) { printf("--ERROR: %s '%s': ", cmdstr, filestr); switch (ierrno) { - case EACCES: printf("Access DENIED\n"); + case 0: puts("NO ERROR"); break; - case ENOENT: printf("not found\n"); + case ENOENT: puts("not found"); /* SYSLinux-3...
2009 Feb 15
2
COM32 module: Read-Only shell
...epos > bpos) { + memcpy(dest, src + bpos, epos-bpos); + if (dest[epos - bpos] != 0) + dest[epos - bpos] = 0; + } else { + epos = strlen(src); + dest[0] = 0; + } + return epos; +} + +/* Handle most/all errors + * ierrno Input Error number + * cmdstr Command being executed to cause error + * filestr File/parameter causing error + */ +void rosh_error(const int ierrno, const char *cmdstr, const char *filestr) +{ + printf("--ERROR: %s '%s': ", cmdstr, filestr); + switch (ierrno) { + case EACCES: printf("Access DENIED\n"); + break; + case ENOENT: printf("not found...
2015 Oct 31
1
Example input data with example output using relative pathway in vignette of R package?
...es and OutputFiles. And I put the example file (exampleData.csv) inside of the InputFiles subdirectory (/Users/userName/myPackage/inst/extdata/InputFiles). My vignette is located in: /Users/userName/myPackage/vignettes/myPackage.Rnw It contains the following syntax: <<eval=FALSE>>= fileString = "/Users/userName/myPackage/inst/extdata/InputFiles/exampleData.csv" doFunction1(fileString) doFunction2(fileString) doFunction3(fileString, output ="Users/userName/myPackage/inst/extdata/OutputFiles")@ I am having two problems with developing this vignette and its example...
2012 Dec 21
0
segfault reading large BLOB from SQL Server
...the FreeTDS ODBC driver, and it has been working fine when reading from this same database. I have included relevant parts of the session below. Each row of the v_MAFiles view holds a text, html or pdf version of a document. The FileType entry is one of TXT, PDF, or HTML. If it's PDF, the FileString variable is empty and the FileBLOB holds the (binary) contents of the pdf. If FileType is TXT or HTML, then FileBLOB is empty and the file contents are in FileString. Note that the COLUMN_SIZE for FileBLOB and FileString are both 2 GB. However, the actual strings and blobs in there are actuall...
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
...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_IS...