boot.c File Reference

#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
#include <errno.h>
#include <ibm/partition.h>
#include <minix/config.h>
#include <minix/type.h>
#include <minix/com.h>
#include <minix/dmap.h>
#include <minix/const.h>
#include <minix/minlib.h>
#include <minix/syslib.h>
#include <kernel/const.h>
#include <kernel/type.h>
#include "rawfs.h"
#include "boot.h"

Include dependency graph for boot.c:

Go to the source code of this file.

Data Structures

struct  token
struct  biosdev

Defines

#define BIOS   (!UNIX)
#define nil   0
#define _POSIX_SOURCE   1
#define _MINIX   1
#define EXTERN
#define arraysize(a)   (sizeof(a) / sizeof((a)[0]))
#define arraylimit(a)   ((a) + arraysize(a))
#define between(a, c, z)   ((unsigned) ((c) - (a)) <= ((z) - (a)))
#define istty   (1)
#define alarm(n)   (0)
#define null   (resnames[0])
#define b_getenv(name)   (*searchenv(name))
#define DEV_FD0   0x0200
#define minor_p0s0   128
#define apm_perror(label, ax)   ((void)0)
#define apm_printf
#define B_NOSIG   -1

Enumerations

enum  resnames {
  R_NULL, R_BOOT, R_CTTY, R_DELAY,
  R_ECHO, R_EXIT, R_HELP, R_LS,
  R_MENU, R_OFF, R_SAVE, R_SET,
  R_TRAP, R_UNSET
}
enum  whatfun { NOFUN, SELECT, DEFFUN, USERFUN }

Functions

char * bios_err (int err)
char * unix_err (int err)
void rwerr (char *rw, off_t sec, int err)
void readerr (off_t sec, int err)
void writerr (off_t sec, int err)
void readblock (off_t blk, char *buf, int block_size)
char * readline (void)
int sugar (char *tok)
char * onetoken (char **aline)
token ** tokenize (token **acmds, char *line)
char * poptoken (void)
void voidtoken (void)
void parse_code (char *code)
int interrupt (void)
int get_master (char *master, struct part_entry **table, u32_t pos)
void initialize (void)
int reserved (char *s)
void sfree (char *s)
char * copystr (char *s)
int is_default (environment *e)
environment ** searchenv (char *name)
char * b_value (char *name)
char * b_body (char *name)
int b_setenv (int flags, char *name, char *arg, char *value)
int b_setvar (int flags, char *name, char *value)
void b_unset (char *name)
long a2l (char *a)
char * ul2a (u32_t n, unsigned b)
char * ul2a10 (u32_t n)
unsigned a2x (char *a)
void get_parameters (void)
void addparm (char *n)
void save_parameters (void)
void show_env (void)
int numprefix (char *s, char **ps)
int numeric (char *s)
dev_t name2dev (char *name)
static void off (void)
int exec_bootstrap (void)
void boot_device (char *devname)
void ctty (char *line)
void ls (char *dir)
u32_t milli_time (void)
u32_t milli_since (u32_t base)
void unschedule (void)
void schedule (long msec, char *cmd)
int expired (void)
void delay (char *msec)
 if (e->arg![1]=',')
void help (void)
void execute (void)
int run_trailer (void)
void monitor (void)
void bootcdinfo (u32_t, int *, int drive)
void boot (void)

Variables

char version [] = "2.20"
int fsok = -1
static int block_size
unsigned char boot_spec [24]
tokencmds
int err
int activate
biosdev bootdev
biosdev tmpdev
char resnames [][6]
char * addptr
static dev_t dev_cNd0 [] = { 0x0300, 0x0800, 0x0A00, 0x0C00, 0x1000 }
static int block_size
char * Thandler
u32_t Tbase
u32_t Tcount
enum whatfun arg [0]
unsigned char cdspec [25]


Define Documentation

#define _MINIX   1
 

Definition at line 11 of file boot.c.

Referenced by res_send().

#define _POSIX_SOURCE   1
 

