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 | 838 | fs/exec.c | struct exec ex; |
ex | 846 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
ex | 847 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && |
ex | 848 | fs/exec.c | N_MAGIC(ex) != QMAGIC) || |
ex | 849 | fs/exec.c | N_TRSIZE(ex) || N_DRSIZE(ex) || |
ex | 850 | fs/exec.c | bprm->inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { |
ex | 855 | fs/exec.c | fd_offset = N_TXTOFF(ex); |
ex | 858 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && fd_offset != BLOCK_SIZE) { |
ex | 863 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && ex.a_text && |
ex | 877 | fs/exec.c | if (ex.a_data + ex.a_bss > rlim) |
ex | 883 | fs/exec.c | current->mm->end_code = ex.a_text + |
ex | 884 | fs/exec.c | (current->mm->start_code = N_TXTADDR(ex)); |
ex | 885 | fs/exec.c | current->mm->end_data = ex.a_data + |
ex | 886 | fs/exec.c | (current->mm->start_data = N_DATADDR(ex)); |
ex | 887 | fs/exec.c | current->mm->brk = ex.a_bss + |
ex | 888 | fs/exec.c | (current->mm->start_brk = N_BSSADDR(ex)); |
ex | 894 | fs/exec.c | if (N_MAGIC(ex) == OMAGIC) { |
ex | 896 | fs/exec.c | do_mmap(NULL, N_TXTADDR(ex) & PAGE_MASK, |
ex | 897 | fs/exec.c | ex.a_text+ex.a_data + PAGE_SIZE - 1, |
ex | 900 | fs/exec.c | read_exec(bprm->inode, fd_offset, (char *) N_TXTADDR(ex), |
ex | 901 | fs/exec.c | ex.a_text+ex.a_data, 0); |
ex | 903 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 906 | fs/exec.c | read_exec(bprm->inode, 32, (char *) 0, ex.a_text+ex.a_data, 0); |
ex | 909 | fs/exec.c | if (ex.a_text & 0xfff || ex.a_data & 0xfff) |
ex | 919 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 923 | fs/exec.c | (char *) N_TXTADDR(ex), ex.a_text+ex.a_data, 0); |
ex | 927 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
ex | 932 | fs/exec.c | if (error != N_TXTADDR(ex)) { |
ex | 938 | fs/exec.c | error = do_mmap(file, N_DATADDR(ex), ex.a_data, |
ex | 941 | fs/exec.c | fd_offset + ex.a_text); |
ex | 943 | fs/exec.c | if (error != N_DATADDR(ex)) { |
ex | 962 | fs/exec.c | fd_offset = setup_arg_pages(ex.a_text,bprm->page) - MAX_ARG_PAGES*PAGE_SIZE; |
ex | 972 | fs/exec.c | regs->gp = ex.a_gpvalue; |
ex | 974 | fs/exec.c | start_thread(regs, ex.a_entry, p); |
ex | 984 | fs/exec.c | struct exec ex; |
ex | 1005 | fs/exec.c | error = file->f_op->read(inode, file, (char *) &ex, sizeof(ex)); |
ex | 1007 | fs/exec.c | if (error != sizeof(ex)) |
ex | 1011 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || |
ex | 1012 | fs/exec.c | N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || |
ex | 1013 | fs/exec.c | inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { |
ex | 1016 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && N_TXTOFF(ex) && |
ex | 1017 | fs/exec.c | (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { |
ex | 1022 | fs/exec.c | if (N_FLAGS(ex)) return -ENOEXEC; |
ex | 1027 | fs/exec.c | start_addr = ex.a_entry & 0xfffff000; |
ex | 1030 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
ex | 1033 | fs/exec.c | N_TXTOFF(ex)); |
ex | 1036 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
ex | 1037 | 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); |