src/modules/portable/os_darwin.py
changeset 290 6c5c87515614
child 383 08762e4dac3c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/modules/portable/os_darwin.py	Wed Mar 26 11:32:55 2008 -0700
@@ -0,0 +1,40 @@
+#!/usr/bin/python
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+
+"""
+Most if not all of the os_unix methods apply on Darwin. The methods
+below override the definitions from os_unix
+"""
+
+from os_unix import *
+import macostools
+
+def copyfile(src, dst):
+        """
+        Use the Mac OS X-specific version of copyfile() so that
+        Mac OS X stuff gets handled properly.
+        """
+        macostools.copy(src, dst)
+