Definition at line 10 of file boot.c.

#define alarm n   )     (0)
 

Definition at line 153 of file boot.c.

Referenced by asyn_wait(), DataConnect(), delay(), doPASV(), get_time(), getline(), getreply(), handler(), lin_search(), main(), NetListen(), Proc0(), rcmd(), readline(), schedule(), sendreply(), sig_done(), sleep(), startup(), test20d(), test25c(), test26b(), test26c(), test30a(), test31a(), test32b(), test32c(), test33a(), test33b(), test34c(), test35c(), test37j(), test38a(), test38b(), test5d(), test8a(), test8b(), time_out(), Timed_Get_Char(), ttyread(), and unschedule().

#define apm_perror label,
ax   )     ((void)0)
 

Definition at line 1180 of file boot.c.

Referenced by off().

#define apm_printf
 

Definition at line 1181 of file boot.c.

Referenced by off().

#define arraylimit a   )     ((a) + arraysize(a))
 

Definition at line 46 of file boot.c.

Referenced by ack_emit_init(), apply_add(), bios_err(), closedev(), configtag(), dhcp_settag(), distribute(), forget(), get_parameters(), getgrent(), gethostent(), getline(), gnu_emit_init(), help(), link_islink(), m_help(), main(), ncc_emit_init(), opendev(), printdhcp(), query_chaos(), query_hosts(), round_sysind(), scan_quoted(), searchmanpath(), searchwhatis(), tagdefbyname(), typ2txt(), and ul2a().

#define arraysize a   )     (sizeof(a) / sizeof((a)[0]))
 

Definition at line 45 of file boot.c.

Referenced by bas_get_operand(), classname(), dhcp_gettag(), dhcpopname(), dhcptypename(), dns_tell(), getattributes(), ihash(), isregister(), linked(), print_qrr(), query_chaos(), query_hosts(), search_mnem(), trymandir(), and trysubmandir().

#define b_getenv name   )     (*searchenv(name))
 

Definition at line 697 of file boot.c.

Referenced by b_body(), and b_value().

#define B_NOSIG   -1
 

Definition at line 1297 of file boot.c.

Referenced by boot_device(), and exec_bootstrap().

#define between a,
c,
z   )     ((unsigned) ((c) - (a)) <= ((z) - (a)))
 

Definition at line 47 of file boot.c.

Referenced by a2l(), a2x(), ascii2octet(), configtag(), ctty(), get_string(), install_master(), isidentchar(), isspace(), isvar(), main(), makedhcp(), name2dev(), numprefix(), parse(), pretty_image(), rijndael_makekey(), servdhcp(), string2long(), and trysubmandir().

#define BIOS   (!UNIX)
 

Definition at line 7 of file boot.c.

#define DEV_FD0   0x0200
 

Definition at line 1025 of file boot.c.

Referenced by main(), name2dev(), and newdevice().

#define EXTERN
 

Definition at line 42 of file boot.c.

Referenced by ctags(), lex_gettoken(), and maketag().

#define istty   (1)
 

Definition at line 152 of file boot.c.

Referenced by df(), main(), monitor(), show_env(), and writable().

#define minor_p0s0   128
 

Definition at line 1027 of file boot.c.

Referenced by name2dev().

#define nil   0
 

Definition at line 9 of file boot.c.

