Cross Reference: /pkg/src/modules/portable/os_sunos.py
os_sunos.py revision 383
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
290N/A#!/usr/bin/python
290N/A#
290N/A# CDDL HEADER START
290N/A#
290N/A# The contents of this file are subject to the terms of the
290N/A# Common Development and Distribution License (the "License").
290N/A# You may not use this file except in compliance with the License.
290N/A#
290N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
290N/A# or http://www.opensolaris.org/os/licensing.
290N/A# See the License for the specific language governing permissions
290N/A# and limitations under the License.
290N/A#
290N/A# When distributing Covered Code, include this CDDL HEADER in each
290N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
290N/A# If applicable, add the following below this CDDL HEADER, with the
290N/A# fields enclosed by brackets "[]" replaced with your own identifying
290N/A# information: Portions Copyright [yyyy] [name of copyright owner]
290N/A#
290N/A# CDDL HEADER END
290N/A#
290N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
290N/A# Use is subject to license terms.
290N/A#
290N/A
290N/A"""
290N/AMost of the generic unix methods of our superclass can be used on
290N/ASolaris. For the following methods, there is a Solaris-specific
290N/Aimplementation in the 'arch' extension module.
290N/A"""
290N/A
383N/Afrom os_unix import \
383N/A get_group_by_name, get_user_by_name, get_name_by_gid, get_name_by_uid, \
383N/A is_admin, get_username, chown, rename, link, copyfile, split_path, get_root
290N/Aimport pkg.arch as arch
290N/A
290N/Adef get_isainfo():
290N/A return arch.get_isainfo()
290N/A
290N/Adef get_release():
290N/A return arch.get_release()
290N/A
290N/Adef get_platform():
290N/A return arch.get_platform()