X-Git-Url: http://akaros.cs.berkeley.edu/gitweb/?p=akaros.git;a=blobdiff_plain;f=kern%2Finclude%2Felf.h;h=01b8aa1068a02aed89cc5f473fa4d7e3cf20ea0e;hp=2f6720c7eeaa4ac80dd009a9d0cef873da6815c5;hb=152504243625340cf5a5140b7d8d4ed2db1c20bc;hpb=1ed63f9f8e25820f7eb217727d4ee88efe827d41 diff --git a/kern/include/elf.h b/kern/include/elf.h index 2f6720c..01b8aa1 100644 --- a/kern/include/elf.h +++ b/kern/include/elf.h @@ -146,7 +146,10 @@ typedef long elf_aux_t[2]; // Hardware capabilities (for use with ELF_AUX_HWCAP) #define ELF_HWCAP_SPARC_FLUSH 1 -struct file; -bool is_valid_elf(struct file *f); -int load_elf(struct proc* p, struct file* f, +struct file_or_chan; +bool is_valid_elf(struct file_or_chan *f); +int load_elf(struct proc *p, struct file_or_chan *f, int argc, char *argv[], int envc, char *envp[]); +ssize_t get_startup_argc(struct proc *p); +char *get_startup_argv(struct proc *p, size_t idx, char *argp, + size_t max_size);