Referenced by ack_emit_init(), ack_emit_instruction(), ack_get_C_expression(), ack_get_instruction(), ack_get_operand(), ack_get_oplist(), ack_get_statement(), ack_put_expression(), add(), add_gateway(), adddir(), addpath(), advance(), advertize(), alloc(), allocate(), append(), apply_add(), apply_differences(), apply_mkold(), apply_remove(), argmatch(), argscan(), ascii2clid(), asyn_wait(), b_body(), b_setenv(), b_unset(), b_value(), bas_get_C_expression(), bas_get_instruction(), bas_get_operand(), bas_get_oplist(), bas_get_statement(), basefind(), basename(), boot(), bootminix(), cache2file(), cache_reply(), cachedhcp(), check_existing(), cidr_aton(), cleandir(), close_relay(), closedir(), collect(), columnise(), compile(), complain(), compose_reply(), config_length(), config_read(), config_renewed(), configtag(), constant(), copy(), copy1(), copylink(), copystr(), countblocks(), countfiles(), crypt(), deallocate(), dec(), del_asm86(), del_expr(), delete_config(), delete_filelist(), dhcp_gettag(), different(), display(), distribute(), do1(), do_ignore(), dodefine(), dodefn(), dodump(), drop_dlist(), eat_dir(), endhostent(), enter(), equal(), eval(), evaluate(), exec_one(), execjob(), execle(), execute(), execve(), execvp(), expired(), explode(), extract_image(), extract_query(), fatal(), file2cache(), find_exist(), finddev(), findnword(), findpath(), findpool(), force_expire(), format_device(), fprintf(), free(), get_buf(), get_clickshift(), get_line(), get_list(), get_prog(), get_query(), get_sector(), get_segment(), get_string(), get_token(), get_word(), getattributes(), getcwd(), getdevices(), getdomainname(), getgrent(), getgrgid(), getgrnam(), gethostent(), getpwent(), getpwnam(), getpwuid(), getttyent(), getttynam(), getvar(), give_buf(), gnu_emit_init(), gnu_emit_instruction(), gnu_get_C_expression(), gnu_get_instruction(), gnu_get_operand(), gnu_get_oplist(), gnu_put_expression(), help(), idname(), inc(), init_config(), init_tty(), inittagdef(), inittemp(), insert_query(), inspect(), install_master(), installboot(), ip2name(), is_default(), is_ignored(), islink(), job(), job_find_named(), job_listen(), job_read_udp(), job_setup_listen(), keyword(), link_islink(), linked(), listdir(), listfiles(), load_crontabs(), look(), lookup(), lp(), m_in(), m_magic(), m_modify(), m_move(), m_out(), m_redraw(), m_shell(), m_updown(), macro(), main(), make_image(), makedhcp(), makenames(), maketemp(), malloc(), master(), member(), mergesort(), mkdifferences(), mkstatefile(), modify(), name2ip(), new_asm86(), new_expr(), new_token(), newcell(), newdevice(), newjob(), newnetwork(), newobject(), newrule(), numeric(), numprefix(), onetoken(), opendev(), opendir(), params2params(), parse(), parse_code(), parse_err(), path_init(), portbyname(), predef(), present(), prin1(), prin2(), princhar(), prinstr(), printdhcp(), put_buf(), put_query(), putinline(), qp_export(), query_chaos(), query_hosts(), queryparam(), raw_install(), rdlink(), read1line(), read_file(), read_header(), read_line(), read_list(), read_word(), readdir(), readline(), readstate(), readword(), realloc(), reallocate(), reap_or_find(), refresh_cache(), remhash(), removedir(), report(), run_job(), run_trailer(), save_parameters(), scan_colon(), scan_punct(), scan_quoted(), scan_white(), search(), search_mnem(), searchenv(), seekdir(), select_image(), selected(), servdhcp(), servxcheck(), set_file(), setflags(), setgrent(), setpath(), setpwent(), sfree(), shorten(), show_env(), showpage(), skip_token(), slave(), sort(), splitenv(), splitline(), spool(), start_relay(), startprocess(), sugar(), tab_find_atjob(), tab_parse(), tab_print(), tab_purge(), tainted(), tell(), telldir(), tok_init(), tokenize(), transform(), traverse(), trylink(), trymandir(), trysubmandir(), unix_exec(), unschedule(), updatepool(), usage(), wordlist(), and work().

#define null   (resnames[0])
 

Definition at line 651 of file boot.c.

Referenced by DotZLib::Inflater::Add(), DotZLib::Deflater::Add(), b_setvar(), b_unset(), cnull(), copystr(), dodefine(), dodefn(), dopushdef(), eval(), extra(), freent(), initkwds(), lookup(), main(), DotZLib::CodecBase::OnDataAvailable(), DotZLib::GZipStream::Read(), sfree(), and DotZLib::GZipStream::Write().


