sd: remove 'ssd' driver support
[unleashed/tickless.git] / usr / src / lib / libresolv2 / common / isc / movefile.c
blob0ffc7047e26cebcdc756e8e26c6768cd71bbf7f4
1 /*
2 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
7 /*
8 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
9 * Copyright (c) 2000 by Internet Software Consortium, Inc.
11 * Permission to use, copy, modify, and distribute this software for any
12 * purpose with or without fee is hereby granted, provided that the above
13 * copyright notice and this permission notice appear in all copies.
15 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
16 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
17 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
18 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
21 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
25 #include <port_before.h>
26 #include <stdio.h>
27 #include <isc/misc.h>
28 #include <port_after.h>
29 #ifndef HAVE_MOVEFILE
31 * rename() is lame (can't overwrite an existing file) on some systems.
32 * use movefile() instead, and let lame OS ports do what they need to.
35 int
36 isc_movefile(const char *oldname, const char *newname) {
37 return (rename(oldname, newname));
39 #else
40 static int os_port_has_isc_movefile = 1;
41 #endif
43 /*! \file */