usr/src/lib/libict/ict_private.h
author Alasdair Lumsden <al@everycity.co.uk>
Tue, 16 Aug 2011 20:54:07 +0000
branchoi_151a
changeset 1402 f7224fc77cc8
parent 872 8b098e92c2a9
permissions -rw-r--r--
imported patch oi-branding-lib-libict
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     1
/*
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     2
 * CDDL HEADER START
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     3
 *
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     4
 * The contents of this file are subject to the terms of the
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     5
 * Common Development and Distribution License (the "License").
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     6
 * You may not use this file except in compliance with the License.
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     7
 *
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     8
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
     9
 * or http://www.opensolaris.org/os/licensing.
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    10
 * See the License for the specific language governing permissions
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    11
 * and limitations under the License.
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    12
 *
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    13
 * When distributing Covered Code, include this CDDL HEADER in each
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    14
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    15
 * If applicable, add the following below this CDDL HEADER, with the
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    16
 * fields enclosed by brackets "[]" replaced with your own identifying
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    17
 * information: Portions Copyright [yyyy] [name of copyright owner]
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    18
 *
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    19
 * CDDL HEADER END
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    20
 */
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    21
/*
852
d4a0239a3745 15678 /etc/default/kbd is to be obsoleted by 6944480, installers need to be accommodated
Jan Damborsky <jan.damborsky@sun.com>
parents: 771
diff changeset
    22
 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    23
 */
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    24
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    25
#ifndef _ICT_PRIVATE_H
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    26
#define	_ICT_PRIVATE_H
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    27
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    28
#ifdef __cplusplus
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    29
extern "C" {
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    30
#endif
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    31
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    32
#include <ict_api.h>
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    33
#include <ls_api.h>
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    34
#include <ti_api.h>
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    35
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    36
/*
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    37
 * General defines
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    38
 */
1402
f7224fc77cc8 imported patch oi-branding-lib-libict
Alasdair Lumsden <al@everycity.co.uk>
parents: 872
diff changeset
    39
#define	DEFAULT_HOSTNAME	"openindiana"
f7224fc77cc8 imported patch oi-branding-lib-libict
Alasdair Lumsden <al@everycity.co.uk>
parents: 872
diff changeset
    40
#define	SOLARIS			"openindiana"
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    41
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    42
/*
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    43
 * Root and user default defines
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    44
 */
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    45
#define	ROOT_NAME		"root"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    46
#define	ROOT_PATH		"/"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    47
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    48
#define	USER_PATH		"/export/home/"
335
fdf2d4beea8e 4108 The .profile file is missing in the default user's directory after installation
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 332
diff changeset
    49
#define	USER_STARTUP_SRC	"/etc/skel"
fdf2d4beea8e 4108 The .profile file is missing in the default user's directory after installation
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 332
diff changeset
    50
#define	USER_PROFILE		".profile"
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    51
#define	USER_BASHRC		".bashrc"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    52
#define	USER_HOME		"export/home"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    53
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    54
/*
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    55
 * file path defines
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    56
 */
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    57
#define	PATH_DEVNULL		"/dev/null"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    58
#define	HOSTS_FILE		"/etc/inet/hosts"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    59
#define	INIT_FILE		"/etc/default/init"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    60
#define	NODENAME		"/etc/nodename"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    61
#define	PASSWORD_FILE		"/etc/passwd"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    62
#define	SHADOW_FILE		"/etc/shadow"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    63
#define	EXPORT_FS		"/export/home"
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 231
diff changeset
    64
332
9d076128dd86 4344 ICT fails to create user account if real name contains an apostrophe
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 272
diff changeset
    65
/*
9d076128dd86 4344 ICT fails to create user account if real name contains an apostrophe
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 272
diff changeset
    66
 * Defines used by ict_escape()
9d076128dd86 4344 ICT fails to create user account if real name contains an apostrophe
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 272
diff changeset
    67
 */
9d076128dd86 4344 ICT fails to create user account if real name contains an apostrophe
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 272
diff changeset
    68
#define	APOSTROPHE		'\047'
9d076128dd86 4344 ICT fails to create user account if real name contains an apostrophe
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 272
diff changeset
    69
#define	BACK_SLASH		'\134'
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    70
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    71
/*
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    72
 * ICT message format text
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    73
 */
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    74
#define	CHOWN_FAIL		"%s chown of %s %d:%d returned error %s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    75
#define	CHMOD_FAIL		"%s chmod of %s returned error %s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    76
#define	CHOWN_INVALID		"%s Cannot change ownership of %s to %d:%d\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    77
#define	CREATE_USERDIR_FAIL	"%s mkdir of %s failed with error: %s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    78
#define	CURRENT_ICT		"current task: %s\n"
407
694e65909fa5 4163 Blocker bug for ICT work required for SPARC
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 335
diff changeset
    79
#define	INSTALLBOOT_MSG		"%s Installing the bootloader\n"
694e65909fa5 4163 Blocker bug for ICT work required for SPARC
Joseph J Vlcek <Joseph.Vlcek@Sun.COM>
parents: 335
diff changeset
    80
#define	INSTALLBOOT_UNAME_ERROR "%s uname failed\n"
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    81
#define	INVALID_ARG		"%s Invalid argument provided\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    82
#define	LIST_TBL_ENTRY_FAIL	"%s No Entry. %s.\n\tAttempting to add it.\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    83
#define	MALLOC_FAIL		"%s malloc failed for: %s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    84
#define	NOSPACE_USER_PATH	"%s Unable to allocate space for user path.\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    85
#define	NOLOGIN_SPECIFIED	"%s No login name was specified.\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    86
#define	NVLIST_ALC_FAIL		"%s nvlist_alloc failed\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    87
#define	NVLIST_ADD_FAIL		"%s nvlist_add_string %s failed\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    88
#define	RM_TBL_ENTRY_FAIL	"%s Could not remove table entry for %s\n%s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    89
#define	SET_TBL_ENTRY_FAIL	"%s Could not set table entry %s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    90
#define	SET_USR_PW		"%s Set %s in password and shadow file\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    91
#define	SNAPSHOT_MSG		"%s using: pool %s snapshot %s\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    92
#define	SNAPSHOT_FAIL		"%s be_create_snapshot() failed with: %d\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    93
#define	SUCCESS_MSG		"%s Succeeded\n"
231
4519ec86489a libict.so.1 is failing to build
William Schumann <william.schumann@sun.com>
parents: 229
diff changeset
    94
#define	ICT_SAFE_SYSTEM_CMD	"%s Issuing Command: %s\n"
4519ec86489a libict.so.1 is failing to build
William Schumann <william.schumann@sun.com>
parents: 229
diff changeset
    95
#define	ICT_SAFE_SYSTEM_FAIL	"%s Command %s failed with %d\n"
497
d18198e6514f 4215 AI doesn't set 'root' role and 'Primary Administrator' profile
Ethan Quach <Ethan.Quach@sun.com>
parents: 407
diff changeset
    96
#define	TMPNAM_FAIL		"%s tmpnam failed\n"
229
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    97
#define	TRANS_LOG_FAIL		"%s Transfer Log files from %s to %s failed\n"
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    98
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
    99
/*
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   100
 * Debugging levels
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   101
 */
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   102
#define	ICT_DBGLVL_EMERG	LS_DBG_LVL_EMERG
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   103
#define	ICT_DBGLVL_ERR		LS_DBGLVL_ERR
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   104
#define	ICT_DBGLVL_WARN		LS_DBGLVL_WARN
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   105
#define	ICT_DBGLVL_INFO		LS_DBGLVL_INFO
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   106
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   107
#ifdef __cplusplus
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   108
}
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   109
#endif
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   110
9e8783c6042e 1040 post-installation phase should be redesigned
William Schumann <william.schumann@sun.com>
parents:
diff changeset
   111
#endif	/* _ICT_PRIVATE_H */