Enumeration Type Documentation

enum resnames
 

Enumerator:
R_NULL 
R_BOOT 
R_CTTY 
R_DELAY 
R_ECHO 
R_EXIT 
R_HELP 
R_LS 
R_MENU 
R_OFF 
R_SAVE 
R_SET 
R_TRAP 
R_UNSET 

Definition at line 640 of file boot.c.

enum whatfun
 

Enumerator:
NOFUN 
SELECT 
DEFFUN 
USERFUN 

Definition at line 1474 of file boot.c.


Function Documentation

long a2l char *  a  ) 
 

Definition at line 791 of file boot.c.

References between, and sign.

Referenced by delay(), exec_image(), name2dev(), and select_image().

unsigned a2x char *  a  ) 
 

Definition at line 821 of file boot.c.

References between.

void addparm char *  n  ) 
 

Definition at line 923 of file boot.c.

Referenced by save_parameters().

char* b_body char *  name  ) 
 

Definition at line 708 of file boot.c.

References b_getenv, e, E_FUNCTION, and nil.

int b_setenv int  flags,
char *  name,
char *  arg,
char *  value
 

Definition at line 716 of file boot.c.

References copystr(), e, E_FUNCTION, E_RESERVED, E_SPECIAL, E_STICKY, is_default(), malloc(), nil, reserved(), searchenv(), and sfree().

Referenced by b_setvar(), and execute().

int b_setvar int  flags,
char *  name,
char *  value
 

Definition at line 753 of file boot.c.

References b_setenv(), and null.

Referenced by execute(), and get_parameters().

void b_unset char *  name  ) 
 

Definition at line 765 of file boot.c.

References e, E_SPECIAL, free, nil, null, searchenv(), and sfree().

Referenced by execute().

char* b_value char *  name  ) 
 

Definition at line 700 of file boot.c.

References b_getenv, e, E_VAR, and nil.

Referenced by bootminix(), exec_image(), and selected().

char* bios_err int  err  ) 
 

Definition at line 61 of file boot.c.

References arraylimit.

Referenced by boot_device(), and rwerr().

void boot void   ) 
 

Definition at line 1856 of file boot.c.

References boot, cmds, execute(), get_parameters(), initialize(), monitor(), and nil.

void boot_device char *  devname  ) 
 

Definition at line 1344 of file boot.c.

References B_NOSIG, bios_err(), dev, dev_open(), biosdev::device, err, exec_bootstrap(), name2dev(), printf, and tmpdev.

void bootcdinfo u32_t  ,
int *  ,
int  drive
 

char* copystr char *  s  ) 
 

Definition at line 670 of file boot.c.

References malloc(), null, strcpy(), and strlen().

Referenced by ack_get_instruction(), ack_get_operand(), b_setenv(), bas_get_instruction(), bas_get_operand(), collect(), get_prog(), getattributes(), gnu_get_instruction(), gnu_get_operand(), linked(), and traverse().

void ctty char *  line  ) 
 

Definition at line 1370 of file boot.c.

References between, and printf.

void delay char *  msec  ) 
 

Definition at line 1459 of file boot.c.

References a2l(), alarm, base, count, expired(), interrupt, milli_since(), milli_time(), and pause.

Referenced by tputs().

int exec_bootstrap void   ) 
 

Definition at line 1299 of file boot.c.

References activate, active, ACTIVE_FLAG, B_NOSIG, part_entry::bootind, BOOTPOS, bootstrap, dirty, dummy, get_master(), get_word(), if(), master(), mon2abs(), NO_PART, biosdev::primary, readsectors(), biosdev::secondary, SIGNATOFF, SIGNATURE, table, tmpdev, and writesectors().

Referenced by boot_device().

void execute void   ) 
 

Definition at line 1577 of file boot.c.

