2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A * Wrapper function to implement reboot w/ arguments on x86 2N/A * platforms. Extract reboot arguments and place them in 2N/A * All other commands are passed through. 2N/A * Pull in the following three interfaces from libscf without introducing 2N/A * a dependency on it, which since libscf depends on libc would be circular: 2N/A * scf_simple_prop_get 2N/A * scf_simple_prop_next_boolean 2N/A * scf_simple_prop_free 2N/A const char *,
const char *,
const char *);
2N/A "scf_simple_prop_next_boolean");
2N/A "uadmin_boot_archive_sync");
2N/A * These functions fabricate appropriate bootargs. 2N/A * If bootargs are passed in, map these functions 2N/A break;
/* no args */ 2N/A break;
/* bad args */ 2N/A /* avoid cancellation in system() */ 2N/A /* First argument is rootdir */ 2N/A * If we are using alternate root via 2N/A * mountpoint or a different BE, don't 2N/A * bother to update the temp menu entry. 2N/A /* are we rebooting to a GRUB menu entry? */