~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/client.c

  • Committer: Brian Aker
  • Date: 2009-02-02 23:10:18 UTC
  • mfrom: (779.3.40 devel)
  • Revision ID: brian@tangent.org-20090202231018-zlp0hka6kgwy1vfy
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
/*
21
 
  This file is included by both libdrizzle.c (the DRIZZLE client C API)
 
21
  This file is included by both libdrizzleclient.c (the DRIZZLE client C API)
22
22
  and the drizzled server to connect to another DRIZZLE server.
23
23
 
24
24
  The differences for the two cases are:
37
37
  server.
38
38
*/
39
39
 
 
40
 
 
41
#include "libdrizzle_priv.h"
 
42
#include "net_serv.h"
 
43
#include "pack.h"
 
44
#include "errmsg.h"
 
45
#include "local_infile.h"
 
46
#include "drizzle_methods.h"
 
47
 
40
48
#include <stdarg.h>
41
 
 
42
 
#include <libdrizzle/libdrizzle.h>
43
 
#include <libdrizzle/net_serv.h>
44
 
#include "libdrizzle_priv.h"
45
 
#include <libdrizzle/pack.h>
46
 
 
47
49
#include <sys/poll.h>
48
50
#include <sys/ioctl.h>
49
51
 
53
55
#undef max_allowed_packet
54
56
#undef net_buffer_length
55
57
 
56
 
#include <libdrizzle/errmsg.h>
57
58
 
58
59
#include <sys/stat.h>
59
60
#include <signal.h>
79
80
 
80
81
 
81
82
#include <drizzled/gettext.h>
82
 
#include "local_infile.h"
83
 
 
84
 
 
85
 
 
86
 
 
87
 
 
88
 
 
89
83
 
90
84
 
91
85
#if defined(HAVE_GETPWUID) && defined(NO_GETPWUID_DECL)
94
88
#endif
95
89
 
96
90
 
97
 
 
98
91
/*****************************************************************************
99
92
  Read a packet from server. Give error message if socket was down
100
93
  or packet is an error message