~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_create.cc

Merged Nathan from lp:~nlws/drizzle/fix-string-c-ptr-overrun

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 "mysys_priv.h"
17
 
#include <my_dir.h>
18
 
#include "mysys_err.h"
 
16
#include "mysys/mysys_priv.h"
 
17
#include "my_dir.h"
 
18
#include "mysys/mysys_err.h"
 
19
 
19
20
#include <errno.h>
20
 
#include <my_sys.h>
21
21
        /*
22
22
        ** Create a new file
23
23
        ** Arguments:
29
29
 
30
30
 
31
31
File my_create(const char *FileName, int CreateFlags, int access_flags,
32
 
               myf MyFlags)
 
32
               myf MyFlags)
33
33
{
34
34
  int fd, rc;
35
35
 
61
61
    my_delete(FileName, MyFlags);
62
62
    my_errno= tmp;
63
63
  }
64
 
  
 
64
 
65
65
  return(rc);
66
66
} /* my_create */