tag | line | file | source code |
current | 29 | arch/alpha/kernel/process.c | if (current->pid != 0) |
current | 33 | arch/alpha/kernel/process.c | current->counter = -100; |
current | 32 | arch/alpha/kernel/signal.c | mask = current->blocked; |
current | 33 | arch/alpha/kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 35 | arch/alpha/kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 47 | arch/alpha/mm/fault.c | vma = find_vma(current, address); |
current | 54 | arch/alpha/mm/fault.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 83 | arch/alpha/mm/fault.c | send_sig(SIGSEGV, current, 1); |
current | 387 | arch/i386/ibcs/binfmt_coff.c | fp = current->files->fd[fd]; |
current | 444 | arch/i386/ibcs/binfmt_coff.c | current->mm->mmap = NULL; |
current | 445 | arch/i386/ibcs/binfmt_coff.c | current->mm->rss = 0; |
current | 458 | arch/i386/ibcs/binfmt_coff.c | current->mm->start_code = text_vaddr & PAGE_MASK; |
current | 459 | arch/i386/ibcs/binfmt_coff.c | current->mm->end_code = text_vaddr + text_size; |
current | 460 | arch/i386/ibcs/binfmt_coff.c | current->mm->end_data = data_vaddr + data_size; |
current | 461 | arch/i386/ibcs/binfmt_coff.c | current->mm->start_brk = |
current | 462 | arch/i386/ibcs/binfmt_coff.c | current->mm->brk = bss_vaddr + bss_size; |
current | 463 | arch/i386/ibcs/binfmt_coff.c | current->suid = |
current | 464 | arch/i386/ibcs/binfmt_coff.c | current->euid = bprm->e_uid; |
current | 465 | arch/i386/ibcs/binfmt_coff.c | current->sgid = |
current | 466 | arch/i386/ibcs/binfmt_coff.c | current->egid = bprm->e_gid; |
current | 467 | arch/i386/ibcs/binfmt_coff.c | current->executable = bprm->inode; /* Store inode for file */ |
current | 471 | arch/i386/ibcs/binfmt_coff.c | current->mm->start_stack = bprm->p; |
current | 557 | arch/i386/ibcs/binfmt_coff.c | send_sig (SIGSEGV, current, 0); /* Generate the error trap */ |
current | 559 | arch/i386/ibcs/binfmt_coff.c | if (current->flags & PF_PTRACED) |
current | 560 | arch/i386/ibcs/binfmt_coff.c | send_sig (SIGTRAP, current, 0); |
current | 759 | arch/i386/ibcs/binfmt_coff.c | file = current->files->fd[fd]; |
current | 65 | arch/i386/ibcs/binfmt_elf.c | mpnt->vm_task = current; |
current | 74 | arch/i386/ibcs/binfmt_elf.c | insert_vm_struct(current, mpnt); |
current | 105 | arch/i386/ibcs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
current | 111 | arch/i386/ibcs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
current | 117 | arch/i386/ibcs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
current | 172 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
current | 221 | arch/i386/ibcs/binfmt_elf.c | current->mm->brk = interp_ex->a_bss + |
current | 222 | arch/i386/ibcs/binfmt_elf.c | (current->mm->end_data = interp_ex->a_data + |
current | 223 | arch/i386/ibcs/binfmt_elf.c | (current->mm->end_code = interp_ex->a_text)); |
current | 329 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
current | 427 | arch/i386/ibcs/binfmt_elf.c | current->mm->end_data = 0; |
current | 428 | arch/i386/ibcs/binfmt_elf.c | current->mm->end_code = 0; |
current | 429 | arch/i386/ibcs/binfmt_elf.c | current->mm->start_mmap = ELF_START_MMAP; |
current | 430 | arch/i386/ibcs/binfmt_elf.c | current->mm->mmap = NULL; |
current | 435 | arch/i386/ibcs/binfmt_elf.c | current->mm->rss = 0; |
current | 437 | arch/i386/ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
current | 470 | arch/i386/ibcs/binfmt_elf.c | send_sig(SIGSEGV, current, 0); |
current | 514 | arch/i386/ibcs/binfmt_elf.c | current->personality = PER_LINUX; |
current | 515 | arch/i386/ibcs/binfmt_elf.c | current->lcall7 = no_lcall7; |
current | 516 | arch/i386/ibcs/binfmt_elf.c | current->signal_map = current->signal_invmap = ident_map; |
current | 518 | arch/i386/ibcs/binfmt_elf.c | current->executable = bprm->inode; |
current | 521 | arch/i386/ibcs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
current | 532 | arch/i386/ibcs/binfmt_elf.c | current->mm->arg_start += strlen(passed_fileno) + 1; |
current | 533 | arch/i386/ibcs/binfmt_elf.c | current->mm->start_brk = current->mm->brk = elf_brk; |
current | 534 | arch/i386/ibcs/binfmt_elf.c | current->mm->end_code = end_code; |
current | 535 | arch/i386/ibcs/binfmt_elf.c | current->mm->start_code = start_code; |
current | 536 | arch/i386/ibcs/binfmt_elf.c | current->mm->end_data = end_data; |
current | 537 | arch/i386/ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
current | 538 | arch/i386/ibcs/binfmt_elf.c | current->suid = current->euid = bprm->e_uid; |
current | 539 | arch/i386/ibcs/binfmt_elf.c | current->sgid = current->egid = bprm->e_gid; |
current | 543 | arch/i386/ibcs/binfmt_elf.c | current->mm->brk = (elf_bss + 0xfff) & 0xfffff000; |
current | 557 | arch/i386/ibcs/binfmt_elf.c | if (current->flags & PF_PTRACED) |
current | 558 | arch/i386/ibcs/binfmt_elf.c | send_sig(SIGTRAP, current, 0); |
current | 578 | arch/i386/ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
current | 60 | arch/i386/kernel/ioport.c | set_bitmap((unsigned long *)current->tss.io_bitmap, from, num, !turn_on); |
current | 18 | arch/i386/kernel/ldt.c | void * address = current->ldt; |
current | 64 | arch/i386/kernel/ldt.c | if (!current->ldt) { |
current | 66 | arch/i386/kernel/ldt.c | if (task[i] == current) { |
current | 67 | arch/i386/kernel/ldt.c | if (!(current->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE))) |
current | 69 | arch/i386/kernel/ldt.c | memset(current->ldt, 0, LDT_ENTRIES*LDT_ENTRY_SIZE); |
current | 70 | arch/i386/kernel/ldt.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, LDT_ENTRIES); |
current | 76 | arch/i386/kernel/ldt.c | lp = (unsigned long *) ¤t->ldt[ldt_info.entry_number]; |
current | 49 | arch/i386/kernel/process.c | if (current->pid != 0) |
current | 57 | arch/i386/kernel/process.c | current->counter = -100; |
current | 125 | arch/i386/kernel/process.c | current->tss.ldt = 0; |
current | 126 | arch/i386/kernel/process.c | if (current->ldt) { |
current | 127 | arch/i386/kernel/process.c | void * ldt = current->ldt; |
current | 128 | arch/i386/kernel/process.c | current->ldt = NULL; |
current | 137 | arch/i386/kernel/process.c | if (current->ldt) { |
current | 138 | arch/i386/kernel/process.c | free_page((unsigned long) current->ldt); |
current | 139 | arch/i386/kernel/process.c | current->ldt = NULL; |
current | 141 | arch/i386/kernel/process.c | if (task[i] == current) { |
current | 150 | arch/i386/kernel/process.c | current->debugreg[i] = 0; |
current | 180 | arch/i386/kernel/process.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
current | 190 | arch/i386/kernel/process.c | if (last_task_used_math == current) |
current | 205 | arch/i386/kernel/process.c | dump->u_tsize = ((unsigned long) current->mm->end_code) >> 12; |
current | 206 | arch/i386/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> 12; |
current | 210 | arch/i386/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
current | 220 | arch/i386/kernel/process.c | if ((dump->u_fpvalid = current->used_math) != 0) { |
current | 221 | arch/i386/kernel/process.c | if (last_task_used_math == current) |
current | 224 | arch/i386/kernel/process.c | memcpy(&dump->i387,¤t->tss.i387.hard,sizeof(dump->i387)); |
current | 310 | arch/i386/kernel/ptrace.c | if (current->flags & PF_PTRACED) |
current | 313 | arch/i386/kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 321 | arch/i386/kernel/ptrace.c | if (child == current) |
current | 324 | arch/i386/kernel/ptrace.c | (current->uid != child->euid) || |
current | 325 | arch/i386/kernel/ptrace.c | (current->uid != child->uid) || |
current | 326 | arch/i386/kernel/ptrace.c | (current->gid != child->egid) || |
current | 327 | arch/i386/kernel/ptrace.c | (current->gid != child->gid)) && !suser()) |
current | 333 | arch/i386/kernel/ptrace.c | if (child->p_pptr != current) { |
current | 335 | arch/i386/kernel/ptrace.c | child->p_pptr = current; |
current | 347 | arch/i386/kernel/ptrace.c | if (child->p_pptr != current) |
current | 531 | arch/i386/kernel/ptrace.c | if ((current->flags & (PF_PTRACED|PF_TRACESYS)) |
current | 534 | arch/i386/kernel/ptrace.c | current->exit_code = SIGTRAP; |
current | 535 | arch/i386/kernel/ptrace.c | current->state = TASK_STOPPED; |
current | 536 | arch/i386/kernel/ptrace.c | notify_parent(current); |
current | 543 | arch/i386/kernel/ptrace.c | if (current->exit_code) |
current | 544 | arch/i386/kernel/ptrace.c | current->signal |= (1 << (current->exit_code - 1)); |
current | 545 | arch/i386/kernel/ptrace.c | current->exit_code = 0; |
current | 32 | arch/i386/kernel/signal.c | mask = current->blocked; |
current | 33 | arch/i386/kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 36 | arch/i386/kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 60 | arch/i386/kernel/signal.c | current->blocked = context.oldmask & _BLOCKABLE; |
current | 99 | arch/i386/kernel/signal.c | if (current->exec_domain && current->exec_domain->signal_invmap) |
current | 100 | arch/i386/kernel/signal.c | put_fs_long(current->exec_domain->signal_invmap[signr], frame+1); |
current | 115 | arch/i386/kernel/signal.c | put_fs_long(current->tss.trap_no, frame+14); |
current | 116 | arch/i386/kernel/signal.c | put_fs_long(current->tss.error_code, frame+15); |
current | 125 | arch/i386/kernel/signal.c | put_fs_long(current->tss.cr2, frame+23); |
current | 146 | arch/i386/kernel/signal.c | unsigned long mask = ~current->blocked; |
current | 153 | arch/i386/kernel/signal.c | while ((signr = current->signal & mask)) { |
current | 156 | arch/i386/kernel/signal.c | :"=m" (current->signal),"=r" (signr) |
current | 158 | arch/i386/kernel/signal.c | sa = current->sigaction + signr; |
current | 160 | arch/i386/kernel/signal.c | if ((current->flags & PF_PTRACED) && signr != SIGKILL) { |
current | 161 | arch/i386/kernel/signal.c | current->exit_code = signr; |
current | 162 | arch/i386/kernel/signal.c | current->state = TASK_STOPPED; |
current | 163 | arch/i386/kernel/signal.c | notify_parent(current); |
current | 165 | arch/i386/kernel/signal.c | if (!(signr = current->exit_code)) |
current | 167 | arch/i386/kernel/signal.c | current->exit_code = 0; |
current | 170 | arch/i386/kernel/signal.c | if (_S(signr) & current->blocked) { |
current | 171 | arch/i386/kernel/signal.c | current->signal |= _S(signr); |
current | 174 | arch/i386/kernel/signal.c | sa = current->sigaction + signr - 1; |
current | 185 | arch/i386/kernel/signal.c | if (current->pid == 1) |
current | 192 | arch/i386/kernel/signal.c | if (current->flags & PF_PTRACED) |
current | 194 | arch/i386/kernel/signal.c | current->state = TASK_STOPPED; |
current | 195 | arch/i386/kernel/signal.c | current->exit_code = signr; |
current | 196 | arch/i386/kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 198 | arch/i386/kernel/signal.c | notify_parent(current); |
current | 204 | arch/i386/kernel/signal.c | if (current->binfmt && current->binfmt->core_dump) { |
current | 205 | arch/i386/kernel/signal.c | if (current->binfmt->core_dump(signr, regs)) |
current | 210 | arch/i386/kernel/signal.c | current->signal |= _S(signr & 0x7f); |
current | 237 | arch/i386/kernel/signal.c | sa = current->sigaction; |
current | 252 | arch/i386/kernel/signal.c | current->blocked |= sa->sa_mask; |
current | 258 | arch/i386/kernel/signal.c | current->tss.trap_no = current->tss.error_code = 0; |
current | 42 | arch/i386/kernel/traps.c | if (signr == SIGTRAP && current->flags & PF_PTRACED) \ |
current | 43 | arch/i386/kernel/traps.c | current->blocked &= ~(1 << (SIGTRAP-1)); \ |
current | 122 | arch/i386/kernel/traps.c | if (STACK_MAGIC != *(unsigned long *)current->kernel_stack_page) |
current | 125 | arch/i386/kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
current | 165 | arch/i386/kernel/traps.c | DO_ERROR( 0, SIGFPE, "divide error", divide_error, current) |
current | 166 | arch/i386/kernel/traps.c | DO_ERROR( 3, SIGTRAP, "int3", int3, current) |
current | 167 | arch/i386/kernel/traps.c | DO_ERROR( 4, SIGSEGV, "overflow", overflow, current) |
current | 168 | arch/i386/kernel/traps.c | DO_ERROR( 5, SIGSEGV, "bounds", bounds, current) |
current | 169 | arch/i386/kernel/traps.c | DO_ERROR( 6, SIGILL, "invalid operand", invalid_op, current) |
current | 170 | arch/i386/kernel/traps.c | DO_ERROR( 7, SIGSEGV, "device not available", device_not_available, current) |
current | 171 | arch/i386/kernel/traps.c | DO_ERROR( 8, SIGSEGV, "double fault", double_fault, current) |
current | 173 | arch/i386/kernel/traps.c | DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS, current) |
current | 174 | arch/i386/kernel/traps.c | DO_ERROR(11, SIGBUS, "segment not present", segment_not_present, current) |
current | 175 | arch/i386/kernel/traps.c | DO_ERROR(12, SIGBUS, "stack segment", stack_segment, current) |
current | 176 | arch/i386/kernel/traps.c | DO_ERROR(15, SIGSEGV, "reserved", reserved, current) |
current | 177 | arch/i386/kernel/traps.c | DO_ERROR(17, SIGSEGV, "alignment check", alignment_check, current) |
current | 186 | arch/i386/kernel/traps.c | current->tss.error_code = error_code; |
current | 187 | arch/i386/kernel/traps.c | current->tss.trap_no = 13; |
current | 188 | arch/i386/kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 206 | arch/i386/kernel/traps.c | if (current->flags & PF_PTRACED) |
current | 207 | arch/i386/kernel/traps.c | current->blocked &= ~(1 << (SIGTRAP-1)); |
current | 208 | arch/i386/kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 209 | arch/i386/kernel/traps.c | current->tss.trap_no = 1; |
current | 210 | arch/i386/kernel/traps.c | current->tss.error_code = error_code; |
current | 274 | arch/i386/kernel/traps.c | if (last_task_used_math == current) |
current | 282 | arch/i386/kernel/traps.c | last_task_used_math = current; |
current | 283 | arch/i386/kernel/traps.c | if (current->used_math) { |
current | 284 | arch/i386/kernel/traps.c | __asm__("frstor %0": :"m" (current->tss.i387)); |
current | 287 | arch/i386/kernel/traps.c | current->used_math=1; |
current | 297 | arch/i386/kernel/traps.c | printk("killing %s.\n",current->comm); |
current | 298 | arch/i386/kernel/traps.c | send_sig(SIGFPE,current,1); |
current | 44 | arch/i386/kernel/vm86.c | #define VFLAGS (*(unsigned short *)&(current->tss.v86flags)) |
current | 45 | arch/i386/kernel/vm86.c | #define VEFLAGS (current->tss.v86flags) |
current | 57 | arch/i386/kernel/vm86.c | if (!current->tss.vm86_info) { |
current | 61 | arch/i386/kernel/vm86.c | set_flags(regs->eflags, VEFLAGS, VIF_MASK | current->tss.v86mask); |
current | 62 | arch/i386/kernel/vm86.c | memcpy_tofs(¤t->tss.vm86_info->regs,regs,sizeof(*regs)); |
current | 63 | arch/i386/kernel/vm86.c | put_fs_long(current->tss.screen_bitmap,¤t->tss.vm86_info->screen_bitmap); |
current | 64 | arch/i386/kernel/vm86.c | tmp = current->tss.esp0; |
current | 65 | arch/i386/kernel/vm86.c | current->tss.esp0 = current->saved_kernel_stack; |
current | 66 | arch/i386/kernel/vm86.c | current->saved_kernel_stack = 0; |
current | 108 | arch/i386/kernel/vm86.c | if (current->saved_kernel_stack) |
current | 134 | arch/i386/kernel/vm86.c | current->tss.v86mask = 0; |
current | 137 | arch/i386/kernel/vm86.c | current->tss.v86mask = NT_MASK | IOPL_MASK; |
current | 140 | arch/i386/kernel/vm86.c | current->tss.v86mask = AC_MASK | NT_MASK | IOPL_MASK; |
current | 143 | arch/i386/kernel/vm86.c | current->tss.v86mask = ID_MASK | AC_MASK | NT_MASK | IOPL_MASK; |
current | 151 | arch/i386/kernel/vm86.c | current->saved_kernel_stack = current->tss.esp0; |
current | 152 | arch/i386/kernel/vm86.c | current->tss.esp0 = (unsigned long) pt_regs; |
current | 153 | arch/i386/kernel/vm86.c | current->tss.vm86_info = v86; |
current | 155 | arch/i386/kernel/vm86.c | current->tss.screen_bitmap = info.screen_bitmap; |
current | 157 | arch/i386/kernel/vm86.c | mark_screen_rdonly(current); |
current | 195 | arch/i386/kernel/vm86.c | set_flags(VEFLAGS, eflags, current->tss.v86mask); |
current | 203 | arch/i386/kernel/vm86.c | set_flags(VFLAGS, flags, current->tss.v86mask); |
current | 215 | arch/i386/kernel/vm86.c | return flags | (VEFLAGS & current->tss.v86mask); |
current | 304 | arch/i386/kernel/vm86.c | is_revectored(i, ¤t->tss.vm86_info->int_revectored)) |
current | 306 | arch/i386/kernel/vm86.c | if (i==0x21 && is_revectored(AH(regs),¤t->tss.vm86_info->int21_revectored)) |
current | 324 | arch/i386/kernel/vm86.c | if (current->flags & PF_PTRACED) |
current | 325 | arch/i386/kernel/vm86.c | current->blocked &= ~(1 << (SIGTRAP-1)); |
current | 326 | arch/i386/kernel/vm86.c | send_sig(SIGTRAP, current, 1); |
current | 327 | arch/i386/kernel/vm86.c | current->tss.trap_no = 1; |
current | 328 | arch/i386/kernel/vm86.c | current->tss.error_code = error_code; |
current | 155 | arch/i386/math-emu/fpu_entry.c | if (!current->used_math) |
current | 166 | arch/i386/math-emu/fpu_entry.c | current->used_math = 1; |
current | 219 | arch/i386/math-emu/fpu_entry.c | if (current->flags & PF_PTRACED) |
current | 307 | arch/i386/math-emu/fpu_entry.c | current->tss.trap_no = 16; |
current | 308 | arch/i386/math-emu/fpu_entry.c | current->tss.error_code = 0; |
current | 309 | arch/i386/math-emu/fpu_entry.c | send_sig(SIGFPE, current, 1); |
current | 682 | arch/i386/math-emu/fpu_entry.c | current->tss.trap_no = 16; |
current | 683 | arch/i386/math-emu/fpu_entry.c | current->tss.error_code = 0; |
current | 684 | arch/i386/math-emu/fpu_entry.c | send_sig(signal,current,1); |
current | 23 | arch/i386/math-emu/fpu_system.h | #define LDT_DESCRIPTOR(s) (current->ldt[(s) >> 3]) |
current | 36 | arch/i386/math-emu/fpu_system.h | #define I387 (current->tss.i387) |
current | 43 | arch/i386/mm/fault.c | vma = find_vma(current, address); |
current | 50 | arch/i386/mm/fault.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 78 | arch/i386/mm/fault.c | current->tss.screen_bitmap |= 1 << bit; |
current | 97 | arch/i386/mm/fault.c | current->tss.cr2 = address; |
current | 98 | arch/i386/mm/fault.c | current->tss.error_code = error_code; |
current | 99 | arch/i386/mm/fault.c | current->tss.trap_no = 14; |
current | 100 | arch/i386/mm/fault.c | send_sig(SIGSEGV, current, 1); |
current | 124 | arch/i386/mm/fault.c | current->tss.cr3, page); |
current | 41 | arch/mips/kernel/process.c | if (current->pid != 0) |
current | 51 | arch/mips/kernel/process.c | current->counter = -100; |
current | 139 | arch/mips/kernel/process.c | dump->u_tsize = ((unsigned long) current->mm->end_code) >> 12; |
current | 140 | arch/mips/kernel/process.c | dump->u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> 12; |
current | 144 | arch/mips/kernel/process.c | dump->u_debugreg[i] = current->debugreg[i]; |
current | 154 | arch/mips/kernel/process.c | if ((dump->u_fpvalid = current->used_math) != 0) { |
current | 155 | arch/mips/kernel/process.c | if (last_task_used_math == current) |
current | 158 | arch/mips/kernel/process.c | memcpy(&dump->i387,¤t->tss.i387.hard,sizeof(dump->i387)); |
current | 291 | arch/mips/kernel/ptrace.c | if (current->flags & PF_PTRACED) |
current | 294 | arch/mips/kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 302 | arch/mips/kernel/ptrace.c | if (child == current) |
current | 305 | arch/mips/kernel/ptrace.c | (current->uid != child->euid) || |
current | 306 | arch/mips/kernel/ptrace.c | (current->uid != child->uid) || |
current | 307 | arch/mips/kernel/ptrace.c | (current->gid != child->egid) || |
current | 308 | arch/mips/kernel/ptrace.c | (current->gid != child->gid)) && !suser()) |
current | 314 | arch/mips/kernel/ptrace.c | if (child->p_pptr != current) { |
current | 316 | arch/mips/kernel/ptrace.c | child->p_pptr = current; |
current | 328 | arch/mips/kernel/ptrace.c | if (child->p_pptr != current) |
current | 513 | arch/mips/kernel/ptrace.c | if ((current->flags & (PF_PTRACED|PF_TRACESYS)) |
current | 516 | arch/mips/kernel/ptrace.c | current->exit_code = SIGTRAP; |
current | 517 | arch/mips/kernel/ptrace.c | current->state = TASK_STOPPED; |
current | 518 | arch/mips/kernel/ptrace.c | notify_parent(current); |
current | 525 | arch/mips/kernel/ptrace.c | if (current->exit_code) |
current | 526 | arch/mips/kernel/ptrace.c | current->signal |= (1 << (current->exit_code - 1)); |
current | 527 | arch/mips/kernel/ptrace.c | current->exit_code = 0; |
current | 33 | arch/mips/kernel/signal.c | mask = current->blocked; |
current | 34 | arch/mips/kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 37 | arch/mips/kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 56 | arch/mips/kernel/signal.c | current->blocked = context.oldmask & _BLOCKABLE; |
current | 181 | arch/mips/kernel/signal.c | unsigned long mask = ~current->blocked; |
current | 188 | arch/mips/kernel/signal.c | while ((signr = current->signal & mask)) { |
current | 203 | arch/mips/kernel/signal.c | :"=r" (signr),"=r" (current->signal) |
current | 204 | arch/mips/kernel/signal.c | :"0" (signr),"1" (current->signal) |
current | 206 | arch/mips/kernel/signal.c | sa = current->sigaction + signr; |
current | 208 | arch/mips/kernel/signal.c | if ((current->flags & PF_PTRACED) && signr != SIGKILL) { |
current | 209 | arch/mips/kernel/signal.c | current->exit_code = signr; |
current | 210 | arch/mips/kernel/signal.c | current->state = TASK_STOPPED; |
current | 211 | arch/mips/kernel/signal.c | notify_parent(current); |
current | 213 | arch/mips/kernel/signal.c | if (!(signr = current->exit_code)) |
current | 215 | arch/mips/kernel/signal.c | current->exit_code = 0; |
current | 218 | arch/mips/kernel/signal.c | if (_S(signr) & current->blocked) { |
current | 219 | arch/mips/kernel/signal.c | current->signal |= _S(signr); |
current | 222 | arch/mips/kernel/signal.c | sa = current->sigaction + signr - 1; |
current | 233 | arch/mips/kernel/signal.c | if (current->pid == 1) |
current | 240 | arch/mips/kernel/signal.c | if (current->flags & PF_PTRACED) |
current | 242 | arch/mips/kernel/signal.c | current->state = TASK_STOPPED; |
current | 243 | arch/mips/kernel/signal.c | current->exit_code = signr; |
current | 244 | arch/mips/kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 246 | arch/mips/kernel/signal.c | notify_parent(current); |
current | 252 | arch/mips/kernel/signal.c | if (current->binfmt && current->binfmt->core_dump) { |
current | 253 | arch/mips/kernel/signal.c | if (current->binfmt->core_dump(signr, regs)) |
current | 258 | arch/mips/kernel/signal.c | current->signal |= _S(signr & 0x7f); |
current | 286 | arch/mips/kernel/signal.c | sa = current->sigaction; |
current | 306 | arch/mips/kernel/signal.c | current->blocked |= sa->sa_mask; |
current | 128 | arch/mips/kernel/traps.c | if (STACK_MAGIC != *(unsigned long *)current->kernel_stack_page) |
current | 131 | arch/mips/kernel/traps.c | current->comm, current->pid, 0xffff & i, |
current | 132 | arch/mips/kernel/traps.c | current->kernel_stack_page); |
current | 177 | arch/mips/kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 182 | arch/mips/kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 187 | arch/mips/kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 192 | arch/mips/kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 197 | arch/mips/kernel/traps.c | send_sig(SIGFPE, current, 1); |
current | 207 | arch/mips/kernel/traps.c | send_sig(SIGFPE, current, 1); |
current | 212 | arch/mips/kernel/traps.c | send_sig(SIGILL, current, 1); |
current | 217 | arch/mips/kernel/traps.c | send_sig(SIGILL, current, 1); |
current | 222 | arch/mips/kernel/traps.c | send_sig(SIGILL, current, 1); |
current | 253 | arch/mips/kernel/traps.c | send_sig(SIGILL, current, 1); |
current | 47 | arch/mips/mm/fault.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
current | 57 | arch/mips/mm/fault.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 92 | arch/mips/mm/fault.c | current->tss.cp0_badvaddr = address; |
current | 93 | arch/mips/mm/fault.c | current->tss.error_code = error_code; |
current | 95 | arch/mips/mm/fault.c | current->tss.trap_no = 14; |
current | 97 | arch/mips/mm/fault.c | send_sig(SIGSEGV, current, 1); |
current | 110 | arch/mips/mm/fault.c | page = current->tss.pg_dir; |
current | 33 | arch/sparc/kernel/process.c | if (current->pid != 0) |
current | 40 | arch/sparc/kernel/process.c | current->counter = -100; |
current | 31 | arch/sparc/kernel/signal.c | mask = current->blocked; |
current | 32 | arch/sparc/kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 35 | arch/sparc/kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 385 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 386 | drivers/block/cdu31a.c | current->timeout = jiffies; |
current | 561 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 562 | drivers/block/cdu31a.c | current->timeout = jiffies + 200; |
current | 759 | drivers/block/cdu31a.c | if (current != has_cd_task) /* Allow recursive calls to this routine */ |
current | 764 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 773 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 820 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 821 | drivers/block/cdu31a.c | current->timeout = jiffies + 10; /* Wait .1 seconds on retries */ |
current | 1369 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 1375 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 2003 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 2009 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 377 | drivers/block/floppy.c | #define NO_SIGNAL (!(current->signal & ~current->blocked) || !interruptible) |
current | 658 | drivers/block/floppy.c | if (!current->pid) |
current | 1690 | drivers/block/floppy.c | if (current->pid) |
current | 714 | drivers/block/sbpcd.c | current->state = TASK_INTERRUPTIBLE; |
current | 715 | drivers/block/sbpcd.c | current->timeout = jiffies + jifs; |
current | 853 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 896 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 946 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 1044 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 340 | drivers/block/sonycd535.c | current->state = TASK_INTERRUPTIBLE; |
current | 341 | drivers/block/sonycd535.c | current->timeout = jiffies; |
current | 2320 | drivers/char/cyclades.c | current->state = TASK_INTERRUPTIBLE; |
current | 2321 | drivers/char/cyclades.c | current->timeout = jiffies + info->close_delay; |
current | 2377 | drivers/char/cyclades.c | struct wait_queue wait = { current, NULL }; |
current | 2407 | drivers/char/cyclades.c | (info->session != current->session)){ |
current | 2412 | drivers/char/cyclades.c | (info->pgrp != current->pgrp)){ |
current | 2469 | drivers/char/cyclades.c | current->state = TASK_INTERRUPTIBLE; |
current | 2490 | drivers/char/cyclades.c | if (current->signal & ~current->blocked) { |
current | 2500 | drivers/char/cyclades.c | current->state = TASK_RUNNING; |
current | 2584 | drivers/char/cyclades.c | info->session = current->session; |
current | 2585 | drivers/char/cyclades.c | info->pgrp = current->pgrp; |
current | 212 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_INTERRUPT; |
current | 216 | drivers/char/lp.c | if (current->signal & ~current->blocked) { |
current | 266 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 267 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 274 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 275 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 283 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 284 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 289 | drivers/char/lp.c | if (current->signal & ~current->blocked) { |
current | 300 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 301 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
current | 613 | drivers/char/n_tty.c | return ((current->blocked & (1<<(sig-1))) || |
current | 614 | drivers/char/n_tty.c | (current->sigaction[sig-1].sa_handler == SIG_IGN)); |
current | 746 | drivers/char/n_tty.c | struct wait_queue wait = { current, NULL }; |
current | 766 | drivers/char/n_tty.c | current->tty == tty) { |
current | 769 | drivers/char/n_tty.c | else if (current->pgrp != tty->pgrp) { |
current | 771 | drivers/char/n_tty.c | is_orphaned_pgrp(current->pgrp)) |
current | 773 | drivers/char/n_tty.c | kill_pg(current->pgrp, SIGTTIN, 1); |
current | 780 | drivers/char/n_tty.c | current->timeout = (unsigned long) -1; |
current | 785 | drivers/char/n_tty.c | current->timeout = (unsigned long) -1; |
current | 793 | drivers/char/n_tty.c | current->timeout = time + jiffies; |
current | 796 | drivers/char/n_tty.c | current->timeout = 0; |
current | 814 | drivers/char/n_tty.c | current->state = TASK_INTERRUPTIBLE; |
current | 827 | drivers/char/n_tty.c | if (!current->timeout) |
current | 833 | drivers/char/n_tty.c | if (current->signal & ~current->blocked) { |
current | 840 | drivers/char/n_tty.c | current->state = TASK_RUNNING; |
current | 896 | drivers/char/n_tty.c | current->timeout = time + jiffies; |
current | 903 | drivers/char/n_tty.c | current->state = TASK_RUNNING; |
current | 904 | drivers/char/n_tty.c | current->timeout = 0; |
current | 918 | drivers/char/n_tty.c | struct wait_queue wait = { current, NULL }; |
current | 932 | drivers/char/n_tty.c | current->state = TASK_INTERRUPTIBLE; |
current | 933 | drivers/char/n_tty.c | if (current->signal & ~current->blocked) { |
current | 963 | drivers/char/n_tty.c | current->state = TASK_RUNNING; |
current | 142 | drivers/char/psaux.c | current->state = TASK_INTERRUPTIBLE; |
current | 143 | drivers/char/psaux.c | current->timeout = jiffies + 5; |
current | 378 | drivers/char/psaux.c | struct wait_queue wait = { current, NULL }; |
current | 387 | drivers/char/psaux.c | current->state = TASK_INTERRUPTIBLE; |
current | 388 | drivers/char/psaux.c | if (queue_empty() && !(current->signal & ~current->blocked)) { |
current | 392 | drivers/char/psaux.c | current->state = TASK_RUNNING; |
current | 405 | drivers/char/psaux.c | if (current->signal & ~current->blocked) |
current | 491 | drivers/char/psaux.c | current->state = TASK_INTERRUPTIBLE; |
current | 492 | drivers/char/psaux.c | current->timeout = jiffies + 5; |
current | 514 | drivers/char/psaux.c | current->state = TASK_INTERRUPTIBLE; |
current | 515 | drivers/char/psaux.c | current->timeout = jiffies + 5; |
current | 207 | drivers/char/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
current | 271 | drivers/char/selection.c | struct wait_queue wait = { current, NULL }; |
current | 280 | drivers/char/selection.c | current->state = TASK_INTERRUPTIBLE; |
current | 292 | drivers/char/selection.c | current->state = TASK_RUNNING; |
current | 1652 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1653 | drivers/char/serial.c | current->timeout = jiffies + duration; |
current | 2029 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 2030 | drivers/char/serial.c | current->timeout = jiffies + info->timeout; |
current | 2054 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 2055 | drivers/char/serial.c | current->timeout = jiffies + info->close_delay; |
current | 2092 | drivers/char/serial.c | struct wait_queue wait = { current, NULL }; |
current | 2121 | drivers/char/serial.c | (info->session != current->session)) |
current | 2125 | drivers/char/serial.c | (info->pgrp != current->pgrp)) |
current | 2173 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 2191 | drivers/char/serial.c | if (current->signal & ~current->blocked) { |
current | 2201 | drivers/char/serial.c | current->state = TASK_RUNNING; |
current | 2272 | drivers/char/serial.c | info->session = current->session; |
current | 2273 | drivers/char/serial.c | info->pgrp = current->pgrp; |
current | 757 | drivers/char/tpqic02.c | current->timeout = jiffies + 30; /* nap 0.30 sec between checks, */ |
current | 758 | drivers/char/tpqic02.c | current->state = TASK_INTERRUPTIBLE; |
current | 267 | drivers/char/tty_io.c | if (current->tty != tty) |
current | 273 | drivers/char/tty_io.c | if (current->pgrp == tty->pgrp) |
current | 277 | drivers/char/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 279 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
current | 440 | drivers/char/tty_io.c | struct tty_struct *tty = current->tty; |
current | 444 | drivers/char/tty_io.c | if (current->tty_old_pgrp) { |
current | 445 | drivers/char/tty_io.c | kill_pg(current->tty_old_pgrp, SIGHUP, priv); |
current | 446 | drivers/char/tty_io.c | kill_pg(current->tty_old_pgrp, SIGCONT, priv); |
current | 455 | drivers/char/tty_io.c | current->tty_old_pgrp = 0; |
current | 460 | drivers/char/tty_io.c | if (p->session == current->session) |
current | 480 | drivers/char/tty_io.c | return (current->signal & ~current->blocked) ? -1 : 0; |
current | 692 | drivers/char/tty_io.c | (current->tty == tty) && |
current | 693 | drivers/char/tty_io.c | (tty->pgrp != current->pgrp)) |
current | 694 | drivers/char/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
current | 697 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp, SIGTTIN, 1); |
current | 728 | drivers/char/tty_io.c | (current->tty == tty) && (tty->pgrp != current->pgrp)) { |
current | 729 | drivers/char/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 732 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp, SIGTTOU, 1); |
current | 1119 | drivers/char/tty_io.c | if (!current->tty) |
current | 1121 | drivers/char/tty_io.c | device = current->tty->device; |
current | 1157 | drivers/char/tty_io.c | if (current->signal & ~current->blocked) |
current | 1167 | drivers/char/tty_io.c | current->leader && |
current | 1168 | drivers/char/tty_io.c | !current->tty && |
current | 1170 | drivers/char/tty_io.c | current->tty = tty; |
current | 1171 | drivers/char/tty_io.c | current->tty_old_pgrp = 0; |
current | 1172 | drivers/char/tty_io.c | tty->session = current->session; |
current | 1173 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
current | 1231 | drivers/char/tty_io.c | filp->f_owner = current->pid; |
current | 1304 | drivers/char/tty_io.c | if ((current->tty != tty) && !suser()) |
current | 1366 | drivers/char/tty_io.c | if (current->tty != tty) |
current | 1368 | drivers/char/tty_io.c | if (current->leader) |
current | 1370 | drivers/char/tty_io.c | current->tty = NULL; |
current | 1373 | drivers/char/tty_io.c | if (current->leader && |
current | 1374 | drivers/char/tty_io.c | (current->session == tty->session)) |
current | 1380 | drivers/char/tty_io.c | if (!current->leader || current->tty) |
current | 1399 | drivers/char/tty_io.c | current->tty = tty; |
current | 1400 | drivers/char/tty_io.c | current->tty_old_pgrp = 0; |
current | 1401 | drivers/char/tty_io.c | tty->session = current->session; |
current | 1402 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
current | 1409 | drivers/char/tty_io.c | if (tty == real_tty && current->tty != real_tty) |
current | 1421 | drivers/char/tty_io.c | if (!current->tty || |
current | 1422 | drivers/char/tty_io.c | (current->tty != real_tty) || |
current | 1423 | drivers/char/tty_io.c | (real_tty->session != current->session)) |
current | 1428 | drivers/char/tty_io.c | if (session_of_pgrp(pgrp) != current->session) |
current | 1448 | drivers/char/tty_io.c | if (current->tty != tty && !suser()) |
current | 45 | drivers/char/tty_ioctl.c | struct wait_queue wait = { current, NULL }; |
current | 54 | drivers/char/tty_ioctl.c | current->counter = 0; /* make us low-priority */ |
current | 56 | drivers/char/tty_ioctl.c | current->timeout = timeout + jiffies; |
current | 58 | drivers/char/tty_ioctl.c | current->timeout = (unsigned) -1; |
current | 63 | drivers/char/tty_ioctl.c | current->state = TASK_INTERRUPTIBLE; |
current | 64 | drivers/char/tty_ioctl.c | if (current->signal & ~current->blocked) |
current | 69 | drivers/char/tty_ioctl.c | } while (current->timeout); |
current | 70 | drivers/char/tty_ioctl.c | current->state = TASK_RUNNING; |
current | 154 | drivers/char/vt.c | if (current->tty == tty || suser()) |
current | 622 | drivers/char/vt.c | spawnpid = current->pid; |
current | 646 | drivers/char/vt.c | vt_cons[console]->vt_pid = current->pid; |
current | 1295 | drivers/net/ppp.c | current->timeout = 0; |
current | 1298 | drivers/net/ppp.c | if (current->signal & ~current->blocked) |
current | 1355 | drivers/net/ppp.c | current->timeout = 0; |
current | 1358 | drivers/net/ppp.c | if (current->signal & ~current->blocked) |
current | 1495 | drivers/net/ppp.c | ppp->inp_sig_pid = current->pid; |
current | 3107 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current; |
current | 1202 | drivers/scsi/53c7,8xx.h | volatile struct NCR53c7x0_cmd *current; /* currently connected |
current | 323 | drivers/scsi/scsi.c | scsi_result = ((current == task[0] || !shpnt->unchecked_isa_dma) |
current | 371 | drivers/scsi/scsi.c | if (current == task[0]) |
current | 422 | drivers/scsi/scsi.c | if (current == task[0]) |
current | 585 | drivers/scsi/scsi.c | if (current == task[0]) |
current | 878 | drivers/scsi/scsi.c | if ((unsigned long) &SCpnt < current->kernel_stack_page) |
current | 608 | drivers/scsi/scsi.h | struct wait_queue wait = { current, NULL}; \ |
current | 611 | drivers/scsi/scsi.h | current->state = TASK_UNINTERRUPTIBLE; \ |
current | 622 | drivers/scsi/scsi.h | current->state = TASK_RUNNING; \ |
current | 870 | drivers/scsi/sd.c | if (current == task[0]){ |
current | 946 | drivers/scsi/sd.c | if (current == task[0]) |
current | 98 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 109 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 147 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 182 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 254 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 928 | drivers/scsi/sr.c | if (current == task[0]) |
current | 1015 | drivers/sound/gus_wave.c | int current, target, rate; |
current | 1028 | drivers/sound/gus_wave.c | current = gus_read16 (0x09) >> 4; |
current | 1045 | drivers/sound/gus_wave.c | if ((target - current) / 64 == 0) /* Close enough to target. */ |
current | 1053 | drivers/sound/gus_wave.c | if (target > current) |
current | 1057 | drivers/sound/gus_wave.c | gus_ramp_range (current, target); |
current | 1065 | drivers/sound/gus_wave.c | gus_ramp_range (target, current); |
current | 76 | drivers/sound/os.h | #define PROCESS_ABORTING(q, f) (/*f.aborting | */(current->signal & ~current->blocked)) |
current | 81 | drivers/sound/os.h | if (time_limit) tl = current->timeout = jiffies + (time_limit); \ |
current | 86 | drivers/sound/os.h | if (current->signal & ~current->blocked) \ |
current | 89 | fs/binfmt_elf.c | mpnt->vm_task = current; |
current | 104 | fs/binfmt_elf.c | insert_vm_struct(current, mpnt); |
current | 106 | fs/binfmt_elf.c | current->mm->stk_vma = mpnt; |
current | 139 | fs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
current | 145 | fs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
current | 151 | fs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
current | 206 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
current | 255 | fs/binfmt_elf.c | current->mm->brk = interp_ex->a_bss + |
current | 256 | fs/binfmt_elf.c | (current->mm->end_data = interp_ex->a_data + |
current | 257 | fs/binfmt_elf.c | (current->mm->end_code = interp_ex->a_text)); |
current | 374 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
current | 482 | fs/binfmt_elf.c | current->mm->end_data = 0; |
current | 483 | fs/binfmt_elf.c | current->mm->end_code = 0; |
current | 484 | fs/binfmt_elf.c | current->mm->start_mmap = ELF_START_MMAP; |
current | 485 | fs/binfmt_elf.c | current->mm->mmap = NULL; |
current | 490 | fs/binfmt_elf.c | current->mm->rss = 0; |
current | 492 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
current | 525 | fs/binfmt_elf.c | send_sig(SIGSEGV, current, 0); |
current | 564 | fs/binfmt_elf.c | current->personality = (ibcs2_interpreter ? PER_SVR4 : PER_LINUX); |
current | 566 | fs/binfmt_elf.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 567 | fs/binfmt_elf.c | (*current->exec_domain->use_count)--; |
current | 568 | fs/binfmt_elf.c | if (current->binfmt && current->binfmt->use_count) |
current | 569 | fs/binfmt_elf.c | (*current->binfmt->use_count)--; |
current | 570 | fs/binfmt_elf.c | current->exec_domain = lookup_exec_domain(current->personality); |
current | 571 | fs/binfmt_elf.c | current->binfmt = &elf_format; |
current | 572 | fs/binfmt_elf.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 573 | fs/binfmt_elf.c | (*current->exec_domain->use_count)++; |
current | 574 | fs/binfmt_elf.c | if (current->binfmt && current->binfmt->use_count) |
current | 575 | fs/binfmt_elf.c | (*current->binfmt->use_count)++; |
current | 578 | fs/binfmt_elf.c | current->executable = bprm->inode; |
current | 582 | fs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
current | 593 | fs/binfmt_elf.c | current->mm->arg_start += strlen(passed_fileno) + 1; |
current | 594 | fs/binfmt_elf.c | current->mm->start_brk = current->mm->brk = elf_brk; |
current | 595 | fs/binfmt_elf.c | current->mm->end_code = end_code; |
current | 596 | fs/binfmt_elf.c | current->mm->start_code = start_code; |
current | 597 | fs/binfmt_elf.c | current->mm->end_data = end_data; |
current | 598 | fs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
current | 599 | fs/binfmt_elf.c | current->suid = current->euid = current->fsuid = bprm->e_uid; |
current | 600 | fs/binfmt_elf.c | current->sgid = current->egid = current->fsgid = bprm->e_gid; |
current | 604 | fs/binfmt_elf.c | current->mm->brk = (elf_bss + 0xfff) & 0xfffff000; |
current | 610 | fs/binfmt_elf.c | printk("(start_brk) %x\n" , current->mm->start_brk); |
current | 611 | fs/binfmt_elf.c | printk("(end_code) %x\n" , current->mm->end_code); |
current | 612 | fs/binfmt_elf.c | printk("(start_code) %x\n" , current->mm->start_code); |
current | 613 | fs/binfmt_elf.c | printk("(end_data) %x\n" , current->mm->end_data); |
current | 614 | fs/binfmt_elf.c | printk("(start_stack) %x\n" , current->mm->start_stack); |
current | 615 | fs/binfmt_elf.c | printk("(brk) %x\n" , current->mm->brk); |
current | 626 | fs/binfmt_elf.c | if (current->flags & PF_PTRACED) |
current | 627 | fs/binfmt_elf.c | send_sig(SIGTRAP, current, 0); |
current | 650 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
current | 112 | fs/buffer.c | struct wait_queue wait = { current, NULL }; |
current | 117 | fs/buffer.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 124 | fs/buffer.c | current->state = TASK_RUNNING; |
current | 245 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
current | 1032 | fs/buffer.c | ++current->mm->min_flt; |
current | 1089 | fs/buffer.c | ++current->mm->maj_flt; |
current | 1143 | fs/buffer.c | ++current->mm->maj_flt; |
current | 1854 | fs/buffer.c | if (current->signal & (1 << (SIGKILL-1))) { |
current | 1858 | fs/buffer.c | current->signal = 0; |
current | 116 | fs/exec.c | fpp = current->files->fd; |
current | 173 | fs/exec.c | char corefile[6+sizeof(current->comm)]; |
current | 177 | fs/exec.c | if (!current->dumpable) |
current | 179 | fs/exec.c | current->dumpable = 0; |
current | 182 | fs/exec.c | if (current->rlim[RLIMIT_CORE].rlim_cur < PAGE_SIZE) |
current | 188 | fs/exec.c | memcpy(corefile+5,current->comm,sizeof(current->comm)); |
current | 215 | fs/exec.c | strncpy(dump.u_comm, current->comm, sizeof(current->comm)); |
current | 223 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 228 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 252 | fs/exec.c | DUMP_WRITE(current,sizeof(*current)); |
current | 279 | fs/exec.c | file = current->files->fd[fd]; |
current | 308 | fs/exec.c | mpnt->vm_task = current; |
current | 317 | fs/exec.c | insert_vm_struct(current, mpnt); |
current | 329 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
current | 335 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
current | 341 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
current | 445 | fs/exec.c | current->mm->start_code = code_base; |
current | 450 | fs/exec.c | current->mm->rss++; |
current | 451 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
current | 512 | fs/exec.c | current->dumpable = 1; |
current | 519 | fs/exec.c | current->comm[i++] = ch; |
current | 521 | fs/exec.c | current->comm[i] = '\0'; |
current | 524 | fs/exec.c | exit_mmap(current); |
current | 528 | fs/exec.c | if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || |
current | 530 | fs/exec.c | current->dumpable = 0; |
current | 531 | fs/exec.c | current->signal = 0; |
current | 533 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
current | 534 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
current | 535 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
current | 536 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
current | 539 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
current | 541 | fs/exec.c | FD_ZERO(¤t->files->close_on_exec); |
current | 542 | fs/exec.c | clear_page_tables(current); |
current | 543 | fs/exec.c | if (last_task_used_math == current) |
current | 545 | fs/exec.c | current->used_math = 0; |
current | 586 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
current | 592 | fs/exec.c | if (current->flags & PF_PTRACED) { |
current | 593 | fs/exec.c | bprm.e_uid = current->euid; |
current | 594 | fs/exec.c | bprm.e_gid = current->egid; |
current | 596 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
current | 597 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
current | 707 | fs/exec.c | current->did_exec = 1; |
current | 753 | fs/exec.c | current->personality = PER_LINUX; |
current | 769 | fs/exec.c | current->mm->brk = ex.a_bss + |
current | 770 | fs/exec.c | (current->mm->start_brk = |
current | 771 | fs/exec.c | (current->mm->end_data = ex.a_data + |
current | 772 | fs/exec.c | (current->mm->end_code = ex.a_text + |
current | 773 | fs/exec.c | (current->mm->start_code = N_TXTADDR(ex))))); |
current | 774 | fs/exec.c | current->mm->rss = 0; |
current | 775 | fs/exec.c | current->mm->mmap = NULL; |
current | 776 | fs/exec.c | current->suid = current->euid = current->fsuid = bprm->e_uid; |
current | 777 | fs/exec.c | current->sgid = current->egid = current->fsgid = bprm->e_gid; |
current | 791 | fs/exec.c | file = current->files->fd[fd]; |
current | 809 | fs/exec.c | send_sig(SIGKILL, current, 0); |
current | 819 | fs/exec.c | send_sig(SIGKILL, current, 0); |
current | 824 | fs/exec.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 825 | fs/exec.c | (*current->exec_domain->use_count)--; |
current | 826 | fs/exec.c | if (current->binfmt && current->binfmt->use_count) |
current | 827 | fs/exec.c | (*current->binfmt->use_count)--; |
current | 828 | fs/exec.c | current->exec_domain = lookup_exec_domain(current->personality); |
current | 829 | fs/exec.c | current->binfmt = &aout_format; |
current | 830 | fs/exec.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 831 | fs/exec.c | (*current->exec_domain->use_count)++; |
current | 832 | fs/exec.c | if (current->binfmt && current->binfmt->use_count) |
current | 833 | fs/exec.c | (*current->binfmt->use_count)++; |
current | 835 | fs/exec.c | set_brk(current->mm->start_brk, current->mm->brk); |
current | 841 | fs/exec.c | current->personality != PER_LINUX); |
current | 842 | fs/exec.c | current->mm->start_stack = p; |
current | 844 | fs/exec.c | if (current->flags & PF_PTRACED) |
current | 845 | fs/exec.c | send_sig(SIGTRAP, current, 0); |
current | 860 | fs/exec.c | file = current->files->fd[fd]; |
current | 285 | fs/ext/freelists.c | inode->i_uid = current->fsuid; |
current | 286 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 356 | fs/ext/namei.c | inode->i_uid = current->fsuid; |
current | 443 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
current | 540 | fs/ext/namei.c | current->fsuid != inode->i_uid && |
current | 541 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
current | 594 | fs/ext/namei.c | current->fsuid != inode->i_uid && |
current | 595 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
current | 772 | fs/ext/namei.c | current->counter = 0; |
current | 786 | fs/ext/namei.c | current->fsuid != old_inode->i_uid && |
current | 787 | fs/ext/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 807 | fs/ext/namei.c | current->fsuid != new_inode->i_uid && |
current | 808 | fs/ext/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 55 | fs/ext/symlink.c | dir = current->fs->root; |
current | 67 | fs/ext/symlink.c | if (current->link_count > 5) { |
current | 78 | fs/ext/symlink.c | current->link_count++; |
current | 80 | fs/ext/symlink.c | current->link_count--; |
current | 237 | fs/ext/truncate.c | current->counter = 0; |
current | 43 | fs/ext2/acl.c | else if (current->fsuid == inode->i_uid) |
current | 275 | fs/ext2/balloc.c | (!fsuser() && (sb->u.ext2_sb.s_resuid != current->fsuid) && |
current | 454 | fs/ext2/ialloc.c | inode->i_uid = current->fsuid; |
current | 462 | fs/ext2/ialloc.c | inode->i_gid = current->fsgid; |
current | 202 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 281 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 44 | fs/ext2/ioctl.c | if ((current->fsuid != inode->i_uid) && !fsuser()) |
current | 66 | fs/ext2/ioctl.c | if ((current->fsuid != inode->i_uid) && !fsuser()) |
current | 427 | fs/ext2/namei.c | inode->i_uid = current->fsuid; |
current | 518 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask); |
current | 623 | fs/ext2/namei.c | current->counter = 0; |
current | 628 | fs/ext2/namei.c | current->fsuid != inode->i_uid && |
current | 629 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
current | 706 | fs/ext2/namei.c | current->counter = 0; |
current | 711 | fs/ext2/namei.c | current->fsuid != inode->i_uid && |
current | 712 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
current | 937 | fs/ext2/namei.c | current->counter = 0; |
current | 952 | fs/ext2/namei.c | current->fsuid != old_inode->i_uid && |
current | 953 | fs/ext2/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 985 | fs/ext2/namei.c | current->fsuid != new_inode->i_uid && |
current | 986 | fs/ext2/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 61 | fs/ext2/symlink.c | dir = current->fs->root; |
current | 73 | fs/ext2/symlink.c | if (current->link_count > 5) { |
current | 87 | fs/ext2/symlink.c | current->link_count++; |
current | 89 | fs/ext2/symlink.c | current->link_count--; |
current | 348 | fs/ext2/truncate.c | current->counter = 0; |
current | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->files->fd[fd]) |
current | 27 | fs/fcntl.c | if (current->files->fd[arg]) |
current | 33 | fs/fcntl.c | FD_CLR(arg, ¤t->files->close_on_exec); |
current | 34 | fs/fcntl.c | (current->files->fd[arg] = current->files->fd[fd])->f_count++; |
current | 40 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->files->fd[oldfd]) |
current | 72 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 78 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
current | 81 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
current | 83 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 142 | fs/fcntl.c | if (current->pgrp == -arg || current->pid == arg) |
current | 149 | fs/fcntl.c | if ((p->session != current->session) && |
current | 150 | fs/fcntl.c | (p->uid != current->uid) && |
current | 151 | fs/fcntl.c | (p->euid != current->euid) && |
current | 32 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 65 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 548 | fs/hpfs/hpfs_fs.c | *uid = current->uid; |
current | 549 | fs/hpfs/hpfs_fs.c | *gid = current->gid; |
current | 550 | fs/hpfs/hpfs_fs.c | *umask = current->fs->umask; |
current | 241 | fs/inode.c | (current->fsuid != inode->i_uid || |
current | 253 | fs/inode.c | if ((current->fsuid != inode->i_uid) && !fsuser()) |
current | 263 | fs/inode.c | ((current->fsuid != inode->i_uid) && !fsuser())) |
current | 266 | fs/inode.c | ((current->fsuid != inode->i_uid) && !fsuser())) |
current | 492 | fs/inode.c | inode->i_uid = current->fsuid; |
current | 493 | fs/inode.c | inode->i_gid = current->fsgid; |
current | 566 | fs/inode.c | struct wait_queue wait = { current, NULL }; |
current | 570 | fs/inode.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 576 | fs/inode.c | current->state = TASK_RUNNING; |
current | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 67 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
current | 71 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 56 | fs/isofs/symlink.c | dir = current->fs->root; |
current | 69 | fs/isofs/symlink.c | if ((current->link_count > 5) || |
current | 77 | fs/isofs/symlink.c | current->link_count++; |
current | 79 | fs/isofs/symlink.c | current->link_count--; |
current | 65 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 109 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 154 | fs/locks.c | if (current->signal & ~current->blocked) |
current | 161 | fs/locks.c | if (current->signal & ~current->blocked) |
current | 256 | fs/locks.c | fl->fl_owner = current; |
current | 469 | fs/locks.c | tmp->fl_owner = current; |
current | 198 | fs/minix/bitmap.c | inode->i_uid = current->fsuid; |
current | 199 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 270 | fs/minix/namei.c | inode->i_uid = current->fsuid; |
current | 354 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
current | 449 | fs/minix/namei.c | current->fsuid != inode->i_uid && |
current | 450 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
current | 511 | fs/minix/namei.c | current->counter = 0; |
current | 516 | fs/minix/namei.c | current->fsuid != inode->i_uid && |
current | 517 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
current | 693 | fs/minix/namei.c | current->counter = 0; |
current | 707 | fs/minix/namei.c | current->fsuid != old_inode->i_uid && |
current | 708 | fs/minix/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 738 | fs/minix/namei.c | current->fsuid != new_inode->i_uid && |
current | 739 | fs/minix/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 53 | fs/minix/symlink.c | dir = current->fs->root; |
current | 65 | fs/minix/symlink.c | if (current->link_count > 5) { |
current | 76 | fs/minix/symlink.c | current->link_count++; |
current | 78 | fs/minix/symlink.c | current->link_count--; |
current | 183 | fs/minix/truncate.c | current->counter = 0; |
current | 92 | fs/msdos/inode.c | *uid = current->uid; |
current | 93 | fs/msdos/inode.c | *gid = current->gid; |
current | 94 | fs/msdos/inode.c | *umask = current->fs->umask; |
current | 121 | fs/msdos/misc.c | int count,nr,limit,last,current,sector,last_sector,file_cluster; |
current | 165 | fs/msdos/misc.c | if ((current = MSDOS_I(inode)->i_start) != 0) { |
current | 166 | fs/msdos/misc.c | cache_lookup(inode,INT_MAX,&last,¤t); |
current | 168 | fs/msdos/misc.c | while (current && current != -1){ |
current | 171 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
current | 172 | fs/msdos/misc.c | last = current,-1))) { |
current | 481 | fs/msdos/misc.c | int error,current,prev,nr; |
current | 486 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
current | 489 | fs/msdos/misc.c | return current; |
current | 491 | fs/msdos/misc.c | if (!current) nr = MSDOS_ROOT_INO; |
current | 493 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
current | 498 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
current | 35 | fs/namei.c | vma = find_vma(current, address); |
current | 107 | fs/namei.c | else if (current->fsuid == inode->i_uid) |
current | 165 | fs/namei.c | if (dir == current->fs->root) { |
current | 225 | fs/namei.c | base = current->fs->pwd; |
current | 230 | fs/namei.c | base = current->fs->root; |
current | 340 | fs/namei.c | mode &= S_IALLUGO & ~current->fs->umask; |
current | 447 | fs/namei.c | mode &= ~current->fs->umask; |
current | 526 | fs/namei.c | error = dir->i_op->mkdir(dir, basename, namelen, mode & 0777 & ~current->fs->umask); |
current | 93 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
current | 254 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 291 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 333 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 369 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 414 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 454 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 494 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 529 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 568 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 605 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 643 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 683 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 718 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 774 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 810 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 846 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->fsuid); |
current | 847 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
current | 849 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
current | 850 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
current | 91 | fs/nfs/sock.c | old_mask = current->blocked; |
current | 92 | fs/nfs/sock.c | current->blocked |= ~(_S(SIGKILL) |
current | 97 | fs/nfs/sock.c | ? ((current->sigaction[SIGINT - 1].sa_handler == SIG_DFL |
current | 99 | fs/nfs/sock.c | | (current->sigaction[SIGQUIT - 1].sa_handler == SIG_DFL |
current | 113 | fs/nfs/sock.c | current->state = TASK_INTERRUPTIBLE; |
current | 124 | fs/nfs/sock.c | current->timeout = jiffies + timeout; |
current | 127 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 128 | fs/nfs/sock.c | if (current->signal & ~current->blocked) { |
current | 129 | fs/nfs/sock.c | current->timeout = 0; |
current | 133 | fs/nfs/sock.c | if (!current->timeout) { |
current | 153 | fs/nfs/sock.c | current->timeout = 0; |
current | 157 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 219 | fs/nfs/sock.c | current->blocked = old_mask; |
current | 59 | fs/nfs/symlink.c | dir = current->fs->root; |
current | 71 | fs/nfs/symlink.c | if (current->link_count > 5) { |
current | 91 | fs/nfs/symlink.c | current->link_count++; |
current | 93 | fs/nfs/symlink.c | current->link_count--; |
current | 59 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 117 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 192 | fs/open.c | old_fsuid = current->fsuid; |
current | 193 | fs/open.c | old_fsgid = current->fsgid; |
current | 194 | fs/open.c | current->fsuid = current->uid; |
current | 195 | fs/open.c | current->fsgid = current->gid; |
current | 201 | fs/open.c | current->fsuid = old_fsuid; |
current | 202 | fs/open.c | current->fsgid = old_fsgid; |
current | 222 | fs/open.c | iput(current->fs->pwd); |
current | 223 | fs/open.c | current->fs->pwd = inode; |
current | 233 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 241 | fs/open.c | iput(current->fs->pwd); |
current | 242 | fs/open.c | current->fs->pwd = inode; |
current | 263 | fs/open.c | iput(current->fs->root); |
current | 264 | fs/open.c | current->fs->root = inode; |
current | 274 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 319 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 414 | fs/open.c | for(fd=0; fd<NR_OPEN && fd<current->rlim[RLIMIT_NOFILE].rlim_cur; fd++) |
current | 415 | fs/open.c | if (!current->files->fd[fd]) |
current | 417 | fs/open.c | if (fd>=NR_OPEN || fd>=current->rlim[RLIMIT_NOFILE].rlim_cur) |
current | 419 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
current | 423 | fs/open.c | current->files->fd[fd] = f; |
current | 437 | fs/open.c | current->files->fd[fd]=NULL; |
current | 454 | fs/open.c | current->files->fd[fd]=NULL; |
current | 490 | fs/open.c | fcntl_remove_locks(current, filp); |
current | 510 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 511 | fs/open.c | if (!(filp = current->files->fd[fd])) |
current | 513 | fs/open.c | current->files->fd[fd] = NULL; |
current | 526 | fs/open.c | if (current->tty) |
current | 527 | fs/open.c | tty_vhangup(current->tty); |
current | 43 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 78 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 89 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 92 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 211 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 397 | fs/pipe.c | for(i=0;j<2 && i<NR_OPEN && i<current->rlim[RLIMIT_NOFILE].rlim_cur;i++) |
current | 398 | fs/pipe.c | if (!current->files->fd[i]) { |
current | 399 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
current | 403 | fs/pipe.c | current->files->fd[fd[0]]=NULL; |
current | 410 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
current | 411 | fs/pipe.c | current->files->fd[fd[1]] = NULL; |
current | 426 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
current | 737 | fs/proc/array.c | if (*p != current) |
current | 52 | fs/proc/inode.c | *uid = current->uid; |
current | 53 | fs/proc/inode.c | *gid = current->gid; |
current | 74 | fs/proc/link.c | if (current->files->fd[fd] == f) |
current | 95 | fs/proc/link.c | current->files->fd[fd] = new_f; |
current | 53 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 115 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 150 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 231 | fs/proc/mem.c | if (src_vma->vm_end - stmp > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 249 | fs/proc/mem.c | dest_dir = pgd_offset(current, dtmp); |
current | 110 | fs/proc/root.c | ino = (current->pid << 16) + 2; |
current | 32 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || |
current | 52 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
current | 92 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
current | 128 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
current | 149 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
current | 105 | fs/select.c | if (!current->files->fd[i]) |
current | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
current | 124 | fs/select.c | current->state = TASK_INTERRUPTIBLE; |
current | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
current | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
current | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
current | 143 | fs/select.c | if (!count && current->timeout && !(current->signal & ~current->blocked)) { |
current | 149 | fs/select.c | current->state = TASK_RUNNING; |
current | 238 | fs/select.c | current->timeout = timeout; |
current | 240 | fs/select.c | if (current->timeout > jiffies) |
current | 241 | fs/select.c | timeout = current->timeout - jiffies; |
current | 244 | fs/select.c | current->timeout = 0; |
current | 245 | fs/select.c | if (tvp && !(current->personality & STICKY_TIMEOUTS)) { |
current | 253 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
current | 22 | fs/stat.c | current->comm); |
current | 170 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
current | 185 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
current | 187 | fs/super.c | struct wait_queue wait = { current, NULL }; |
current | 191 | fs/super.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 197 | fs/super.c | current->state = TASK_RUNNING; |
current | 521 | fs/super.c | vma = find_vma(current, (unsigned long) data); |
current | 681 | fs/super.c | current->fs->pwd = inode; |
current | 682 | fs/super.c | current->fs->root = inode; |
current | 158 | fs/sysv/ialloc.c | inode->i_uid = current->fsuid; |
current | 159 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 263 | fs/sysv/namei.c | inode->i_uid = current->fsuid; |
current | 345 | fs/sysv/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
current | 441 | fs/sysv/namei.c | current->fsuid != inode->i_uid && |
current | 442 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
current | 502 | fs/sysv/namei.c | current->counter = 0; |
current | 507 | fs/sysv/namei.c | current->fsuid != inode->i_uid && |
current | 508 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
current | 687 | fs/sysv/namei.c | current->counter = 0; |
current | 701 | fs/sysv/namei.c | current->fsuid != old_inode->i_uid && |
current | 702 | fs/sysv/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 732 | fs/sysv/namei.c | current->fsuid != new_inode->i_uid && |
current | 733 | fs/sysv/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 59 | fs/sysv/symlink.c | dir = current->fs->root; |
current | 71 | fs/sysv/symlink.c | if (current->link_count > 5) { |
current | 82 | fs/sysv/symlink.c | current->link_count++; |
current | 84 | fs/sysv/symlink.c | current->link_count--; |
current | 282 | fs/sysv/truncate.c | current->counter = 0; |
current | 36 | fs/umsdos/check.c | int stack_level = (long)(&pg_dir)-current->kernel_stack_page; |
current | 38 | fs/umsdos/check.c | pg_dir = PAGE_DIR_OFFSET(current, 0); |
current | 37 | fs/umsdos/ioctl.c | if (current->euid == 0 |
current | 39 | fs/umsdos/namei.c | && dir->u.umsdos_i.u.dir_info.pid != current->pid){ |
current | 93 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.pid = current->pid; |
current | 112 | fs/umsdos/namei.c | dir1->u.umsdos_i.u.dir_info.pid = current->pid; |
current | 114 | fs/umsdos/namei.c | dir2->u.umsdos_i.u.dir_info.pid = current->pid; |
current | 223 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
current | 225 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
current | 240 | fs/umsdos/namei.c | ,info.fake.fname,current->pid,info.f_pos)); |
current | 267 | fs/umsdos/namei.c | ,info.fake.fname,-ret,current->pid,info.f_pos); |
current | 302 | fs/umsdos/namei.c | if (STACK_MAGIC != *(unsigned long *)current->kernel_stack_page){\ |
current | 304 | fs/umsdos/namei.c | , current->comm,STACK_MAGIC \ |
current | 305 | fs/umsdos/namei.c | ,*(unsigned long *)current->kernel_stack_page \ |
current | 339 | fs/umsdos/namei.c | current->fsuid == old_info.entry.uid || |
current | 340 | fs/umsdos/namei.c | current->fsuid == old_dir->i_uid ) { |
current | 346 | fs/umsdos/namei.c | current->fsuid == new_info.entry.uid || |
current | 347 | fs/umsdos/namei.c | current->fsuid == new_dir->i_uid ) { |
current | 695 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
current | 697 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
current | 884 | fs/umsdos/namei.c | current->fsuid == sdir->i_uid || |
current | 885 | fs/umsdos/namei.c | current->fsuid == dir->i_uid ) { |
current | 947 | fs/umsdos/namei.c | current->fsuid == info.entry.uid || |
current | 948 | fs/umsdos/namei.c | current->fsuid == dir->i_uid ) { |
current | 62 | fs/umsdos/symlink.c | if (current->link_count < 5) { |
current | 68 | fs/umsdos/symlink.c | dir = current->fs[1].root; |
current | 87 | fs/umsdos/symlink.c | current->link_count++; |
current | 89 | fs/umsdos/symlink.c | current->link_count--; |
current | 329 | fs/xiafs/bitmap.c | inode->i_uid = current->fsuid; |
current | 330 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 301 | fs/xiafs/namei.c | inode->i_uid = current->fsuid; |
current | 385 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask); |
current | 505 | fs/xiafs/namei.c | current->fsuid != inode->i_uid && |
current | 506 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
current | 562 | fs/xiafs/namei.c | current->counter = 0; |
current | 567 | fs/xiafs/namei.c | current->fsuid != inode->i_uid && |
current | 568 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
current | 738 | fs/xiafs/namei.c | current->fsuid != old_inode->i_uid && |
current | 739 | fs/xiafs/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 759 | fs/xiafs/namei.c | current->fsuid != new_inode->i_uid && |
current | 760 | fs/xiafs/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 796 | fs/xiafs/namei.c | current->counter=0; |
current | 87 | fs/xiafs/symlink.c | dir = current->fs->root; |
current | 103 | fs/xiafs/symlink.c | if (current->link_count > 5) { |
current | 114 | fs/xiafs/symlink.c | current->link_count++; |
current | 116 | fs/xiafs/symlink.c | current->link_count--; |
current | 196 | fs/xiafs/truncate.c | current->counter = 0; |
current | 222 | include/asm-alpha/pgtable.h | if (tsk == current) |
current | 87 | include/asm-alpha/system.h | current = p; \ |
current | 54 | include/asm-alpha/unistd.h | printk("[%d]fork()\n",current->pid); |
current | 61 | include/asm-alpha/unistd.h | printk("[%d]idle()\n",current->pid); |
current | 71 | include/asm-alpha/unistd.h | printk("[%d]setup()\n",current->pid); |
current | 73 | include/asm-alpha/unistd.h | printk("[%d]setup() returned %d\n",current->pid, retval); |
current | 80 | include/asm-alpha/unistd.h | printk("[%d]open(%s,%d,%d)\n",current->pid, name, mode, flags); |
current | 82 | include/asm-alpha/unistd.h | printk("[%d]open(%s,%d,%d)=%d\n",current->pid, name, mode, flags, fd); |
current | 90 | include/asm-alpha/unistd.h | printk("[%d]dup(%d)=%d\n",current->pid, fd, newfd); |
current | 96 | include/asm-alpha/unistd.h | printk("[%d]close(%d)\n",current->pid,fd); |
current | 103 | include/asm-alpha/unistd.h | printk("[%d]_exit(%d)\n", current->pid, value); |
current | 119 | include/asm-alpha/unistd.h | printk("[%d]read(%d,%s,%d)=%d\n",current->pid, fd, buf, nr, res); |
current | 123 | include/asm-alpha/unistd.h | #define execve(x,y,z) ({ printk("[%d]execve(%s,%p,%p)\n",current->pid, x, y, z); -1; }) |
current | 125 | include/asm-alpha/unistd.h | #define setsid() ({ printk("[%d]setsid()\n",current->pid); -1; }) |
current | 126 | include/asm-alpha/unistd.h | #define sync() ({ printk("[%d]sync()\n",current->pid); -1; }) |
current | 132 | include/asm-alpha/unistd.h | printk("[%d]wait(%p)\n", current->pid, wait_stat); |
current | 134 | include/asm-alpha/unistd.h | printk("[%d]wait(%p) returned %ld\n", current->pid, wait_stat, retval); |
current | 126 | include/asm-i386/pgtable.h | if ((tsk) == current) \ |
current | 38 | include/asm-i386/system.h | :"m" (current->debugreg[register]) \ |
current | 64 | include/asm-i386/system.h | if(current->debugreg[7]){ \ |
current | 42 | include/asm-m68k/system.h | : "r" (current->kernel_stack_page + PAGE_SIZE) \ |
current | 176 | include/asm-mips/page.h | if ((tsk) == current) \ |
current | 67 | include/linux/kernel.h | #define suser() (current->euid == 0) |
current | 68 | include/linux/kernel.h | #define fsuser() (current->fsuid == 0) |
current | 250 | include/linux/sched.h | extern struct task_struct *current; |
current | 358 | include/linux/sched.h | entry->wait.task = current; |
current | 434 | init/main.c | current->fs->root = pseudo_root; |
current | 435 | init/main.c | current->fs->pwd = pseudo_root; |
current | 72 | ipc/msg.c | if (current->signal & ~current->blocked) |
current | 104 | ipc/msg.c | msq->msg_lspid = current->pid; |
current | 189 | ipc/msg.c | msq->msg_lrpid = current->pid; |
current | 202 | ipc/msg.c | if (current->signal & ~current->blocked) |
current | 251 | ipc/msg.c | ipcp->cuid = ipcp->uid = current->euid; |
current | 252 | ipc/msg.c | ipcp->gid = ipcp->cgid = current->egid; |
current | 420 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
current | 421 | ipc/msg.c | current->euid != ipcp->uid) |
current | 433 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
current | 434 | ipc/msg.c | current->euid != ipcp->uid) |
current | 115 | ipc/sem.c | ipcp->cuid = ipcp->uid = current->euid; |
current | 116 | ipc/sem.c | ipcp->gid = ipcp->cgid = current->egid; |
current | 470 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || current->euid == ipcp->uid) { |
current | 521 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || current->euid == ipcp->uid) { |
current | 597 | ipc/sem.c | for (un = current->semundo; un; un = un->proc_next) |
current | 608 | ipc/sem.c | un->proc_next = current->semundo; |
current | 609 | ipc/sem.c | current->semundo = un; |
current | 617 | ipc/sem.c | error = do_semop(sma, sops, nsops, un, current->pid); |
current | 631 | ipc/sem.c | queue.pid = current->pid; |
current | 635 | ipc/sem.c | current->semsleeping = &queue; |
current | 637 | ipc/sem.c | current->semsleeping = NULL; |
current | 673 | ipc/sem.c | if ((q = current->semsleeping)) { |
current | 676 | ipc/sem.c | current->semsleeping = NULL; |
current | 679 | ipc/sem.c | for (up = ¤t->semundo; (u = *up); *up = u->proc_next, kfree(u)) { |
current | 703 | ipc/sem.c | sem->sempid = current->pid; |
current | 709 | ipc/sem.c | current->semundo = NULL; |
current | 113 | ipc/shm.c | shp->shm_perm.cuid = shp->shm_perm.uid = current->euid; |
current | 114 | ipc/shm.c | shp->shm_perm.cgid = shp->shm_perm.gid = current->egid; |
current | 117 | ipc/shm.c | shp->shm_cpid = current->pid; |
current | 325 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
current | 326 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
current | 336 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
current | 337 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
current | 429 | ipc/shm.c | insert_vm_struct(current, shmd); |
current | 430 | ipc/shm.c | merge_segments(current, shmd->vm_start, shmd->vm_end); |
current | 482 | ipc/shm.c | if ((addr > current->mm->start_stack - 16384 - PAGE_SIZE*shp->shm_npages)) { |
current | 487 | ipc/shm.c | if ((shmd = find_vma_intersection(current, addr, addr + shp->shm_segsz))) { |
current | 509 | ipc/shm.c | shmd->vm_task = current; |
current | 529 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 551 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 571 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 585 | ipc/shm.c | for (shmd = current->mm->mmap; shmd; shmd = shmdnext) { |
current | 633 | ipc/shm.c | oom(current); |
current | 655 | ipc/shm.c | --current->mm->maj_flt; /* was incremented in do_no_page */ |
current | 658 | ipc/shm.c | current->mm->min_flt++; |
current | 56 | ipc/util.c | if (current->euid == ipcp->cuid || current->euid == ipcp->uid) |
current | 31 | kernel/exec_domain.c | send_sig(SIGSEGV, current, 1); |
current | 87 | kernel/exec_domain.c | return current->personality; |
current | 93 | kernel/exec_domain.c | old_personality = current->personality; |
current | 94 | kernel/exec_domain.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 95 | kernel/exec_domain.c | (*current->exec_domain->use_count)--; |
current | 96 | kernel/exec_domain.c | current->personality = personality; |
current | 97 | kernel/exec_domain.c | current->exec_domain = it; |
current | 98 | kernel/exec_domain.c | if (current->exec_domain->use_count) |
current | 99 | kernel/exec_domain.c | (*current->exec_domain->use_count)++; |
current | 49 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
current | 50 | kernel/exit.c | (current->euid != p->euid) && (current->euid != p->uid) && !suser()) |
current | 88 | kernel/exit.c | if (p == current) { |
current | 289 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
current | 293 | kernel/exit.c | if (p->pid > 1 && p != current) { |
current | 362 | kernel/exit.c | if (current->files->fd[i]) |
current | 368 | kernel/exit.c | iput(current->fs->pwd); |
current | 369 | kernel/exit.c | current->fs->pwd = NULL; |
current | 370 | kernel/exit.c | iput(current->fs->root); |
current | 371 | kernel/exit.c | current->fs->root = NULL; |
current | 383 | kernel/exit.c | current->flags |= PF_EXITING; |
current | 385 | kernel/exit.c | exit_mmap(current); |
current | 386 | kernel/exit.c | free_page_tables(current); |
current | 390 | kernel/exit.c | forget_original_parent(current); |
current | 400 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
current | 401 | kernel/exit.c | (current->p_pptr->session == current->session) && |
current | 402 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
current | 403 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
current | 404 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
current | 405 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
current | 408 | kernel/exit.c | notify_parent(current); |
current | 418 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
current | 419 | kernel/exit.c | current->p_cptr = p->p_osptr; |
current | 422 | kernel/exit.c | if (task[1] && task[1] != current) |
current | 437 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
current | 438 | kernel/exit.c | (p->session == current->session) && |
current | 445 | kernel/exit.c | if (current->leader) |
current | 447 | kernel/exit.c | if (last_task_used_math == current) |
current | 449 | kernel/exit.c | current->state = TASK_ZOMBIE; |
current | 450 | kernel/exit.c | current->exit_code = code; |
current | 451 | kernel/exit.c | current->mm->rss = 0; |
current | 455 | kernel/exit.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 456 | kernel/exit.c | (*current->exec_domain->use_count)--; |
current | 457 | kernel/exit.c | if (current->binfmt && current->binfmt->use_count) |
current | 458 | kernel/exit.c | (*current->binfmt->use_count)--; |
current | 484 | kernel/exit.c | struct wait_queue wait = { current, NULL }; |
current | 492 | kernel/exit.c | add_wait_queue(¤t->wait_chldexit,&wait); |
current | 495 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
current | 500 | kernel/exit.c | if (p->pgrp != current->pgrp) |
current | 525 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
current | 526 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
current | 527 | kernel/exit.c | current->mm->cmin_flt += p->mm->min_flt + p->mm->cmin_flt; |
current | 528 | kernel/exit.c | current->mm->cmaj_flt += p->mm->maj_flt + p->mm->cmaj_flt; |
current | 554 | kernel/exit.c | current->state=TASK_INTERRUPTIBLE; |
current | 556 | kernel/exit.c | current->signal &= ~(1<<(SIGCHLD-1)); |
current | 558 | kernel/exit.c | if (current->signal & ~current->blocked) |
current | 564 | kernel/exit.c | remove_wait_queue(¤t->wait_chldexit,&wait); |
current | 48 | kernel/fork.c | if (task[i]->uid == current->uid) |
current | 55 | kernel/fork.c | this_user_tasks > current->rlim[RLIMIT_NPROC].rlim_cur) |
current | 56 | kernel/fork.c | if (current->uid) |
current | 89 | kernel/fork.c | for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
current | 154 | kernel/fork.c | if (current->fs->pwd) |
current | 155 | kernel/fork.c | current->fs->pwd->i_count++; |
current | 156 | kernel/fork.c | if (current->fs->root) |
current | 157 | kernel/fork.c | current->fs->root->i_count++; |
current | 180 | kernel/fork.c | *p = *current; |
current | 193 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
current | 218 | kernel/fork.c | p->counter = current->counter >> 1; |
current | 38 | kernel/itimer.c | val = current->it_real_value; |
current | 39 | kernel/itimer.c | interval = current->it_real_incr; |
current | 42 | kernel/itimer.c | val = current->it_virt_value; |
current | 43 | kernel/itimer.c | interval = current->it_virt_incr; |
current | 46 | kernel/itimer.c | val = current->it_prof_value; |
current | 47 | kernel/itimer.c | interval = current->it_prof_incr; |
current | 90 | kernel/itimer.c | current->it_real_value = j; |
current | 91 | kernel/itimer.c | current->it_real_incr = i; |
current | 96 | kernel/itimer.c | current->it_virt_value = j; |
current | 97 | kernel/itimer.c | current->it_virt_incr = i; |
current | 102 | kernel/itimer.c | current->it_prof_value = j; |
current | 103 | kernel/itimer.c | current->it_prof_incr = i; |
current | 233 | kernel/ksyms.c | X(current), |
current | 27 | kernel/panic.c | if (current == task[0]) |
current | 79 | kernel/printk.c | if (current->signal & ~current->blocked) { |
current | 87 | kernel/sched.c | struct task_struct *current = &init_task; |
current | 167 | kernel/sched.c | if (TASK_UNINTERRUPTIBLE >= (unsigned) current->state && |
current | 168 | kernel/sched.c | current->counter < current->priority*2) { |
current | 169 | kernel/sched.c | ++current->counter; |
current | 185 | kernel/sched.c | if (current == next) |
current | 193 | kernel/sched.c | current->state = TASK_INTERRUPTIBLE; |
current | 218 | kernel/sched.c | if (p->counter > current->counter + 3) |
current | 245 | kernel/sched.c | if (p->counter > current->counter + 3) |
current | 263 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 265 | kernel/sched.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 268 | kernel/sched.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 270 | kernel/sched.c | current->state = TASK_RUNNING; |
current | 277 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 281 | kernel/sched.c | if (current == task[0]) |
current | 283 | kernel/sched.c | current->state = state; |
current | 599 | kernel/sched.c | current->utime++; |
current | 600 | kernel/sched.c | if (current != task[0]) { |
current | 601 | kernel/sched.c | if (current->priority < 15) |
current | 607 | kernel/sched.c | if (current->it_virt_value && !(--current->it_virt_value)) { |
current | 608 | kernel/sched.c | current->it_virt_value = current->it_virt_incr; |
current | 609 | kernel/sched.c | send_sig(SIGVTALRM,current,1); |
current | 612 | kernel/sched.c | current->stime++; |
current | 613 | kernel/sched.c | if(current != task[0]) |
current | 616 | kernel/sched.c | if (prof_buffer && current != task[0]) { |
current | 627 | kernel/sched.c | if ((current->rlim[RLIMIT_CPU].rlim_max != RLIM_INFINITY) && |
current | 628 | kernel/sched.c | (((current->stime + current->utime) / HZ) >= current->rlim[RLIMIT_CPU].rlim_max)) |
current | 629 | kernel/sched.c | send_sig(SIGKILL, current, 1); |
current | 630 | kernel/sched.c | if ((current->rlim[RLIMIT_CPU].rlim_cur != RLIM_INFINITY) && |
current | 631 | kernel/sched.c | (((current->stime + current->utime) % HZ) == 0)) { |
current | 632 | kernel/sched.c | psecs = (current->stime + current->utime) / HZ; |
current | 634 | kernel/sched.c | if (psecs == current->rlim[RLIMIT_CPU].rlim_cur) |
current | 635 | kernel/sched.c | send_sig(SIGXCPU, current, 1); |
current | 637 | kernel/sched.c | else if ((psecs > current->rlim[RLIMIT_CPU].rlim_cur) && |
current | 638 | kernel/sched.c | ((psecs - current->rlim[RLIMIT_CPU].rlim_cur) % 5) == 0) |
current | 639 | kernel/sched.c | send_sig(SIGXCPU, current, 1); |
current | 642 | kernel/sched.c | if (current != task[0] && 0 > --current->counter) { |
current | 643 | kernel/sched.c | current->counter = 0; |
current | 647 | kernel/sched.c | if (current->it_prof_value && !(--current->it_prof_value)) { |
current | 648 | kernel/sched.c | current->it_prof_value = current->it_prof_incr; |
current | 649 | kernel/sched.c | send_sig(SIGPROF,current,1); |
current | 684 | kernel/sched.c | return current->pid; |
current | 689 | kernel/sched.c | return current->p_opptr->pid; |
current | 694 | kernel/sched.c | return current->uid; |
current | 699 | kernel/sched.c | return current->euid; |
current | 704 | kernel/sched.c | return current->gid; |
current | 709 | kernel/sched.c | return current->egid; |
current | 718 | kernel/sched.c | newprio = current->priority - increment; |
current | 723 | kernel/sched.c | current->priority = newprio; |
current | 732 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
current | 738 | kernel/sched.c | if (p == current) |
current | 24 | kernel/signal.c | sigset_t new_set, old_set = current->blocked; |
current | 34 | kernel/signal.c | current->blocked |= new_set; |
current | 37 | kernel/signal.c | current->blocked &= ~new_set; |
current | 40 | kernel/signal.c | current->blocked = new_set; |
current | 57 | kernel/signal.c | return current->blocked; |
current | 62 | kernel/signal.c | int old=current->blocked; |
current | 64 | kernel/signal.c | current->blocked = newmask & _BLOCKABLE; |
current | 74 | kernel/signal.c | put_fs_long(current->blocked & current->signal, (unsigned long *)set); |
current | 97 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 101 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 107 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 130 | kernel/signal.c | handler = current->sigaction[signum-1].sa_handler; |
current | 131 | kernel/signal.c | current->sigaction[signum-1] = tmp; |
current | 145 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 42 | kernel/sys.c | if (!who && p == current) |
current | 47 | kernel/sys.c | who = current->pgrp; |
current | 51 | kernel/sys.c | who = current->uid; |
current | 72 | kernel/sys.c | if ((*p)->uid != current->euid && |
current | 73 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
current | 197 | kernel/sys.c | int old_rgid = current->gid; |
current | 201 | kernel/sys.c | (current->egid==rgid) || |
current | 203 | kernel/sys.c | current->gid = rgid; |
current | 209 | kernel/sys.c | (current->egid == egid) || |
current | 210 | kernel/sys.c | (current->sgid == egid) || |
current | 212 | kernel/sys.c | current->egid = egid; |
current | 214 | kernel/sys.c | current->gid = old_rgid; |
current | 220 | kernel/sys.c | current->sgid = current->egid; |
current | 221 | kernel/sys.c | current->fsgid = current->egid; |
current | 231 | kernel/sys.c | current->gid = current->egid = current->sgid = current->fsgid = gid; |
current | 232 | kernel/sys.c | else if ((gid == current->gid) || (gid == current->sgid)) |
current | 233 | kernel/sys.c | current->egid = current->fsgid = gid; |
current | 286 | kernel/sys.c | int old_ruid = current->uid; |
current | 290 | kernel/sys.c | (current->euid==ruid) || |
current | 292 | kernel/sys.c | current->uid = ruid; |
current | 298 | kernel/sys.c | (current->euid == euid) || |
current | 299 | kernel/sys.c | (current->suid == euid) || |
current | 301 | kernel/sys.c | current->euid = euid; |
current | 303 | kernel/sys.c | current->uid = old_ruid; |
current | 309 | kernel/sys.c | current->suid = current->euid; |
current | 310 | kernel/sys.c | current->fsuid = current->euid; |
current | 328 | kernel/sys.c | current->uid = current->euid = current->suid = current->fsuid = uid; |
current | 329 | kernel/sys.c | else if ((uid == current->uid) || (uid == current->suid)) |
current | 330 | kernel/sys.c | current->fsuid = current->euid = uid; |
current | 344 | kernel/sys.c | int old_fsuid = current->fsuid; |
current | 346 | kernel/sys.c | if (uid == current->uid || uid == current->euid || |
current | 347 | kernel/sys.c | uid == current->suid || uid == current->fsuid || suser()) |
current | 348 | kernel/sys.c | current->fsuid = uid; |
current | 357 | kernel/sys.c | int old_fsgid = current->fsgid; |
current | 359 | kernel/sys.c | if (gid == current->gid || gid == current->egid || |
current | 360 | kernel/sys.c | gid == current->sgid || gid == current->fsgid || suser()) |
current | 361 | kernel/sys.c | current->fsgid = gid; |
current | 371 | kernel/sys.c | put_fs_long(current->utime,(unsigned long *)&tbuf->tms_utime); |
current | 372 | kernel/sys.c | put_fs_long(current->stime,(unsigned long *)&tbuf->tms_stime); |
current | 373 | kernel/sys.c | put_fs_long(current->cutime,(unsigned long *)&tbuf->tms_cutime); |
current | 374 | kernel/sys.c | put_fs_long(current->cstime,(unsigned long *)&tbuf->tms_cstime); |
current | 385 | kernel/sys.c | if (brk < current->mm->end_code) |
current | 386 | kernel/sys.c | return current->mm->brk; |
current | 388 | kernel/sys.c | oldbrk = PAGE_ALIGN(current->mm->brk); |
current | 390 | kernel/sys.c | return current->mm->brk = brk; |
current | 395 | kernel/sys.c | if (brk <= current->mm->brk) { |
current | 396 | kernel/sys.c | current->mm->brk = brk; |
current | 403 | kernel/sys.c | rlim = current->rlim[RLIMIT_DATA].rlim_cur; |
current | 406 | kernel/sys.c | if (brk - current->mm->end_code > rlim || |
current | 407 | kernel/sys.c | brk >= current->mm->start_stack - 16384) |
current | 408 | kernel/sys.c | return current->mm->brk; |
current | 412 | kernel/sys.c | if (find_vma_intersection(current, oldbrk, newbrk)) |
current | 413 | kernel/sys.c | return current->mm->brk; |
current | 425 | kernel/sys.c | return current->mm->brk; |
current | 427 | kernel/sys.c | freepages += current->mm->rss; |
current | 430 | kernel/sys.c | return current->mm->brk; |
current | 435 | kernel/sys.c | current->mm->brk = brk; |
current | 459 | kernel/sys.c | pid = current->pid; |
current | 471 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
current | 472 | kernel/sys.c | if (p->session != current->session) |
current | 476 | kernel/sys.c | } else if (p != current) |
current | 484 | kernel/sys.c | tmp->session == current->session) |
current | 500 | kernel/sys.c | return current->pgrp; |
current | 510 | kernel/sys.c | return current->pgrp; |
current | 515 | kernel/sys.c | if (current->leader) |
current | 517 | kernel/sys.c | current->leader = 1; |
current | 518 | kernel/sys.c | current->session = current->pgrp = current->pid; |
current | 519 | kernel/sys.c | current->tty = NULL; |
current | 520 | kernel/sys.c | current->tty_old_pgrp = 0; |
current | 521 | kernel/sys.c | return current->pgrp; |
current | 536 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (current->groups[i] != NOGROUP) ; i++) { |
current | 541 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
current | 556 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
current | 559 | kernel/sys.c | current->groups[i] = NOGROUP; |
current | 567 | kernel/sys.c | if (grp == current->fsgid) |
current | 571 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
current | 573 | kernel/sys.c | if (current->groups[i] == grp) |
current | 681 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_cur, |
current | 683 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_max, |
current | 699 | kernel/sys.c | old_rlim = current->rlim + resource; |
current | 763 | kernel/sys.c | return getrusage(current, who, ru); |
current | 768 | kernel/sys.c | int old = current->fs->umask; |
current | 770 | kernel/sys.c | current->fs->umask = mask & S_IRWXUGO; |
current | 166 | mm/filemap.c | dir = pgd_offset(current, address); |
current | 262 | mm/filemap.c | printk("%s tried to do a shared writeable mapping\n", current->comm); |
current | 76 | mm/memory.c | printk("\nOut of memory for %s.\n", current->comm); |
current | 224 | mm/memory.c | pg_dir = pgd_offset(current, 0); |
current | 329 | mm/memory.c | old_pgd = pgd_offset(current, 0); |
current | 352 | mm/memory.c | if (current->mm->rss <= 0) |
current | 354 | mm/memory.c | current->mm->rss--; |
current | 419 | mm/memory.c | dir = pgd_offset(current, address); |
current | 473 | mm/memory.c | dir = pgd_offset(current, address); |
current | 547 | mm/memory.c | dir = pgd_offset(current, from); |
current | 716 | mm/memory.c | vma = find_vma(current, start); |
current | 723 | mm/memory.c | if (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 1049 | mm/memory.c | oom(current); |
current | 114 | mm/mmap.c | vma->vm_task = current; |
current | 157 | mm/mmap.c | insert_vm_struct(current, vma); |
current | 158 | mm/mmap.c | merge_segments(current, vma->vm_start, vma->vm_end); |
current | 172 | mm/mmap.c | for (vmm = current->mm->mmap; ; vmm = vmm->vm_next) { |
current | 199 | mm/mmap.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 697 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 711 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 741 | mm/mmap.c | mpnt = find_vma(current, addr); |
current | 744 | mm/mmap.c | avl_neighbours(mpnt, current->mm->mmap_avl, &prev, &next); |
current | 748 | mm/mmap.c | npp = (prev ? &prev->vm_next : ¤t->mm->mmap); |
current | 754 | mm/mmap.c | avl_remove(mpnt, ¤t->mm->mmap_avl); |
current | 77 | mm/mprotect.c | dir = pgd_offset(current, start); |
current | 114 | mm/mprotect.c | insert_vm_struct(current, n); |
current | 137 | mm/mprotect.c | insert_vm_struct(current, n); |
current | 171 | mm/mprotect.c | insert_vm_struct(current, left); |
current | 172 | mm/mprotect.c | insert_vm_struct(current, right); |
current | 218 | mm/mprotect.c | vma = find_vma(current, start); |
current | 250 | mm/mprotect.c | merge_segments(current, start, end); |
current | 292 | mm/swap.c | oom(current); |
current | 399 | net/inet/af_inet.c | if (!suser() && current->pgrp != -arg && |
current | 400 | net/inet/af_inet.c | current->pid != arg) return(-EPERM); |
current | 786 | net/inet/af_inet.c | if (sk->linger == 0 || (current->flags & PF_EXITING)) |
current | 796 | net/inet/af_inet.c | current->timeout = jiffies + HZ*sk->lingertime; |
current | 797 | net/inet/af_inet.c | while(closing(sk) && current->timeout>0) |
current | 800 | net/inet/af_inet.c | if (current->signal & ~current->blocked) |
current | 806 | net/inet/af_inet.c | current->timeout=0; |
current | 811 | net/inet/af_inet.c | current->timeout=0; |
current | 975 | net/inet/af_inet.c | if (current->signal & ~current->blocked) |
current | 1067 | net/inet/af_inet.c | if (current->signal & ~current->blocked) |
current | 1171 | net/inet/af_inet.c | send_sig(SIGPIPE, current, 1); |
current | 1193 | net/inet/af_inet.c | send_sig(SIGPIPE, current, 1); |
current | 103 | net/inet/datagram.c | if (current->signal & ~current->blocked) |
current | 489 | net/inet/sock.c | if (current->signal & ~current->blocked) |
current | 1510 | net/inet/tcp.c | send_sig(SIGPIPE, current, 0); |
current | 1530 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 1670 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 2018 | net/inet/tcp.c | struct wait_queue wait = { current, NULL }; |
current | 2067 | net/inet/tcp.c | current->state = TASK_INTERRUPTIBLE; |
current | 2129 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 2234 | net/inet/tcp.c | current->state = TASK_RUNNING; |
current | 4229 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 173 | net/socket.c | if (!current->files->fd[fd]) |
current | 181 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 182 | net/socket.c | current->files->fd[fd] = file; |
current | 215 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 243 | net/socket.c | inode->i_uid = current->uid; |
current | 244 | net/socket.c | inode->i_gid = current->gid; |
current | 736 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 763 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 796 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 858 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
current | 908 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 933 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 957 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 984 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1017 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1048 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1082 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1100 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1120 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 551 | net/unix/sock.c | if (current->signal & ~current->blocked) |
current | 629 | net/unix/sock.c | if (current->signal & ~current->blocked) |
current | 648 | net/unix/sock.c | send_sig(SIGKILL, current, 1); |
current | 690 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |
current | 704 | net/unix/sock.c | if (current->signal & ~current->blocked) |
current | 710 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |
current | 729 | net/unix/sock.c | send_sig(SIGKILL, current, 1); |
current | 740 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |