tag | line | file | source code |
ex | 44 | arch/i386/boot/compressed/xtract.c | struct exec *ex = (struct exec *)buf; |
ex | 53 | arch/i386/boot/compressed/xtract.c | if (N_MAGIC(*ex) == ZMAGIC) { |
ex | 56 | arch/i386/boot/compressed/xtract.c | } else if (N_MAGIC(*ex) != QMAGIC) |
ex | 59 | arch/i386/boot/compressed/xtract.c | sz = N_SYMOFF(*ex) - GCC_HEADER + 4; /* +4 to get the same result than tools/build */ |
ex | 96 | arch/i386/boot/tools/build.c | struct exec *ex = (struct exec *)buf; |
ex | 201 | arch/i386/boot/tools/build.c | if (N_MAGIC(*ex) == ZMAGIC) { |
ex | 204 | arch/i386/boot/tools/build.c | } else if (N_MAGIC(*ex) != QMAGIC) |
ex | 207 | arch/i386/boot/tools/build.c | (ex->a_text+ex->a_data+ex->a_bss)/1024, |
ex | 208 | arch/i386/boot/tools/build.c | ex->a_text /1024, |
ex | 209 | arch/i386/boot/tools/build.c | ex->a_data /1024, |
ex | 210 | arch/i386/boot/tools/build.c | ex->a_bss /1024); |
ex | 211 | arch/i386/boot/tools/build.c | sz = N_SYMOFF(*ex) - GCC_HEADER + 4; |
ex | 745 | fs/exec.c | struct exec ex; |
ex | 752 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
ex | 753 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && |
ex | 754 | fs/exec.c | N_MAGIC(ex) != QMAGIC) || |
ex | 755 | fs/exec.c | N_TRSIZE(ex) || N_DRSIZE(ex) || |
ex | 756 | fs/exec.c | bprm->inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { |
ex | 761 | fs/exec.c | fd_offset = N_TXTOFF(ex); |
ex | 764 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && fd_offset != BLOCK_SIZE) { |
ex | 769 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && ex.a_text && |
ex | 779 | fs/exec.c | current->mm->end_code = ex.a_text + |
ex | 780 | fs/exec.c | (current->mm->start_code = N_TXTADDR(ex)); |
ex | 781 | fs/exec.c | current->mm->end_data = ex.a_data + |
ex | 782 | fs/exec.c | (current->mm->start_data = N_DATADDR(ex)); |
ex | 783 | fs/exec.c | current->mm->brk = ex.a_bss + |
ex | 784 | fs/exec.c | (current->mm->start_brk = N_BSSADDR(ex)); |
ex | 790 | fs/exec.c | if (N_MAGIC(ex) == OMAGIC) { |
ex | 791 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 794 | fs/exec.c | read_exec(bprm->inode, 32, (char *) 0, ex.a_text+ex.a_data, 0); |
ex | 796 | fs/exec.c | if (ex.a_text & 0xfff || ex.a_data & 0xfff) |
ex | 806 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 810 | fs/exec.c | (char *) N_TXTADDR(ex), ex.a_text+ex.a_data, 0); |
ex | 814 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
ex | 819 | fs/exec.c | if (error != N_TXTADDR(ex)) { |
ex | 825 | fs/exec.c | error = do_mmap(file, N_DATADDR(ex), ex.a_data, |
ex | 828 | fs/exec.c | fd_offset + ex.a_text); |
ex | 830 | fs/exec.c | if (error != N_DATADDR(ex)) { |
ex | 849 | fs/exec.c | fd_offset = setup_arg_pages(ex.a_text,bprm->page) - MAX_ARG_PAGES*PAGE_SIZE; |
ex | 858 | fs/exec.c | start_thread(regs, ex.a_entry, p); |
ex | 868 | fs/exec.c | struct exec ex; |
ex | 879 | fs/exec.c | if (file->f_op->read(inode, file, (char *) &ex, sizeof(ex)) != sizeof(ex)) { |
ex | 885 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || |
ex | 886 | fs/exec.c | N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || |
ex | 887 | fs/exec.c | inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { |
ex | 890 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && N_TXTOFF(ex) && |
ex | 891 | fs/exec.c | (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { |
ex | 896 | fs/exec.c | if (N_FLAGS(ex)) return -ENOEXEC; |
ex | 901 | fs/exec.c | start_addr = ex.a_entry & 0xfffff000; |
ex | 904 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
ex | 907 | fs/exec.c | N_TXTOFF(ex)); |
ex | 910 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
ex | 911 | fs/exec.c | bss = ex.a_text + ex.a_data + ex.a_bss; |
ex | 85 | fs/select.c | static int do_select(int n, fd_set *in, fd_set *out, fd_set *ex, |
ex | 99 | fs/select.c | set = in->fds_bits[j] | out->fds_bits[j] | ex->fds_bits[j]; |
ex | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
ex | 215 | fs/select.c | fd_set res_ex, ex; |
ex | 224 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
ex | 236 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |