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 | 207 | fs/binfmt_aout.c | struct exec ex; |
ex | 215 | fs/binfmt_aout.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
ex | 216 | fs/binfmt_aout.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && |
ex | 217 | fs/binfmt_aout.c | N_MAGIC(ex) != QMAGIC) || |
ex | 218 | fs/binfmt_aout.c | N_TRSIZE(ex) || N_DRSIZE(ex) || |
ex | 219 | fs/binfmt_aout.c | bprm->inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { |
ex | 224 | fs/binfmt_aout.c | fd_offset = N_TXTOFF(ex); |
ex | 227 | fs/binfmt_aout.c | if (N_MAGIC(ex) == ZMAGIC && fd_offset != BLOCK_SIZE) { |
ex | 232 | fs/binfmt_aout.c | if (N_MAGIC(ex) == ZMAGIC && ex.a_text && |
ex | 246 | fs/binfmt_aout.c | if (ex.a_data + ex.a_bss > rlim) |
ex | 252 | fs/binfmt_aout.c | current->mm->end_code = ex.a_text + |
ex | 253 | fs/binfmt_aout.c | (current->mm->start_code = N_TXTADDR(ex)); |
ex | 254 | fs/binfmt_aout.c | current->mm->end_data = ex.a_data + |
ex | 255 | fs/binfmt_aout.c | (current->mm->start_data = N_DATADDR(ex)); |
ex | 256 | fs/binfmt_aout.c | current->mm->brk = ex.a_bss + |
ex | 257 | fs/binfmt_aout.c | (current->mm->start_brk = N_BSSADDR(ex)); |
ex | 263 | fs/binfmt_aout.c | if (N_MAGIC(ex) == OMAGIC) { |
ex | 265 | fs/binfmt_aout.c | do_mmap(NULL, N_TXTADDR(ex) & PAGE_MASK, |
ex | 266 | fs/binfmt_aout.c | ex.a_text+ex.a_data + PAGE_SIZE - 1, |
ex | 269 | fs/binfmt_aout.c | read_exec(bprm->inode, fd_offset, (char *) N_TXTADDR(ex), |
ex | 270 | fs/binfmt_aout.c | ex.a_text+ex.a_data, 0); |
ex | 272 | fs/binfmt_aout.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 275 | fs/binfmt_aout.c | read_exec(bprm->inode, 32, (char *) 0, ex.a_text+ex.a_data, 0); |
ex | 278 | fs/binfmt_aout.c | if (ex.a_text & 0xfff || ex.a_data & 0xfff) |
ex | 288 | fs/binfmt_aout.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 292 | fs/binfmt_aout.c | (char *) N_TXTADDR(ex), ex.a_text+ex.a_data, 0); |
ex | 296 | fs/binfmt_aout.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
ex | 301 | fs/binfmt_aout.c | if (error != N_TXTADDR(ex)) { |
ex | 307 | fs/binfmt_aout.c | error = do_mmap(file, N_DATADDR(ex), ex.a_data, |
ex | 310 | fs/binfmt_aout.c | fd_offset + ex.a_text); |
ex | 312 | fs/binfmt_aout.c | if (error != N_DATADDR(ex)) { |
ex | 331 | fs/binfmt_aout.c | fd_offset = setup_arg_pages(ex.a_text,bprm->page) - MAX_ARG_PAGES*PAGE_SIZE; |
ex | 341 | fs/binfmt_aout.c | regs->gp = ex.a_gpvalue; |
ex | 343 | fs/binfmt_aout.c | start_thread(regs, ex.a_entry, p); |
ex | 364 | fs/binfmt_aout.c | struct exec ex; |
ex | 385 | fs/binfmt_aout.c | error = file->f_op->read(inode, file, (char *) &ex, sizeof(ex)); |
ex | 387 | fs/binfmt_aout.c | if (error != sizeof(ex)) |
ex | 391 | fs/binfmt_aout.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || |
ex | 392 | fs/binfmt_aout.c | N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || |
ex | 393 | fs/binfmt_aout.c | inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { |
ex | 396 | fs/binfmt_aout.c | if (N_MAGIC(ex) == ZMAGIC && N_TXTOFF(ex) && |
ex | 397 | fs/binfmt_aout.c | (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { |
ex | 402 | fs/binfmt_aout.c | if (N_FLAGS(ex)) return -ENOEXEC; |
ex | 407 | fs/binfmt_aout.c | start_addr = ex.a_entry & 0xfffff000; |
ex | 410 | fs/binfmt_aout.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
ex | 413 | fs/binfmt_aout.c | N_TXTOFF(ex)); |
ex | 416 | fs/binfmt_aout.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
ex | 417 | fs/binfmt_aout.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); |