~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libmysql/client_settings.h

  • Committer: Brian Aker
  • Date: 2008-07-02 21:31:48 UTC
  • mfrom: (28.1.41 libtool-patch)
  • Revision ID: brian@tangent.org-20080702213148-pc4f4hjt5c9qvp00
Merge from Monty Taylor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
void read_user_name(char *name);
25
25
my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
26
26
 
27
 
/*
28
 
  Let the user specify that we don't want SIGPIPE;  This doesn't however work
29
 
  with threaded applications as we can have multiple read in progress.
30
 
*/
31
27
 
32
 
#if !defined(__WIN__) && defined(SIGPIPE) && !defined(THREAD)
33
 
#define init_sigpipe_variables  sig_return old_signal_handler=(sig_return) 0;
34
 
#define set_sigpipe(mysql)     if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) old_signal_handler=signal(SIGPIPE, my_pipe_sig_handler)
35
 
#define reset_sigpipe(mysql) if ((mysql)->client_flag & CLIENT_IGNORE_SIGPIPE) signal(SIGPIPE,old_signal_handler);
36
 
#else
 
28
/* TODO: Do we still need these now that there's not non-threaded stuff? */
37
29
#define init_sigpipe_variables
38
30
#define set_sigpipe(mysql)
39
31
#define reset_sigpipe(mysql)
40
 
#endif
41
32
 
42
33
void mysql_read_default_options(struct st_mysql_options *options,
43
34
                                const char *filename,const char *group);