Referenced by argmatch(), Arith(), arrayelm(), Assign(), boot(), Call(), Cat(), check(), Cond(), Do(), doexec(), exec_one(), execute(), Field(), For(), Forin(), format(), Getline(), If(), In(), Jump(), keyword(), load_code(), main(), Mathfun(), onecommand(), P1stat(), P2stat(), Print(), removedir(), Return(), run(), run_code(), run_trailer(), Split(), startup(), Strfun(), Subst(), transform(), Usrfun(), and While().

int expired void   ) 
 

Definition at line 1453 of file boot.c.

References milli_since(), and nil.

Referenced by delay(), execute(), and proc_ind().

int get_master char *  master,
struct part_entry **  table,
u32_t  pos
 

Definition at line 459 of file boot.c.

References lowsec, mon2abs(), NO_PART, NR_PARTITIONS, PART_TABLE_OFF, readsectors(), part_entry::sysind, and table.

Referenced by exec_bootstrap(), and initialize().

void get_parameters void   ) 
 

Definition at line 842 of file boot.c.

References arraylimit, b_setvar(), E_DEV, E_SPECIAL, E_VAR, get_bus(), get_video(), mem, mp, params, strcat(), ul2a(), and ul2a10().

Referenced by boot().

void help void   ) 
 

Definition at line 1536 of file boot.c.

References arraylimit, info, nil, and printf.

Referenced by m_help(), main(), and update().

if e->arg [1] = ','  ) 
 

Definition at line 1477 of file boot.c.

Referenced by _incpt(), _pac(), _unp(), ack_get_statement(), add_file(), add_gateway(), advertize(), allocset(), ar_open(), Arith(), Array(), atapi_transfer(), backref(), balance_queues(), bas_get_statement(), build_relations(), cache2file(), Call(), callld(), change(), check_ind(), check_int_events(), check_sig(), chk_table(), chkmail(), chksuper(), ckglob(), clear_vses(), clear_zone(), cmd_errlist(), cons_org0(), construct(), copy_array(), copy_output_until_stop(), countem(), cp_b2u(), data_store_dmp(), death(), declare_tokens(), Defdev(), deflate_stored(), deflateReset(), del_file(), Delete(), dequeue(), descitem(), dev_status(), directory(), do_check(), do_close(), do_copy(), do_digraph(), do_eth_read(), do_exec(), do_exit(), do_fkey_ctl(), do_flush(), do_get_kmess(), do_getsysinfo(), do_ioctl(), do_list(), do_mknod(), do_newmap(), do_period(), do_read(), do_reboot(), do_scoop_up(), do_select(), do_svrctl(), do_umap(), do_vcopy(), do_waitpid(), dopirate(), dowait(), dp_confaddr(), dp_init(), ec_confaddr(), ec_init(), el3_open(), eth_arrive(), eth_get_stat(), eth_restart(), eth_restart_ioctl(), evalloop(), exec_bootstrap(), execute(), expbackq(), expr_operator(), extpartition(), extract(), f_do_open(), f_selxbuffer(), f_transfer(), file_creat(), file_geom(), find_best_conn(), find_conn_entry(), find_share(), find_y(), findbpnt(), findpath(), format_device(), fproc_dmp(), free_buff(), freehere(), fs_init(), ftree_chk(), fxp_check_ints(), fxp_conf_hw(), fxp_pci_conf(), fxp_stop(), fxp_watchdog_f(), gen_bitlen(), get_block(), get_inode(), get_priv(), get_query(), getanswer(), getdate(), gethere(), getjob(), getn(), getpat(), glob(), gnu_emit_instruction(), gnu_get_statement(), handle_req(), hw_init(), icmp_read(), ifsbreakup(), image_dmp(), In(), in_process(), Indirect(), inflate(), inflateBack(), inflateEnd(), inflateGetHeader(), inflatePrime(), inflateSetDictionary(), inflateSync(), init_server(), initfl(), initialize(), initialize_F(), ip_buffree(), ip_port_arrive(), ip_setconf(), ipeth_update_ttl(), ipr_add_oroute(), ipr_chk_itab(), ipr_chk_otab(), ipr_del_iroute(), ipr_del_oroute(), ipr_gateway_down(), iroute_frag(), is_arp_me(), is_unused_port(), iso_cmp(), ivtake(), job_read_udp(), lexi(), line_check(), list(), lock_op(), lock_revive(), logmsg(), lookupvar(), m_init(), m_modify(), m_move(), main(), malloc(), map_regs(), match(), matcher(), maybe_listen(), merge(), mformat(), mk_link(), mkvec(), mounted(), mpartition(), mproc_dmp(), nextblock(), nm_print(), node_creat(), ns_init(), oroute_find_ent(), overlap(), p1_rw_inodes(), p_b_cclass(), p_b_coll_elem(), params2params(), parsefname(), partition(), pat_chk(), pm_exit(), popredir(), pr_comm(), pr_comment(), preserve(), Print(), print_conflicts(), print_nulls(), Print_Record(), printlist(), proc_dir(), process(), Process(), prt(), psip_buffree(), psip_send(), putvlist(), query_hosts(), queryparam(), r_random(), Read_Block(), read_header(), reap_or_find(), Recover_Blocks(), recurse_dir(), regatoi(), regerror(), remove_dir(), res_send(), rl_pci_conf(), rl_watchdog_f(), rproc_dmp(), score(), Search(), sendMTFValues(), set_data_type(), set_goto_map(), setfiletime(), setup_write(), setvareq(), show_env(), showjobs(), shprocvar(), sig_proc(), sigaction_dmp(), skip_lines(), sole_reduction(), sort(), sort_dists(), sort_gws(), Split(), sr_repl_queue(), Strfun(), Subst(), tab_print(), tcp_acceptto(), tcp_buffree(), tcp_close(), tcp_main(), tcp_put_pkt(), tcp_select(), tcp_setconf(), token_actions(), truncate_inode(), tty_init(), tty_opcl(), udp_ip_arrived(), udp_main(), udp_setopt(), unicode_write(), uniq_lines(), unix_copydir(), unix_exec(), unmount(), unsetvar(), unzOpenCurrentFile3(), unzReadCurrentFile(), update(), updatewindow(), veat(), w_reset(), w_transfer(), walk_queue(), was_blk_special(), wnoutrefresh(), ziplocal_TmzDateToDosDate(), and zipOpenNewFileInZip3().

