~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_delete.cc

  • Committer: Monty Taylor
  • Date: 2009-01-29 19:04:39 UTC
  • mto: (779.3.29 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090129190439-vfr95s6gaudjacm7
Add timegm which is missing on Solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
 
 
16
 
#include "config.h"
17
 
 
18
 
#include "drizzled/internal/my_sys.h"
19
 
#include "drizzled/error.h"
20
 
 
21
 
namespace drizzled
22
 
{
23
 
namespace internal
24
 
{
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
15
 
 
16
#include "mysys_priv.h"
 
17
#include "mysys_err.h"
25
18
 
26
19
int my_delete(const char *name, myf MyFlags)
27
20
{
29
22
 
30
23
  if ((err = unlink(name)) == -1)
31
24
  {
32
 
    errno=errno;
 
25
    my_errno=errno;
33
26
    if (MyFlags & (MY_FAE+MY_WME))
34
27
      my_error(EE_DELETE,MYF(ME_BELL+ME_WAITTANG+(MyFlags & ME_NOINPUT)),
35
28
               name,errno);
39
32
    err= -1;
40
33
  return(err);
41
34
} /* my_delete */
42
 
 
43
 
} /* namespace internal */
44
 
} /* namespace drizzled */