Skip to content

Commit

Permalink
PSARC/2010/169 EOF lx brand
Browse files Browse the repository at this point in the history
6959264 EOF lx brand
  • Loading branch information
Surya Prakki authored and Surya Prakki committed Jun 11, 2010
1 parent c2b2c94 commit eb5a5c7
Show file tree
Hide file tree
Showing 186 changed files with 42 additions and 49,543 deletions.
1 change: 0 additions & 1 deletion usr/src/Makefile.lint
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ i386_SUBDIRS= \
cmd/biosdev \
cmd/rtc \
cmd/ucodeadm \
lib/brand/lx \
lib/cfgadm_plugins/sata \
lib/cfgadm_plugins/sbd \
lib/libfdisk
Expand Down
7 changes: 0 additions & 7 deletions usr/src/Targetdirs
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ i386_DIRS= \
/boot/grub \
/boot/grub/bin \
/platform/i86pc \
/usr/lib/brand/lx \
/usr/lib/brand/lx/amd64 \
/usr/lib/brand/lx/distros \
/usr/lib/xen \
/usr/lib/xen/bin

Expand Down Expand Up @@ -513,9 +510,6 @@ SYM.DIRS= \
/usr/ucblib/32 \
/var/ld/32

i386_SYM.DIRS64= \
/usr/lib/brand/lx/64

sparc_SYM.DIRS64=

SYM.DIRS64= \
Expand Down Expand Up @@ -632,7 +626,6 @@ $(BUILD64) $(ROOT)/lib/crypto/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/lib/secure/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/usr/lib/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/usr/lib/elfedit/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/usr/lib/brand/lx/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/usr/lib/brand/sn1/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/usr/lib/brand/solaris10/64:= LINKDEST=$(MACH64)
$(BUILD64) $(ROOT)/usr/lib/libp/64:= LINKDEST=$(MACH64)
Expand Down
7 changes: 1 addition & 6 deletions usr/src/cmd/devfsadm/i386/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
#
#ident "%Z%%M% %I% %E% SMI"

LINK_OBJS_i386 = \
misc_link_i386.o \
lx_link_i386.o \
xen_link.o

lx_link_i386.o lx_link_i386.po lx_link_i386.ln := CPPFLAGS += -I$(UTSBASE)/common/brand/lx

xen_link.o xen_link.ln xen_link.po := CPPFLAGS += -I$(UTSBASE)/i86xpv

include ../Makefile.com
Expand Down
86 changes: 0 additions & 86 deletions usr/src/cmd/devfsadm/i386/lx_link_i386.c

This file was deleted.

3 changes: 0 additions & 3 deletions usr/src/cmd/truss/codes.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,6 @@ const struct ioc {
{ (uint_t)TIOCSILOOP, "TIOCSILOOP", NULL },
{ (uint_t)TIOCCILOOP, "TIOCSILOOP", NULL },

{ (uint_t)TIOCSETLD, "TIOCSETLD", NULL },
{ (uint_t)TIOCGETLD, "TIOCGETLD", NULL },

{ (uint_t)TIOCGPPS, "TIOCGPPS", NULL },
{ (uint_t)TIOCSPPS, "TIOCSPPS", NULL },
{ (uint_t)TIOCGPPSEV, "TIOCGPPSEV", NULL },
Expand Down
12 changes: 1 addition & 11 deletions usr/src/cmd/zlogin/zlogin.c
Original file line number Diff line number Diff line change
Expand Up @@ -2181,18 +2181,8 @@ main(int argc, char **argv)
/*
* In failsafe mode, we don't use login(1), so don't try
* setting up a utmpx entry.
*
* A branded zone may have very different utmpx semantics.
* At the moment, we only have two brand types:
* Solaris-like (native, sn1) and Linux. In the Solaris
* case, we know exactly how to do the necessary utmpx
* setup. Fortunately for us, the Linux /bin/login is
* prepared to deal with a non-initialized utmpx entry, so
* we can simply skip it. If future brands don't fall into
* either category, we'll have to add a per-brand utmpx
* setup hook.
*/
if (!failsafe && (strcmp(zonebrand, "lx") != 0))
if (!failsafe)
if (setup_utmpx(slaveshortname) == -1)
return (1);

Expand Down
7 changes: 2 additions & 5 deletions usr/src/cmd/zoneadm/svc-zones
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@
# CDDL HEADER END
#
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.

. /lib/svc/share/smf_include.sh

#
# Return a list of running, non-global zones for which a shutdown via
# "/sbin/init 0" may work (typically only Solaris zones.)
#
# At present, this means any running "lx" zones don't qualify.
#
shutdown_zones()
{
zoneadm list -p | nawk -F: '{
if (($5 != "lx") && ($2 != "global")) {
if ($2 != "global") {
print $2
}
}'
Expand Down
Loading

0 comments on commit eb5a5c7

Please sign in to comment.