void initialize void   ) 
 

Definition at line 485 of file boot.c.

Referenced by _new(), boot(), main(), mpartition(), sys_task(), and VI().

int interrupt void   ) 
 

Definition at line 439 of file boot.c.

References escape(), and printf.

int is_default environment e  ) 
 

Definition at line 681 of file boot.c.

References e, E_SPECIAL, and nil.

Referenced by b_setenv(), save_parameters(), and show_env().

void ls char *  dir  ) 
 

Definition at line 1396 of file boot.c.

References errno, fsok, printf, r_lookup(), r_readdir(), r_stat(), r_super(), ROOT_INO, st, and unix_err().

u32_t milli_since u32_t  base  ) 
 

Definition at line 1423 of file boot.c.

References milli_time(), and MSEC_PER_TICK.

Referenced by delay(), and expired().

u32_t milli_time void   ) 
 

Definition at line 1418 of file boot.c.

References get_tick(), and MSEC_PER_TICK.

Referenced by delay(), milli_since(), and schedule().

void monitor void   ) 
 

Definition at line 1836 of file boot.c.

References bootdev, cmds, err, escape(), free, istty, biosdev::name, printf, readline(), tokenize(), and unschedule().

Referenced by boot(), main(), and shutdown().

dev_t name2dev char *  name  ) 
 

Definition at line 1031 of file boot.c.

References a2l(), activate, between, bootdev, dev, DEV_BOOT, DEV_FD0, DEV_RAM, biosdev::device, drive, errno, minor_p0s0, biosdev::name, numeric(), numprefix(), biosdev::primary, printf, s, biosdev::secondary, st, strcmp, strncmp(), and tmpdev.

