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/mkrootall

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 #!/bin/rc
    2 
    3 rfork e
    4 n=`{echo $#*^'%3' | hoc}
    5 if(! ~ $n 0){
    6         echo 'usage: mkrootall [name cname file]...' >[1=2]
    7         exit usage
    8 }
    9 
   10 tmp=mkroot.$pid.out
   11 fn sigexit {
   12         rm -f $tmp
   13 }
   14 
   15 allcname=()
   16 while(! ~ $#* 0){
   17         name=$1
   18         cname=$2
   19         file=$3
   20         shift
   21         shift 
   22         shift
   23         allcname=($allcname $cname)
   24         cp $file $tmp
   25         t=`{file $tmp}
   26         # do not strip venti - it uses its own symbols
   27         if(~ $"t *executable* && ! ~ $name venti)
   28                 strip $tmp
   29         aux/data2s $cname < $tmp
   30 }
   31 exit 0

Cache object: 6b60bda64979431b03b21afd8e43270e


[ 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.