init_main.c (f3f0ca6051bef86fa8962f675d6eea17a29c2940) | init_main.c (8a129caed5f1b834a2d3f825478f5f0273f9cb9d) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)init_main.c 8.9 (Berkeley) 1/21/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)init_main.c 8.9 (Berkeley) 1/21/94 |
39 * $Id: init_main.c,v 1.5 1994/08/18 22:34:57 wollman Exp $ | 39 * $Id: init_main.c,v 1.6 1994/08/24 11:50:37 sos Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/filedesc.h> 44#include <sys/errno.h> 45#include <sys/exec.h> 46#include <sys/kernel.h> 47#include <sys/mount.h> --- 50 unchanged lines hidden (view full) --- 98#if __GNUC__ >= 2 99void __main() {} 100#endif 101 102/* 103 * This table is filled in by the linker with functions that need to be 104 * called to initialize various pseudo-devices and whatnot. 105 */ | 40 */ 41 42#include <sys/param.h> 43#include <sys/filedesc.h> 44#include <sys/errno.h> 45#include <sys/exec.h> 46#include <sys/kernel.h> 47#include <sys/mount.h> --- 50 unchanged lines hidden (view full) --- 98#if __GNUC__ >= 2 99void __main() {} 100#endif 101 102/* 103 * This table is filled in by the linker with functions that need to be 104 * called to initialize various pseudo-devices and whatnot. 105 */ |
106 107static void dummyinit() {} 108TEXT_SET(pseudo_set, dummyinit); 109 |
|
106typedef void (*pseudo_func_t)(void); 107extern const struct linker_set pseudo_set; 108static const pseudo_func_t *pseudos = 109 (const pseudo_func_t *)&pseudo_set.ls_items[0]; 110 111/* 112 * System startup; initialize the world, create process 0, mount root 113 * filesystem, and fork to create init and pagedaemon. Most of the --- 313 unchanged lines hidden --- | 110typedef void (*pseudo_func_t)(void); 111extern const struct linker_set pseudo_set; 112static const pseudo_func_t *pseudos = 113 (const pseudo_func_t *)&pseudo_set.ls_items[0]; 114 115/* 116 * System startup; initialize the world, create process 0, mount root 117 * filesystem, and fork to create init and pagedaemon. Most of the --- 313 unchanged lines hidden --- |