Referenced by boot_device(), and params2params().

int numeric char *  s  ) 
 

Definition at line 1017 of file boot.c.

References nil, and numprefix().

Referenced by name2dev(), and select_image().

int numprefix char *  s,
char **  ps
 

Definition at line 1000 of file boot.c.

References between, and nil.

Referenced by name2dev(), numeric(), and select_image().

static void off void   )  [static]
 

Definition at line 1184 of file boot.c.

References apm_perror, apm_printf, bios_env::ax, bios_env::bx, bios_env::cx, FL_CARRY, bios_env::flags, and int15().

char* onetoken char **  aline  ) 
 

Definition at line 340 of file boot.c.

References malloc(), memcpy(), nil, and sugar().

Referenced by tokenize().

void parse_code char *  code  ) 
 

Definition at line 430 of file boot.c.

References cmds, nil, token::token, and tokenize().

Referenced by execute().

char* poptoken void   ) 
 

Definition at line 412 of file boot.c.

References cmd, cmds, free, and token::tok.

Referenced by execute(), and voidtoken().

void readblock off_t  blk,
char *  buf,
int  block_size
 

Definition at line 136 of file boot.c.

Referenced by getblock(), install_master(), r_readdir(), r_stat(), and r_super().

void readerr off_t  sec,
int  err
 

Definition at line 133 of file boot.c.

References rwerr().

Referenced by get_sector(), initialize(), and readblock().

char* readline void   ) 
 

Definition at line 297 of file boot.c.

Referenced by ackbibi(), chartest(), comm(), cpycol(), do_search(), do_visit(), do_writefile(), DOappe(), DOcd(), DOdelete(), DOhelp(), DOlcd(), DOlmkdir(), DOlrmdir(), DOmdtm(), DOmkdir(), DOMretr(), DOMstor(), DOopen(), DOpass(), DOretr(), DOrmdir(), DOrretr(), DOrstor(), DOsize(), DOstat(), DOstor(), DOstou(), DOuser(), getnak(), main(), monitor(), noxrd7(), preadbuffer(), shell(), wcgetsec(), wcrxpn(), wctx(), zdlread(), zgethdr(), zsendfdata(), and zsendfile().

int reserved char *  s  ) 
 

Definition at line 653 of file boot.c.

References R_BOOT, and strcmp.

Referenced by b_setenv(), execute(), and rl_check_ints().

int run_trailer void   ) 
 

Definition at line 1822 of file boot.c.

References cmds, err, execute(), nil, and tokenize().

void rwerr char *  rw,
off_t  sec,
int  err
 

Definition at line 127 of file boot.c.

References bios_err(), and printf.

Referenced by readerr(), and writerr().

void save_parameters void   ) 
 

Definition at line 928 of file boot.c.

References addparm(), e, E_DEV, E_FUNCTION, E_RESERVED, E_SPECIAL, is_default(), memset(), nil, params, and printf.

void schedule long  msec,
char *  cmd
 

Definition at line 1443 of file boot.c.

References alarm, milli_time(), and unschedule().

Referenced by main().

environment** searchenv char *  name  ) 
 

Definition at line 686 of file boot.c.

References environment::next, nil, and strcmp.

Referenced by b_setenv(), and b_unset().

void sfree char *  s  ) 
 

Definition at line 664 of file boot.c.

References free, nil, and null.

Referenced by a_free(), b_setenv(), b_unset(), c_free(), Call(), close1(), Delete(), fixarray(), getpat(), getsval(), getvar(), mkfld(), r_mkfld(), setfval(), setsval(), Split(), and Sub().

void show_env void   ) 
 

Definition at line 969 of file boot.c.

References e, E_FUNCTION, E_RESERVED, if(), is_default(), istty, nil, and printf.

int sugar char *  tok  ) 
 

Definition at line 334 of file boot.c.

References nil, and strchr.

