The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/port/initcode.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * IMPORTANT!  DO NOT ADD LIBRARY CALLS TO THIS FILE.
    3  * The entire text image must fit on one page.
    4  */
    5 
    6 #include <u.h>
    7 #include <libc.h>
    8 
    9 char cons[] = "#c/cons";
   10 char boot[] = "/boot/boot";
   11 char dev[] = "/dev";
   12 char c[] = "#c";
   13 char e[] = "#e";
   14 char ec[] = "#ec";
   15 char s[] = "#s";
   16 char srv[] = "/srv";
   17 char env[] = "/env";
   18 
   19 void
   20 startboot(char *argv0, char **argv)
   21 {
   22         open(cons, OREAD);
   23         open(cons, OWRITE);
   24         open(cons, OWRITE);
   25         bind(c, dev, MAFTER);
   26         bind(ec, env, MAFTER);
   27         bind(e, env, MCREATE|MAFTER);
   28         bind(s, srv, MREPL|MCREATE);
   29         exec(boot, argv);
   30         for(;;);
   31 }

Cache object: 2b1bd95a6bdabe2ad20ae4dfca2a1bf6


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.