Home | History | Annotate | Download | only in dist

Lines Matching full:zfile

1909   const char *zFile;
1912 zFile = (const char*)sqlite3_value_text(argv[0]);
1913 if( zFile==0 ) return;
1914 out = fopen(zFile, "wb");
2123 static FILE *output_file_open(const char *zFile){
2125 if( strcmp(zFile,"stdout")==0 ){
2127 }else if( strcmp(zFile, "stderr")==0 ){
2129 }else if( strcmp(zFile, "off")==0 ){
2132 f = fopen(zFile, "wb");
2134 fprintf(stderr, "Error: cannot open \"%s\"\n", zFile);
2166 const char *zFile; /* Name of the input file */
2238 p->zFile, p->nLine, cQuote);
2242 p->zFile, startLine, cQuote);
2991 char *zFile; /* Name of file to extra content from */
3007 zFile = azArg[1];
3040 sCtx.zFile = zFile;
3042 if( sCtx.zFile[0]=='|' ){
3047 sCtx.in = popen(sCtx.zFile+1, "r");
3048 sCtx.zFile = "<pipe>";
3052 sCtx.in = fopen(sCtx.zFile, "rb");
3061 fprintf(stderr, "Error: cannot open \"%s\"\n", zFile);
3087 fprintf(stderr,"%s: empty file\n", sCtx.zFile);
3156 sCtx.zFile, startLine, nCol, i+1);
3168 sCtx.zFile, startLine, nCol, i);
3174 fprintf(stderr, "%s:%d: INSERT failed: %s\n", sCtx.zFile, startLine,
3314 const char *zFile, *zProc;
3321 zFile = azArg[1];
3324 rc = sqlite3_load_extension(p->db, zFile, zProc, &zErrMsg);
3338 const char *zFile = azArg[1];
3340 p->pLog = output_file_open(zFile);
3412 const char *zFile = nArg>=2 ? azArg[1] : "stdout";
3429 if( zFile[0]=='|' ){
3435 p->out = popen(zFile + 1, "w");
3437 fprintf(stderr,"Error: cannot open pipe \"%s\"\n", zFile + 1);
3441 sqlite3_snprintf(sizeof(p->outfile), p->outfile, "%s", zFile);
3445 p->out = output_file_open(zFile);
3447 if( strcmp(zFile,"off")!=0 ){
3448 fprintf(stderr,"Error: cannot write to \"%s\"\n", zFile);
3453 sqlite3_snprintf(sizeof(p->outfile), p->outfile, "%s", zFile);