2N/A/*
2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A
2N/A/*
2N/A * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
2N/A * Copyright (c) 2000 by Internet Software Consortium, Inc.
2N/A *
2N/A * Permission to use, copy, modify, and distribute this software for any
2N/A * purpose with or without fee is hereby granted, provided that the above
2N/A * copyright notice and this permission notice appear in all copies.
2N/A *
2N/A * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
2N/A * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
2N/A * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
2N/A * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2N/A * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2N/A * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
2N/A * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2N/A */
2N/A
2N/A
2N/A#include <port_before.h>
2N/A#include <stdio.h>
2N/A#include <isc/misc.h>
2N/A#include <port_after.h>
2N/A#ifndef HAVE_MOVEFILE
2N/A/*
2N/A * rename() is lame (can't overwrite an existing file) on some systems.
2N/A * use movefile() instead, and let lame OS ports do what they need to.
2N/A */
2N/A
2N/Aint
2N/Aisc_movefile(const char *oldname, const char *newname) {
2N/A return (rename(oldname, newname));
2N/A}
2N/A#else
2N/A static int os_port_has_isc_movefile = 1;
2N/A#endif
2N/A
2N/A/*! \file */