003 File Manager
Current Path:
/usr/src/stand/common
usr
/
src
/
stand
/
common
/
📁
..
📄
Makefile.depend
(176 B)
📄
bcache.c
(13.36 KB)
📄
boot.c
(9.81 KB)
📄
bootstrap.h
(12.21 KB)
📄
commands.c
(11.33 KB)
📄
console.c
(7.79 KB)
📄
dev_net.c
(10.62 KB)
📄
dev_net.h
(1.48 KB)
📄
devopen.c
(2.36 KB)
📄
disk.c
(11.71 KB)
📄
disk.h
(4.1 KB)
📄
gfx_fb.c
(67.01 KB)
📄
gfx_fb.h
(8.12 KB)
📄
help.common
(13.34 KB)
📄
install.c
(8.46 KB)
📄
interp.c
(4.62 KB)
📄
interp_backslash.c
(3.35 KB)
📄
interp_forth.c
(12.43 KB)
📄
interp_lua.c
(5.31 KB)
📄
interp_parse.c
(4.8 KB)
📄
interp_simple.c
(4.77 KB)
📄
isapnp.c
(7.77 KB)
📄
isapnp.h
(10.19 KB)
📄
load_elf.c
(33.26 KB)
📄
load_elf32.c
(129 B)
📄
load_elf32_obj.c
(133 B)
📄
load_elf64.c
(97 B)
📄
load_elf64_obj.c
(101 B)
📄
load_elf_obj.c
(15.16 KB)
📄
ls.c
(5.52 KB)
📄
md.c
(3.64 KB)
📄
merge_help.awk
(2.11 KB)
📄
metadata.c
(9.89 KB)
📄
misc.c
(4.04 KB)
📄
module.c
(38.98 KB)
📄
newvers.sh
(2.31 KB)
📄
nvstore.c
(6.57 KB)
📄
part.c
(24.07 KB)
📄
part.h
(2.65 KB)
📄
paths.h
(1.74 KB)
📄
pnp.c
(3.76 KB)
📄
rbx.h
(1.97 KB)
📄
readin.h
(1.68 KB)
📄
reloc_elf.c
(6.05 KB)
📄
reloc_elf32.c
(98 B)
📄
reloc_elf64.c
(98 B)
📄
self_reloc.c
(3.72 KB)
📄
vdisk.c
(9.47 KB)
📄
zfs_cmd.c
(2.66 KB)
Editing: merge_help.awk
#!/usr/bin/awk -f # # $FreeBSD$ # # Merge two boot loader help files for FreeBSD 3.0 # Joe Abley <jabley@patho.gen.nz> BEGIN \ { state = 0; first = -1; ind = 0; } # beginning of first command /^###/ && (state == 0) \ { state = 1; next; } # entry header /^# T[[:graph:]]+ (S[[:graph:]]+ )*D[[:graph:]][[:print:]]*$/ && (state == 1) \ { match($0, " T[[:graph:]]+"); T = substr($0, RSTART + 2, RLENGTH - 2); match($0, " S[[:graph:]]+"); SSTART = RSTART S = (RLENGTH == -1) ? "" : substr($0, RSTART + 2, RLENGTH - 2); match($0, " D[[:graph:]][[:print:]]*$"); D = substr($0, RSTART + 2); if (SSTART > RSTART) S = ""; # find a suitable place to store this one... ind++; if (ind == 1) { first = ind; help[ind, "T"] = T; help[ind, "S"] = S; help[ind, "link"] = -1; } else { i = first; j = -1; while (help[i, "T"] help[i, "S"] < T S) { j = i; i = help[i, "link"]; if (i == -1) break; } if (i == -1) { help[j, "link"] = ind; help[ind, "link"] = -1; } else { help[ind, "link"] = i; if (j == -1) first = ind; else help[j, "link"] = ind; } } help[ind, "T"] = T; help[ind, "S"] = S; help[ind, "D"] = D; # set our state state = 2; help[ind, "text"] = 0; next; } # end of last command, beginning of next one /^###/ && (state == 2) \ { state = 1; } (state == 2) \ { sub("[[:blank:]]+$", ""); if (help[ind, "text"] == 0 && $0 ~ /^[[:blank:]]*$/) next; help[ind, "text", help[ind, "text"]] = $0; help[ind, "text"]++; next; } # show them what we have (it's already sorted in help[]) END \ { node = first; while (node != -1) { printf "################################################################################\n"; printf "# T%s ", help[node, "T"]; if (help[node, "S"] != "") printf "S%s ", help[node, "S"]; printf "D%s\n\n", help[node, "D"]; for (i = 0; i < help[node, "text"]; i++) printf "%s\n", help[node, "text", i]; node = help[node, "link"]; } printf "################################################################################\n"; }
Upload File
Create Folder