~eday/drizzle/eday-dev

« back to all changes in this revision

Viewing changes to drizzled/internal/my_delete.cc

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (971.3.291 staging)
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

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/mysys_priv.h"
17
 
#include "mysys/mysys_err.h"
 
16
#include "drizzled/internal/mysys_priv.h"
 
17
#include "drizzled/my_error.h"
18
18
 
19
19
int my_delete(const char *name, myf MyFlags)
20
20
{
22
22
 
23
23
  if ((err = unlink(name)) == -1)
24
24
  {
25
 
    my_errno=errno;
 
25
    errno=errno;
26
26
    if (MyFlags & (MY_FAE+MY_WME))
27
27
      my_error(EE_DELETE,MYF(ME_BELL+ME_WAITTANG+(MyFlags & ME_NOINPUT)),
28
28
               name,errno);