Home | History | Annotate | Download | only in orig

Lines Matching full:zfile

1903   const char *zFile;
1906 zFile = (const char*)sqlite3_value_text(argv[0]);
1907 if( zFile==0 ) return;
1908 out = fopen(zFile, "wb");
2101 static FILE *output_file_open(const char *zFile){
2103 if( strcmp(zFile,"stdout")==0 ){
2105 }else if( strcmp(zFile, "stderr")==0 ){
2107 }else if( strcmp(zFile
2110 f = fopen(zFile, "wb");
2112 fprintf(stderr, "Error: cannot open \"%s\"\n", zFile);
2144 const char *zFile; /* Name of the input file */
2216 p->zFile, p->nLine, cQuote);
2220 p->zFile, startLine, cQuote);
2969 char *zFile; /* Name of file to extra content from */
2985 zFile = azArg[1];
3018 sCtx.zFile = zFile;
3020 if( sCtx.zFile[0]=='|' ){
3025 sCtx.in = popen(sCtx.zFile+1, "r");
3026 sCtx.zFile = "<pipe>";
3030 sCtx.in = fopen(sCtx.zFile, "rb");
3039 fprintf(stderr, "Error: cannot open \"%s\"\n", zFile);
3065 fprintf(stderr,"%s: empty file\n", sCtx.zFile);
3134 sCtx.zFile, startLine, nCol, i+1);
3146 sCtx.zFile, startLine, nCol, i);
3152 fprintf(stderr, "%s:%d: INSERT failed: %s\n", sCtx.zFile, startLine,
3292 const char *zFile, *zProc;
3299 zFile = azArg[1];
3302 rc = sqlite3_load_extension(p->db, zFile, zProc, &zErrMsg);
3316 const char *zFile = azArg[1];
3318 p->pLog = output_file_open(zFile);
3390 const char *zFile = nArg>=2 ? azArg[1] : "stdout";
3407 if( zFile[0]=='|' ){
3413 p->out = popen(zFile + 1, "w");
3415 fprintf(stderr,"Error: cannot open pipe \"%s\"\n", zFile + 1);
3419 sqlite3_snprintf(sizeof(p->outfile), p->outfile, "%s", zFile);
3423 p->out = output_file_open(zFile);
3425 if( strcmp(zFile,"off")!=0 ){
3426 fprintf(stderr,"Error: cannot write to \"%s\"\n", zFile);
3431 sqlite3_snprintf(sizeof(p->outfile), p->outfile, "%s", zFile);