~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/my_open.cc

  • Committer: Lee Bieber
  • Date: 2010-01-30 23:42:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1282.
  • Revision ID: lbieber@lee-biebers-macbook-pro.local-20100130234202-sxmqfteqwiq15ptg
add target to japanese tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "config.h"
17
 
 
18
 
#include "drizzled/internal/my_sys.h"
19
 
#include "drizzled/error.h"
 
16
#include "drizzled/internal/mysys_priv.h"
 
17
#include "drizzled/my_error.h"
20
18
 
21
19
#include <fcntl.h>
22
20
 
24
22
#include <cstdlib>
25
23
#include <cstring>
26
24
 
27
 
 
28
 
namespace drizzled
29
 
{
30
 
namespace internal
31
 
{
32
 
 
33
25
/*
34
26
  Open a file
35
27
 
85
77
    if (MyFlags & (MY_FAE | MY_WME))
86
78
      my_error(EE_BADCLOSE, MYF(ME_BELL+ME_WAITTANG), "unknown", errno);
87
79
  }
 
80
  my_file_opened--;
88
81
 
89
82
  return(err);
90
83
} /* my_close */
111
104
{
112
105
  if ((int) fd >= 0)
113
106
  {
 
107
    my_file_opened++;
 
108
    my_file_total_opened++;
 
109
 
114
110
    return fd;
115
111
  }
116
112
  else
125
121
  }
126
122
  return -1;
127
123
}
128
 
 
129
 
} /* namespace internal */
130
 
} /* namespace drizzled */