~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleslap.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
#include <stdarg.h>
82
82
#include <sys/types.h>
83
83
#include <sys/wait.h>
 
84
#ifdef HAVE_SYS_STAT_H
 
85
# include <sys/stat.h>
 
86
#endif
 
87
#include <fcntl.h>
 
88
#include <math.h>
84
89
#include <ctype.h>
 
90
#include <cassert>
 
91
#include <cstdlib>
85
92
#include <string>
86
93
 
87
94
/* Added this for string translation. */
174
181
 
175
182
const char *default_dbug_option= "d:t:o,/tmp/drizzleslap.trace";
176
183
const char *opt_csv_str;
177
 
File csv_file;
 
184
int csv_file;
178
185
 
179
186
static int get_options(int *argc,char ***argv);
180
187
static uint32_t opt_drizzle_port= 0;
1527
1534
  {
1528
1535
    if (create_string && !stat(create_string, &sbuf))
1529
1536
    {
1530
 
      File data_file;
 
1537
      int data_file;
1531
1538
      if (!S_ISREG(sbuf.st_mode))
1532
1539
      {
1533
1540
        fprintf(stderr,"%s: Create file was not a regular file\n",
1584
1591
 
1585
1592
    if (user_supplied_query && !stat(user_supplied_query, &sbuf))
1586
1593
    {
1587
 
      File data_file;
 
1594
      int data_file;
1588
1595
      if (!S_ISREG(sbuf.st_mode))
1589
1596
      {
1590
1597
        fprintf(stderr,"%s: User query supplied file was not a regular file\n",
1631
1638
  if (user_supplied_pre_statements
1632
1639
      && !stat(user_supplied_pre_statements, &sbuf))
1633
1640
  {
1634
 
    File data_file;
 
1641
    int data_file;
1635
1642
    if (!S_ISREG(sbuf.st_mode))
1636
1643
    {
1637
1644
      fprintf(stderr,"%s: User query supplied file was not a regular file\n",
1678
1685
  if (user_supplied_post_statements
1679
1686
      && !stat(user_supplied_post_statements, &sbuf))
1680
1687
  {
1681
 
    File data_file;
 
1688
    int data_file;
1682
1689
    if (!S_ISREG(sbuf.st_mode))
1683
1690
    {
1684
1691
      fprintf(stderr,"%s: User query supplied file was not a regular file\n",