Referenced by execute(), and onetoken().

token** tokenize token **  acmds,
char *  line
 

Definition at line 388 of file boot.c.

References malloc(), newcmd(), token::next, nil, onetoken(), and token::tok.

Referenced by monitor(), parse_code(), and run_trailer().

char* ul2a u32_t  n,
unsigned  b
 

Definition at line 804 of file boot.c.

References a, arraylimit, CHAR_BIT, int(), and num().

Referenced by get_parameters(), and ul2a10().

char* ul2a10 u32_t  n  ) 
 

Definition at line 815 of file boot.c.

References ul2a().

Referenced by get_parameters(), and params2params().

char* unix_err int  err  ) 
 

Definition at line 117 of file boot.c.

References ENOENT, and ENOTDIR.

Referenced by ls(), and select_image().

void unschedule void   ) 
 

Definition at line 1432 of file boot.c.

References alarm, free, and nil.

Referenced by execute(), monitor(), and schedule().

void voidtoken void   ) 
 

Definition at line 424 of file boot.c.

References free, and poptoken().

Referenced by execute().

void writerr off_t  sec,
int  err
 

Definition at line 134 of file boot.c.

References rwerr().

Referenced by f_pshinf(), and t_fatal().


Variable Documentation

int activate
 

Definition at line 452 of file boot.c.

Referenced by exec_bootstrap(), mpartition(), and name2dev().

char* addptr
 

Definition at line 921 of file boot.c.

enum whatfun arg[0]
 

Referenced by _format(), attrib_file(), Call(), cmd_args(), concise_view_attrib(), configtag(), createDir(), del_entry(), del_file(), dir_mdu(), do_snd_event(), dos_copydir(), dos_doctorfat(), dos_write(), execute(), file_mdu(), getword(), ip_process_loopb(), ip_send(), main(), makeit(), mattrib(), mcopy(), mdel(), mdoctorfat(), mdu(), mmd(), mmove(), mshowfat(), processfiles(), rename_file(), rename_oldsyntax(), renameit(), sbm_nfor(), set_uart(), sr_event(), sr_get_userdata(), sr_put_userdata(), unix_copydir(), unix_write(), writeit(), and xioctl().

int block_size [static]
 

Definition at line 1029 of file boot.c.

int block_size [static]
 

Definition at line 51 of file boot.c.

unsigned char boot_spec[24]
 

Definition at line 59 of file boot.c.

struct biosdev bootdev
 

Referenced by initialize(), monitor(), and name2dev().

unsigned char cdspec[25]
 

Definition at line 1853 of file boot.c.

sedcmd cmds
 

Definition at line 409 of file boot.c.

Referenced by boot(), cmdcomp(), execute(), main(), monitor(), parse_code(), poptoken(), and run_trailer().

dev_t dev_cNd0[] = { 0x0300, 0x0800, 0x0A00, 0x0C00, 0x1000 } [static]
 

Definition at line 1026 of file boot.c.

void err
 

Definition at line 410 of file boot.c.

int fsok = -1
 

Definition at line 49 of file boot.c.

Referenced by ls(), and select_image().

char resnames[][6]
 

Initial value:

 {
        "", "boot", "ctty", "delay", "echo", "exit", "help",
        "ls", "menu", "off", "save", "set", "trap", "unset",
}

Definition at line 645 of file boot.c.

u32_t Tbase
 

Definition at line 1430 of file boot.c.

u32_t Tcount
 

Definition at line 1430 of file boot.c.

char* Thandler
 

Definition at line 1429 of file boot.c.

struct biosdev tmpdev
 

Referenced by boot_device(), exec_bootstrap(), and name2dev().

char version[] = "2.20"
 

Definition at line 5 of file boot.c.

Referenced by check_mtab(), execute(), init_config(), list(), main(), query_chaos(), read_super(), readmtab(), select_image(), show(), unzRepair(), update_mtab(), and usage().


Generated on Fri Apr 14 22:57:37 2006 for minix by  doxygen 1.4.6