tag | line | file | source code |
current | 159 | drivers/FPU-emu/fpu_entry.c | if (!current->used_math) |
current | 170 | drivers/FPU-emu/fpu_entry.c | current->used_math = 1; |
current | 199 | drivers/FPU-emu/fpu_entry.c | if (current->flags & PF_PTRACED) |
current | 285 | drivers/FPU-emu/fpu_entry.c | current->tss.trap_no = 16; |
current | 286 | drivers/FPU-emu/fpu_entry.c | current->tss.error_code = 0; |
current | 287 | drivers/FPU-emu/fpu_entry.c | send_sig(SIGFPE, current, 1); |
current | 644 | drivers/FPU-emu/fpu_entry.c | current->tss.trap_no = 16; |
current | 645 | drivers/FPU-emu/fpu_entry.c | current->tss.error_code = 0; |
current | 646 | drivers/FPU-emu/fpu_entry.c | send_sig(signal,current,1); |
current | 22 | drivers/FPU-emu/fpu_system.h | #define I387 (current->tss.i387) |
current | 281 | drivers/block/blk.h | if (p->counter > current->counter) |
current | 210 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 211 | drivers/block/cdu31a.c | current->timeout = jiffies; |
current | 367 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 368 | drivers/block/cdu31a.c | current->timeout = jiffies + 200; |
current | 603 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 612 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 728 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 729 | drivers/block/cdu31a.c | current->timeout = jiffies + 10; |
current | 763 | drivers/block/cdu31a.c | if (current != has_cd_task) /* Allow recursive calls to this routine */ |
current | 768 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 777 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 821 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 822 | drivers/block/cdu31a.c | current->timeout = jiffies + 10; /* Wait .1 seconds on retries */ |
current | 331 | drivers/block/ll_rw_blk.c | req->waiting = current; |
current | 334 | drivers/block/ll_rw_blk.c | current->state = TASK_SWAPPING; |
current | 466 | drivers/block/ll_rw_blk.c | req->waiting = current; |
current | 469 | drivers/block/ll_rw_blk.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 430 | drivers/block/sbpcd.c | current->state = TASK_INTERRUPTIBLE; |
current | 431 | drivers/block/sbpcd.c | current->timeout = jiffies + jifs; |
current | 544 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 566 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 595 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 652 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 170 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_INTERRUPT; |
current | 174 | drivers/char/lp.c | if (current->signal & ~current->blocked) { |
current | 224 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 225 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 232 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 233 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 241 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 242 | drivers/char/lp.c | current->timeout = jiffies + LP_TIMEOUT_POLLED; |
current | 247 | drivers/char/lp.c | if (current->signal & ~current->blocked) { |
current | 258 | drivers/char/lp.c | current->state = TASK_INTERRUPTIBLE; |
current | 259 | drivers/char/lp.c | current->timeout = jiffies + LP_TIME(minor); |
current | 102 | drivers/char/mem.c | mpnt->vm_task = current; |
current | 111 | drivers/char/mem.c | insert_vm_struct(current, mpnt); |
current | 112 | drivers/char/mem.c | merge_segments(current->mmap, NULL, NULL); |
current | 196 | drivers/char/mem.c | mpnt->vm_task = current; |
current | 204 | drivers/char/mem.c | insert_vm_struct(current, mpnt); |
current | 205 | drivers/char/mem.c | merge_segments(current->mmap, ignoff_mergep, inode); |
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 | 103 | drivers/char/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
current | 1315 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1316 | drivers/char/serial.c | current->timeout = jiffies + duration; |
current | 1552 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1553 | drivers/char/serial.c | current->timeout = jiffies + info->close_delay; |
current | 1594 | drivers/char/serial.c | struct wait_queue wait = { current, NULL }; |
current | 1623 | drivers/char/serial.c | (info->session != current->session)) |
current | 1627 | drivers/char/serial.c | (info->pgrp != current->pgrp)) |
current | 1666 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1684 | drivers/char/serial.c | if (current->signal & ~current->blocked) { |
current | 1694 | drivers/char/serial.c | current->state = TASK_RUNNING; |
current | 1760 | drivers/char/serial.c | info->session = current->session; |
current | 1761 | drivers/char/serial.c | info->pgrp = current->pgrp; |
current | 679 | drivers/char/tpqic02.c | current->timeout = jiffies + 30; /* nap 0.30 sec between checks, */ |
current | 680 | drivers/char/tpqic02.c | current->state = TASK_INTERRUPTIBLE; |
current | 312 | drivers/char/tty_io.c | if (current->tty >= 0) { |
current | 313 | drivers/char/tty_io.c | tty = tty_table[current->tty]; |
current | 326 | drivers/char/tty_io.c | if (p->session == current->session) |
current | 346 | drivers/char/tty_io.c | return (current->signal & ~current->blocked) ? -1 : 0; |
current | 926 | drivers/char/tty_io.c | return ((current->blocked & (1<<(sig-1))) || |
current | 927 | drivers/char/tty_io.c | (current->sigaction[sig-1].sa_handler == SIG_IGN)); |
current | 949 | drivers/char/tty_io.c | struct wait_queue wait = { current, NULL }; |
current | 961 | drivers/char/tty_io.c | current->tty == tty->line) { |
current | 964 | drivers/char/tty_io.c | else if (current->pgrp != tty->pgrp) { |
current | 966 | drivers/char/tty_io.c | is_orphaned_pgrp(current->pgrp)) |
current | 968 | drivers/char/tty_io.c | kill_pg(current->pgrp, SIGTTIN, 1); |
current | 975 | drivers/char/tty_io.c | current->timeout = (unsigned long) -1; |
current | 980 | drivers/char/tty_io.c | current->timeout = (unsigned long) -1; |
current | 983 | drivers/char/tty_io.c | current->timeout = time + jiffies; |
current | 986 | drivers/char/tty_io.c | current->timeout = 0; |
current | 1004 | drivers/char/tty_io.c | current->state = TASK_INTERRUPTIBLE; |
current | 1012 | drivers/char/tty_io.c | if (!current->timeout) |
current | 1018 | drivers/char/tty_io.c | if (current->signal & ~current->blocked) { |
current | 1025 | drivers/char/tty_io.c | current->state = TASK_RUNNING; |
current | 1088 | drivers/char/tty_io.c | current->timeout = time + jiffies; |
current | 1091 | drivers/char/tty_io.c | current->state = TASK_RUNNING; |
current | 1092 | drivers/char/tty_io.c | current->timeout = 0; |
current | 1099 | drivers/char/tty_io.c | struct wait_queue wait = { current, NULL }; |
current | 1113 | drivers/char/tty_io.c | current->state = TASK_INTERRUPTIBLE; |
current | 1114 | drivers/char/tty_io.c | if (current->signal & ~current->blocked) { |
current | 1141 | drivers/char/tty_io.c | current->state = TASK_RUNNING; |
current | 1168 | drivers/char/tty_io.c | (current->tty == dev) && |
current | 1169 | drivers/char/tty_io.c | (tty->pgrp != current->pgrp)) |
current | 1170 | drivers/char/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
current | 1173 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp, SIGTTIN, 1); |
current | 1207 | drivers/char/tty_io.c | (current->tty == dev) && (tty->pgrp != current->pgrp)) { |
current | 1208 | drivers/char/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 1211 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp, SIGTTOU, 1); |
current | 1476 | drivers/char/tty_io.c | minor = current->tty; |
current | 1533 | drivers/char/tty_io.c | if (current->signal & ~current->blocked) |
current | 1539 | drivers/char/tty_io.c | current->leader && |
current | 1540 | drivers/char/tty_io.c | current->tty<0 && |
current | 1542 | drivers/char/tty_io.c | current->tty = minor; |
current | 1543 | drivers/char/tty_io.c | tty->session = current->session; |
current | 1544 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
current | 87 | drivers/char/tty_ioctl.c | struct wait_queue wait = { current, NULL }; |
current | 93 | drivers/char/tty_ioctl.c | current->counter = 0; /* make us low-priority */ |
current | 95 | drivers/char/tty_ioctl.c | current->timeout = timeout + jiffies; |
current | 97 | drivers/char/tty_ioctl.c | current->timeout = (unsigned) -1; |
current | 99 | drivers/char/tty_ioctl.c | current->state = TASK_INTERRUPTIBLE; |
current | 100 | drivers/char/tty_ioctl.c | if (current->signal & ~current->blocked) |
current | 106 | drivers/char/tty_ioctl.c | } while (current->timeout); |
current | 107 | drivers/char/tty_ioctl.c | current->state = TASK_RUNNING; |
current | 168 | drivers/char/tty_ioctl.c | if (current->tty != channel) |
current | 174 | drivers/char/tty_ioctl.c | if (current->pgrp == tty->pgrp) |
current | 178 | drivers/char/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 180 | drivers/char/tty_ioctl.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
current | 455 | drivers/char/tty_ioctl.c | if (current->leader && |
current | 456 | drivers/char/tty_ioctl.c | (current->session == tty->session)) |
current | 462 | drivers/char/tty_ioctl.c | if (!current->leader || (current->tty >= 0)) |
current | 481 | drivers/char/tty_ioctl.c | current->tty = dev; |
current | 482 | drivers/char/tty_ioctl.c | tty->session = current->session; |
current | 483 | drivers/char/tty_ioctl.c | tty->pgrp = current->pgrp; |
current | 490 | drivers/char/tty_ioctl.c | if (current->tty != termios_dev) |
current | 498 | drivers/char/tty_ioctl.c | if ((current->tty < 0) || |
current | 499 | drivers/char/tty_ioctl.c | (current->tty != termios_dev) || |
current | 500 | drivers/char/tty_ioctl.c | (termios_tty->session != current->session)) |
current | 505 | drivers/char/tty_ioctl.c | if (session_of_pgrp(pgrp) != current->session) |
current | 530 | drivers/char/tty_ioctl.c | if ((current->tty != dev) && !suser()) |
current | 595 | drivers/char/tty_ioctl.c | if (current->tty != dev) |
current | 597 | drivers/char/tty_ioctl.c | if (current->leader) |
current | 599 | drivers/char/tty_ioctl.c | current->tty = -1; |
current | 442 | drivers/char/vt.c | vt_cons[console].vt_pid = current->pid; |
current | 711 | drivers/scsi/scsi.c | if ((unsigned long) &SCpnt < current->kernel_stack_page) |
current | 490 | drivers/scsi/scsi.h | if (p->counter > current->counter) |
current | 519 | drivers/scsi/scsi.h | struct wait_queue wait = { current, NULL}; \ |
current | 522 | drivers/scsi/scsi.h | current->state = TASK_UNINTERRUPTIBLE; \ |
current | 528 | drivers/scsi/scsi.h | current->state = TASK_RUNNING; \ |
current | 84 | drivers/scsi/scsi_ioctl.c | if (p->counter > current->counter) |
current | 100 | drivers/scsi/scsi_ioctl.c | SCpnt->request.waiting = current; |
current | 101 | drivers/scsi/scsi_ioctl.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 184 | drivers/scsi/scsi_ioctl.c | SCpnt->request.waiting = current; |
current | 185 | drivers/scsi/scsi_ioctl.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 659 | drivers/scsi/sd.c | if (p->counter > current->counter) |
current | 683 | drivers/scsi/sd.c | if (current == task[0]){ |
current | 756 | drivers/scsi/sd.c | if (current == task[0]) |
current | 760 | drivers/scsi/sd.c | SCpnt->request.waiting = current; |
current | 761 | drivers/scsi/sd.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 87 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 98 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 130 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 165 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 227 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 642 | drivers/scsi/sr.c | if (p->counter > current->counter) |
current | 669 | drivers/scsi/sr.c | if (current == task[0]) |
current | 673 | drivers/scsi/sr.c | SCpnt->request.waiting = current; |
current | 674 | drivers/scsi/sr.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 32 | drivers/scsi/sr_ioctl.c | if (p->counter > current->counter) |
current | 53 | drivers/scsi/sr_ioctl.c | SCpnt->request.waiting = current; |
current | 54 | drivers/scsi/sr_ioctl.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 1175 | drivers/sound/gus_wave.c | int current, target, rate; |
current | 1188 | drivers/sound/gus_wave.c | current = gus_read16 (0x09) >> 4; |
current | 1205 | drivers/sound/gus_wave.c | if ((target - current) / 64 == 0) /* |
current | 1215 | drivers/sound/gus_wave.c | if (target > current) |
current | 1219 | drivers/sound/gus_wave.c | gus_ramp_range (current, target); |
current | 1229 | drivers/sound/gus_wave.c | gus_ramp_range (target, current); |
current | 75 | drivers/sound/os.h | #define PROCESS_ABORTING(q, f) (f.aborting | (current->signal & ~current->blocked)) |
current | 80 | drivers/sound/os.h | if (time_limit) tl = current->timeout = jiffies + (time_limit); \ |
current | 85 | drivers/sound/os.h | if (current->signal & ~current->blocked) \ |
current | 387 | fs/binfmt_coff.c | fp = current->filp[fd]; |
current | 444 | fs/binfmt_coff.c | current->mmap = NULL; |
current | 445 | fs/binfmt_coff.c | current->rss = 0; |
current | 458 | fs/binfmt_coff.c | current->start_code = text_vaddr & PAGE_MASK; |
current | 459 | fs/binfmt_coff.c | current->end_code = text_vaddr + text_size; |
current | 460 | fs/binfmt_coff.c | current->end_data = data_vaddr + data_size; |
current | 461 | fs/binfmt_coff.c | current->start_brk = |
current | 462 | fs/binfmt_coff.c | current->brk = bss_vaddr + bss_size; |
current | 463 | fs/binfmt_coff.c | current->suid = |
current | 464 | fs/binfmt_coff.c | current->euid = bprm->e_uid; |
current | 465 | fs/binfmt_coff.c | current->sgid = |
current | 466 | fs/binfmt_coff.c | current->egid = bprm->e_gid; |
current | 467 | fs/binfmt_coff.c | current->executable = bprm->inode; /* Store inode for file */ |
current | 471 | fs/binfmt_coff.c | current->start_stack = bprm->p; |
current | 557 | fs/binfmt_coff.c | send_sig (SIGSEGV, current, 0); /* Generate the error trap */ |
current | 559 | fs/binfmt_coff.c | if (current->flags & PF_PTRACED) |
current | 560 | fs/binfmt_coff.c | send_sig (SIGTRAP, current, 0); |
current | 759 | fs/binfmt_coff.c | file = current->filp[fd]; |
current | 57 | fs/binfmt_elf.c | mpnt->vm_task = current; |
current | 65 | fs/binfmt_elf.c | insert_vm_struct(current, mpnt); |
current | 66 | fs/binfmt_elf.c | current->stk_vma = mpnt; |
current | 97 | fs/binfmt_elf.c | current->arg_start = (unsigned long) p; |
current | 103 | fs/binfmt_elf.c | current->arg_end = current->env_start = (unsigned long) p; |
current | 109 | fs/binfmt_elf.c | current->env_end = (unsigned long) p; |
current | 164 | fs/binfmt_elf.c | file = current->filp[elf_exec_fileno]; |
current | 213 | fs/binfmt_elf.c | current->brk = interp_ex->a_bss + |
current | 214 | fs/binfmt_elf.c | (current->end_data = interp_ex->a_data + |
current | 215 | fs/binfmt_elf.c | (current->end_code = interp_ex->a_text)); |
current | 321 | fs/binfmt_elf.c | file = current->filp[elf_exec_fileno]; |
current | 419 | fs/binfmt_elf.c | current->end_data = 0; |
current | 420 | fs/binfmt_elf.c | current->end_code = 0; |
current | 421 | fs/binfmt_elf.c | current->start_mmap = ELF_START_MMAP; |
current | 422 | fs/binfmt_elf.c | current->mmap = NULL; |
current | 427 | fs/binfmt_elf.c | current->rss = 0; |
current | 429 | fs/binfmt_elf.c | current->start_stack = bprm->p; |
current | 462 | fs/binfmt_elf.c | send_sig(SIGSEGV, current, 0); |
current | 500 | fs/binfmt_elf.c | current->elf_executable = 1; |
current | 501 | fs/binfmt_elf.c | current->executable = bprm->inode; |
current | 504 | fs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
current | 515 | fs/binfmt_elf.c | current->arg_start += strlen(passed_fileno) + 1; |
current | 516 | fs/binfmt_elf.c | current->start_brk = current->brk = elf_brk; |
current | 517 | fs/binfmt_elf.c | current->end_code = end_code; |
current | 518 | fs/binfmt_elf.c | current->start_code = start_code; |
current | 519 | fs/binfmt_elf.c | current->end_data = end_data; |
current | 520 | fs/binfmt_elf.c | current->start_stack = bprm->p; |
current | 521 | fs/binfmt_elf.c | current->suid = current->euid = bprm->e_uid; |
current | 522 | fs/binfmt_elf.c | current->sgid = current->egid = bprm->e_gid; |
current | 526 | fs/binfmt_elf.c | current->brk = (elf_bss + 0xfff) & 0xfffff000; |
current | 540 | fs/binfmt_elf.c | if (current->flags & PF_PTRACED) |
current | 541 | fs/binfmt_elf.c | send_sig(SIGTRAP, current, 0); |
current | 561 | fs/binfmt_elf.c | file = current->filp[fd]; |
current | 73 | fs/buffer.c | struct wait_queue wait = { current, NULL }; |
current | 78 | fs/buffer.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 85 | fs/buffer.c | current->state = TASK_RUNNING; |
current | 182 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 731 | fs/buffer.c | ++current->min_flt; |
current | 783 | fs/buffer.c | ++current->maj_flt; |
current | 842 | fs/buffer.c | ++current->maj_flt; |
current | 67 | fs/exec.c | fpp = current->filp; |
current | 122 | fs/exec.c | char corefile[6+sizeof(current->comm)]; |
current | 127 | fs/exec.c | if (!current->dumpable) |
current | 129 | fs/exec.c | current->dumpable = 0; |
current | 132 | fs/exec.c | if (current->rlim[RLIMIT_CORE].rlim_cur < PAGE_SIZE) |
current | 138 | fs/exec.c | memcpy(corefile+5,current->comm,sizeof(current->comm)); |
current | 167 | fs/exec.c | dump.u_tsize = ((unsigned long) current->end_code) >> 12; |
current | 168 | fs/exec.c | dump.u_dsize = ((unsigned long) (current->brk + (PAGE_SIZE-1))) >> 12; |
current | 171 | fs/exec.c | for(i=0; i<8; i++) dump.u_debugreg[i] = current->debugreg[i]; |
current | 177 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 181 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 183 | fs/exec.c | strncpy(dump.u_comm, current->comm, sizeof(current->comm)); |
current | 190 | fs/exec.c | if ((dump.u_fpvalid = current->used_math) != 0) { |
current | 191 | fs/exec.c | if (last_task_used_math == current) |
current | 194 | fs/exec.c | memcpy(&dump.i387,¤t->tss.i387.hard,sizeof(dump.i387)); |
current | 222 | fs/exec.c | DUMP_WRITE(current,sizeof(*current)); |
current | 247 | fs/exec.c | file = current->filp[fd]; |
current | 276 | fs/exec.c | mpnt->vm_task = current; |
current | 284 | fs/exec.c | insert_vm_struct(current, mpnt); |
current | 285 | fs/exec.c | current->stk_vma = mpnt; |
current | 297 | fs/exec.c | current->arg_start = (unsigned long) p; |
current | 303 | fs/exec.c | current->arg_end = current->env_start = (unsigned long) p; |
current | 309 | fs/exec.c | current->env_end = (unsigned long) p; |
current | 403 | fs/exec.c | current->start_code = code_base; |
current | 408 | fs/exec.c | current->rss++; |
current | 409 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
current | 471 | fs/exec.c | current->dumpable = 1; |
current | 478 | fs/exec.c | current->comm[i++] = ch; |
current | 480 | fs/exec.c | current->comm[i] = '\0'; |
current | 481 | fs/exec.c | if (current->shm) |
current | 483 | fs/exec.c | if (current->executable) { |
current | 484 | fs/exec.c | iput(current->executable); |
current | 485 | fs/exec.c | current->executable = NULL; |
current | 489 | fs/exec.c | mpnt = current->mmap; |
current | 490 | fs/exec.c | current->mmap = NULL; |
current | 491 | fs/exec.c | current->stk_vma = NULL; |
current | 501 | fs/exec.c | if (current->ldt) { |
current | 502 | fs/exec.c | free_page((unsigned long) current->ldt); |
current | 503 | fs/exec.c | current->ldt = NULL; |
current | 505 | fs/exec.c | if (task[i] == current) { |
current | 513 | fs/exec.c | for (i=0 ; i<8 ; i++) current->debugreg[i] = 0; |
current | 515 | fs/exec.c | if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || |
current | 517 | fs/exec.c | current->dumpable = 0; |
current | 518 | fs/exec.c | current->signal = 0; |
current | 520 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
current | 521 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
current | 522 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
current | 523 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
current | 526 | fs/exec.c | if (FD_ISSET(i,¤t->close_on_exec)) |
current | 528 | fs/exec.c | FD_ZERO(¤t->close_on_exec); |
current | 529 | fs/exec.c | clear_page_tables(current); |
current | 530 | fs/exec.c | if (last_task_used_math == current) |
current | 532 | fs/exec.c | current->used_math = 0; |
current | 533 | fs/exec.c | current->elf_executable = 0; |
current | 574 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
current | 581 | fs/exec.c | if (current->flags & PF_PTRACED) { |
current | 582 | fs/exec.c | bprm.e_uid = current->euid; |
current | 583 | fs/exec.c | bprm.e_gid = current->egid; |
current | 585 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
current | 586 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
current | 588 | fs/exec.c | if (current->euid == bprm.inode->i_uid) |
current | 695 | fs/exec.c | current->did_exec = 1; |
current | 791 | fs/exec.c | current->end_code = N_TXTADDR(ex) + ex.a_text; |
current | 792 | fs/exec.c | current->end_data = ex.a_data + current->end_code; |
current | 793 | fs/exec.c | current->start_brk = current->brk = current->end_data; |
current | 794 | fs/exec.c | current->start_code += N_TXTADDR(ex); |
current | 795 | fs/exec.c | current->rss = 0; |
current | 796 | fs/exec.c | current->suid = current->euid = bprm->e_uid; |
current | 797 | fs/exec.c | current->mmap = NULL; |
current | 798 | fs/exec.c | current->executable = NULL; /* for OMAGIC files */ |
current | 799 | fs/exec.c | current->sgid = current->egid = bprm->e_gid; |
current | 807 | fs/exec.c | printk("%s: executable not page aligned\n", current->comm); |
current | 813 | fs/exec.c | file = current->filp[fd]; |
current | 829 | fs/exec.c | send_sig(SIGSEGV, current, 0); |
current | 838 | fs/exec.c | send_sig(SIGSEGV, current, 0); |
current | 841 | fs/exec.c | current->executable = bprm->inode; |
current | 845 | fs/exec.c | sys_brk(current->brk+ex.a_bss); |
current | 850 | fs/exec.c | current->start_stack = p; |
current | 853 | fs/exec.c | if (current->flags & PF_PTRACED) |
current | 854 | fs/exec.c | send_sig(SIGTRAP, current, 0); |
current | 869 | fs/exec.c | file = current->filp[fd]; |
current | 292 | fs/ext/freelists.c | inode->i_uid = current->euid; |
current | 293 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 363 | fs/ext/namei.c | inode->i_uid = current->euid; |
current | 450 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 546 | fs/ext/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 547 | fs/ext/namei.c | inode->i_uid != current->euid) |
current | 600 | fs/ext/namei.c | current->euid != inode->i_uid && |
current | 601 | fs/ext/namei.c | current->euid != dir->i_uid) |
current | 778 | fs/ext/namei.c | current->counter = 0; |
current | 792 | fs/ext/namei.c | current->euid != old_inode->i_uid && |
current | 793 | fs/ext/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 813 | fs/ext/namei.c | current->euid != new_inode->i_uid && |
current | 814 | fs/ext/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 55 | fs/ext/symlink.c | dir = current->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 | 37 | fs/ext2/acl.c | else if (current->euid == inode->i_uid) |
current | 478 | fs/ext2/ialloc.c | inode->i_uid = current->euid; |
current | 486 | fs/ext2/ialloc.c | inode->i_gid = current->egid; |
current | 208 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 287 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 28 | fs/ext2/ioctl.c | if ((current->euid != inode->i_uid) && !suser()) |
current | 40 | fs/ext2/ioctl.c | if ((current->euid != inode->i_uid) && !suser()) |
current | 432 | fs/ext2/namei.c | inode->i_uid = current->euid; |
current | 536 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->umask); |
current | 643 | fs/ext2/namei.c | current->counter = 0; |
current | 647 | fs/ext2/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 648 | fs/ext2/namei.c | inode->i_uid != current->euid) |
current | 728 | fs/ext2/namei.c | current->counter = 0; |
current | 733 | fs/ext2/namei.c | current->euid != inode->i_uid && |
current | 734 | fs/ext2/namei.c | current->euid != dir->i_uid) |
current | 958 | fs/ext2/namei.c | current->counter = 0; |
current | 973 | fs/ext2/namei.c | current->euid != old_inode->i_uid && |
current | 974 | fs/ext2/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 1004 | fs/ext2/namei.c | current->euid != new_inode->i_uid && |
current | 1005 | fs/ext2/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 59 | fs/ext2/symlink.c | dir = current->root; |
current | 71 | fs/ext2/symlink.c | if (current->link_count > 5) { |
current | 85 | fs/ext2/symlink.c | current->link_count++; |
current | 87 | fs/ext2/symlink.c | current->link_count--; |
current | 349 | fs/ext2/truncate.c | current->counter = 0; |
current | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->filp[fd]) |
current | 27 | fs/fcntl.c | if (current->filp[arg]) |
current | 33 | fs/fcntl.c | FD_CLR(arg, ¤t->close_on_exec); |
current | 34 | fs/fcntl.c | (current->filp[arg] = current->filp[fd])->f_count++; |
current | 40 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->filp[oldfd]) |
current | 70 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 76 | fs/fcntl.c | return FD_ISSET(fd, ¤t->close_on_exec); |
current | 79 | fs/fcntl.c | FD_SET(fd, ¤t->close_on_exec); |
current | 81 | fs/fcntl.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 31 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 64 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 543 | fs/hpfs/hpfs_fs.c | *uid = current->uid; |
current | 544 | fs/hpfs/hpfs_fs.c | *gid = current->gid; |
current | 545 | fs/hpfs/hpfs_fs.c | *umask = current->umask; |
current | 416 | fs/inode.c | inode->i_uid = current->euid; |
current | 417 | fs/inode.c | inode->i_gid = current->egid; |
current | 494 | fs/inode.c | struct wait_queue wait = { current, NULL }; |
current | 498 | fs/inode.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 504 | fs/inode.c | current->state = TASK_RUNNING; |
current | 62 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 66 | fs/ioctl.c | FD_SET(fd, ¤t->close_on_exec); |
current | 70 | fs/ioctl.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 52 | fs/isofs/symlink.c | dir = current->root; |
current | 65 | fs/isofs/symlink.c | if ((current->link_count > 5) || |
current | 73 | fs/isofs/symlink.c | current->link_count++; |
current | 75 | fs/isofs/symlink.c | current->link_count--; |
current | 61 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 105 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 151 | fs/locks.c | if (current->signal & ~current->blocked) |
current | 154 | fs/locks.c | if (current->signal & ~current->blocked) |
current | 221 | fs/locks.c | fl->fl_owner = current; |
current | 429 | fs/locks.c | tmp->fl_owner = current; /* FIXME: needed? */ |
current | 216 | fs/minix/bitmap.c | inode->i_uid = current->euid; |
current | 217 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 268 | fs/minix/namei.c | inode->i_uid = current->euid; |
current | 352 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 446 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 447 | fs/minix/namei.c | inode->i_uid != current->euid) |
current | 507 | fs/minix/namei.c | current->counter = 0; |
current | 512 | fs/minix/namei.c | current->euid != inode->i_uid && |
current | 513 | fs/minix/namei.c | current->euid != dir->i_uid) |
current | 688 | fs/minix/namei.c | current->counter = 0; |
current | 702 | fs/minix/namei.c | current->euid != old_inode->i_uid && |
current | 703 | fs/minix/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 733 | fs/minix/namei.c | current->euid != new_inode->i_uid && |
current | 734 | fs/minix/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 49 | fs/minix/symlink.c | dir = current->root; |
current | 61 | fs/minix/symlink.c | if (current->link_count > 5) { |
current | 72 | fs/minix/symlink.c | current->link_count++; |
current | 74 | fs/minix/symlink.c | current->link_count--; |
current | 179 | fs/minix/truncate.c | current->counter = 0; |
current | 76 | fs/msdos/inode.c | *uid = current->uid; |
current | 77 | fs/msdos/inode.c | *gid = current->gid; |
current | 78 | fs/msdos/inode.c | *umask = current->umask; |
current | 111 | fs/msdos/misc.c | int count,nr,limit,last,current,sector; |
current | 143 | fs/msdos/misc.c | if ((current = MSDOS_I(inode)->i_start) != 0) { |
current | 144 | fs/msdos/misc.c | cache_lookup(inode,INT_MAX,&last,¤t); |
current | 145 | fs/msdos/misc.c | while (current && current != -1) |
current | 146 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
current | 147 | fs/msdos/misc.c | last = current,-1))) { |
current | 163 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
current | 164 | fs/msdos/misc.c | current++) { |
current | 166 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
current | 170 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
current | 179 | fs/msdos/misc.c | current++; |
current | 458 | fs/msdos/misc.c | int error,current,prev,nr; |
current | 463 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
current | 466 | fs/msdos/misc.c | return current; |
current | 468 | fs/msdos/misc.c | if (!current) nr = MSDOS_ROOT_INO; |
current | 470 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
current | 475 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
current | 80 | fs/namei.c | else if (current->euid == inode->i_uid) |
current | 106 | fs/namei.c | if (dir == current->root) { |
current | 166 | fs/namei.c | base = current->pwd; |
current | 171 | fs/namei.c | base = current->root; |
current | 282 | fs/namei.c | mode &= S_IALLUGO & ~current->umask; |
current | 390 | fs/namei.c | mode &= ~current->umask; |
current | 80 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) { |
current | 72 | fs/nfs/mmap.c | mpnt->vm_task = current; |
current | 81 | fs/nfs/mmap.c | insert_vm_struct(current, mpnt); |
current | 82 | fs/nfs/mmap.c | merge_segments(current->mmap, NULL, NULL); |
current | 110 | fs/nfs/mmap.c | oom(current); |
current | 155 | fs/nfs/mmap.c | oom(current); |
current | 214 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 249 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 289 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 327 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 370 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 408 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 446 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 479 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 516 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 551 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 587 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 625 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 658 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 712 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 746 | fs/nfs/proc.c | if (!ruid && current->euid == 0 && current->uid != 0) { |
current | 781 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->euid); |
current | 782 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
current | 784 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
current | 785 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
current | 70 | fs/nfs/sock.c | old_mask = current->blocked; |
current | 71 | fs/nfs/sock.c | current->blocked |= ~(_S(SIGKILL) |
current | 76 | fs/nfs/sock.c | ? ((current->sigaction[SIGINT - 1].sa_handler == SIG_DFL |
current | 78 | fs/nfs/sock.c | | (current->sigaction[SIGQUIT - 1].sa_handler == SIG_DFL |
current | 92 | fs/nfs/sock.c | current->state = TASK_INTERRUPTIBLE; |
current | 97 | fs/nfs/sock.c | current->timeout = jiffies + timeout; |
current | 100 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 101 | fs/nfs/sock.c | if (current->signal & ~current->blocked) { |
current | 102 | fs/nfs/sock.c | current->timeout = 0; |
current | 106 | fs/nfs/sock.c | if (!current->timeout) { |
current | 126 | fs/nfs/sock.c | current->timeout = 0; |
current | 130 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 162 | fs/nfs/sock.c | current->blocked = old_mask; |
current | 51 | fs/nfs/symlink.c | dir = current->root; |
current | 63 | fs/nfs/symlink.c | if (current->link_count > 5) { |
current | 77 | fs/nfs/symlink.c | current->link_count++; |
current | 79 | fs/nfs/symlink.c | current->link_count--; |
current | 58 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 99 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 131 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 139 | fs/open.c | if ((current->euid != inode->i_uid) && |
current | 170 | fs/open.c | if (current->uid == inode->i_uid) |
current | 186 | fs/open.c | if ((!current->uid) && |
current | 208 | fs/open.c | iput(current->pwd); |
current | 209 | fs/open.c | current->pwd = inode; |
current | 218 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 226 | fs/open.c | iput(current->pwd); |
current | 227 | fs/open.c | current->pwd = inode; |
current | 248 | fs/open.c | iput(current->root); |
current | 249 | fs/open.c | current->root = inode; |
current | 258 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 262 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) |
current | 284 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 309 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 319 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 347 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 383 | fs/open.c | if (!current->filp[fd]) |
current | 387 | fs/open.c | FD_CLR(fd,¤t->close_on_exec); |
current | 391 | fs/open.c | current->filp[fd] = f; |
current | 400 | fs/open.c | current->filp[fd]=NULL; |
current | 416 | fs/open.c | current->filp[fd]=NULL; |
current | 452 | fs/open.c | fcntl_remove_locks(current, filp, fd); |
current | 471 | fs/open.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 472 | fs/open.c | if (!(filp = current->filp[fd])) |
current | 474 | fs/open.c | current->filp[fd] = NULL; |
current | 489 | fs/open.c | if (current->tty < 0) |
current | 491 | fs/open.c | tty = TTY_TABLE(MINOR(current->tty)); |
current | 42 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 77 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 88 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 91 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 210 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 397 | fs/pipe.c | if (!current->filp[i]) { |
current | 398 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
current | 402 | fs/pipe.c | current->filp[fd[0]]=NULL; |
current | 409 | fs/pipe.c | current->filp[fd[0]] = NULL; |
current | 410 | fs/pipe.c | current->filp[fd[1]] = NULL; |
current | 234 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
current | 45 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 93 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 104 | fs/proc/mem.c | do_wp_page(0,addr,current,0); |
current | 120 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 97 | fs/proc/root.c | ino = (current->pid << 16) + 2; |
current | 25 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->filp[fd]) || |
current | 42 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
current | 76 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 96 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 98 | fs/select.c | if (!current->filp[i]) |
current | 100 | fs/select.c | if (!current->filp[i]->f_inode) |
current | 117 | fs/select.c | current->state = TASK_INTERRUPTIBLE; |
current | 119 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->filp[i])) { |
current | 124 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->filp[i])) { |
current | 129 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) { |
current | 136 | fs/select.c | if (!count && current->timeout && !(current->signal & ~current->blocked)) { |
current | 142 | fs/select.c | current->state = TASK_RUNNING; |
current | 231 | fs/select.c | current->timeout = timeout; |
current | 233 | fs/select.c | if (current->timeout > jiffies) |
current | 234 | fs/select.c | timeout = current->timeout - jiffies; |
current | 237 | fs/select.c | current->timeout = 0; |
current | 246 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
current | 19 | fs/stat.c | current->comm); |
current | 162 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 177 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 58 | fs/super.c | struct wait_queue wait = { current, NULL }; |
current | 62 | fs/super.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 68 | fs/super.c | current->state = TASK_RUNNING; |
current | 393 | fs/super.c | for (vma = current->mmap ; ; ) { |
current | 528 | fs/super.c | current->pwd = inode; |
current | 529 | fs/super.c | current->root = inode; |
current | 138 | fs/sysv/ialloc.c | inode->i_uid = current->euid; |
current | 139 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 35 | fs/sysv/inode.c | struct wait_queue wait = { current, NULL }; |
current | 39 | fs/sysv/inode.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 45 | fs/sysv/inode.c | current->state = TASK_RUNNING; |
current | 268 | fs/sysv/namei.c | inode->i_uid = current->euid; |
current | 354 | fs/sysv/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->umask); |
current | 450 | fs/sysv/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 451 | fs/sysv/namei.c | inode->i_uid != current->euid) |
current | 511 | fs/sysv/namei.c | current->counter = 0; |
current | 516 | fs/sysv/namei.c | current->euid != inode->i_uid && |
current | 517 | fs/sysv/namei.c | current->euid != dir->i_uid) |
current | 696 | fs/sysv/namei.c | current->counter = 0; |
current | 710 | fs/sysv/namei.c | current->euid != old_inode->i_uid && |
current | 711 | fs/sysv/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 741 | fs/sysv/namei.c | current->euid != new_inode->i_uid && |
current | 742 | fs/sysv/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 56 | fs/sysv/symlink.c | dir = current->root; |
current | 68 | fs/sysv/symlink.c | if (current->link_count > 5) { |
current | 79 | fs/sysv/symlink.c | current->link_count++; |
current | 81 | fs/sysv/symlink.c | current->link_count--; |
current | 494 | fs/sysv/truncate.c | current->counter = 0; |
current | 502 | fs/sysv/truncate.c | current->counter = 0; |
current | 332 | fs/xiafs/bitmap.c | inode->i_uid = current->euid; |
current | 333 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->egid; |
current | 297 | fs/xiafs/namei.c | inode->i_uid = current->euid; |
current | 380 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->umask); |
current | 499 | fs/xiafs/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 500 | fs/xiafs/namei.c | inode->i_uid != current->euid) |
current | 556 | fs/xiafs/namei.c | current->counter = 0; |
current | 561 | fs/xiafs/namei.c | current->euid != inode->i_uid && |
current | 562 | fs/xiafs/namei.c | current->euid != dir->i_uid) |
current | 732 | fs/xiafs/namei.c | current->euid != old_inode->i_uid && |
current | 733 | fs/xiafs/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 753 | fs/xiafs/namei.c | current->euid != new_inode->i_uid && |
current | 754 | fs/xiafs/namei.c | current->euid != new_dir->i_uid && !suser()) |
current | 791 | fs/xiafs/namei.c | current->counter=0; |
current | 83 | fs/xiafs/symlink.c | dir = current->root; |
current | 99 | fs/xiafs/symlink.c | if (current->link_count > 5) { |
current | 110 | fs/xiafs/symlink.c | current->link_count++; |
current | 112 | fs/xiafs/symlink.c | current->link_count--; |
current | 192 | fs/xiafs/truncate.c | current->counter = 0; |
current | 60 | include/linux/kernel.h | #define suser() (current->euid == 0) |
current | 304 | include/linux/sched.h | extern struct task_struct *current; |
current | 479 | include/linux/sched.h | entry->wait.task = current; |
current | 565 | include/linux/sched.h | :"m" (current->debugreg[register]) \ |
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 | 399 | ipc/msg.c | if (!suser() && current->euid != ipcp->cuid && |
current | 400 | ipc/msg.c | current->euid != ipcp->uid) |
current | 87 | ipc/sem.c | ipcp->cuid = ipcp->uid = current->euid; |
current | 88 | ipc/sem.c | ipcp->gid = ipcp->cgid = current->egid; |
current | 250 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || |
current | 251 | ipc/sem.c | current->euid == ipcp->uid) { |
current | 308 | ipc/sem.c | if (suser() || current->euid == ipcp->cuid || |
current | 309 | ipc/sem.c | current->euid == ipcp->uid) { |
current | 382 | ipc/sem.c | for (un = current->semun; un; un = un->proc_next) |
current | 395 | ipc/sem.c | un->proc_next = current->semun; |
current | 396 | ipc/sem.c | current->semun = un; |
current | 413 | ipc/sem.c | if (current->signal & ~current->blocked) |
current | 423 | ipc/sem.c | if (current->signal & ~current->blocked) |
current | 435 | ipc/sem.c | curr->sempid = current->pid; |
current | 440 | ipc/sem.c | for (un = current->semun; un; un = un->proc_next) |
current | 469 | ipc/sem.c | for (up = ¤t->semun; (u = *up); *up = u->proc_next, kfree(u)) { |
current | 491 | ipc/sem.c | sem->sempid = current->pid; |
current | 499 | ipc/sem.c | if (current->signal & ~current->blocked) |
current | 506 | ipc/sem.c | current->semun = NULL; |
current | 106 | ipc/shm.c | shp->shm_perm.cuid = shp->shm_perm.uid = current->euid; |
current | 107 | ipc/shm.c | shp->shm_perm.cgid = shp->shm_perm.gid = current->egid; |
current | 110 | ipc/shm.c | shp->shm_cpid = current->pid; |
current | 300 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
current | 301 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
current | 311 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
current | 312 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
current | 347 | ipc/shm.c | --current->rss; |
current | 409 | ipc/shm.c | for (shmd = current->shm; shmd; shmd = shmd->task_next) { |
current | 422 | ipc/shm.c | if ((addr > current->start_stack - 16384 - PAGE_SIZE*shp->shm_npages)) |
current | 425 | ipc/shm.c | for (shmd = current->shm; shmd; shmd = shmd->task_next) { |
current | 449 | ipc/shm.c | shmd->task = current; |
current | 452 | ipc/shm.c | if (addr < current->end_data) { |
current | 453 | ipc/shm.c | iput (current->executable); |
current | 454 | ipc/shm.c | current->executable = NULL; |
current | 465 | ipc/shm.c | shmd->task_next = current->shm; |
current | 466 | ipc/shm.c | current->shm = shmd; |
current | 469 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 501 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 516 | ipc/shm.c | for (shmdp = ¤t->shm; (shmd = *shmdp); shmdp=&shmd->task_next) { |
current | 530 | ipc/shm.c | while (current->shm) |
current | 531 | ipc/shm.c | detach(¤t->shm); |
current | 576 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 609 | ipc/shm.c | oom(current); |
current | 629 | ipc/shm.c | --current->maj_flt; /* was incremented in do_no_page */ |
current | 632 | ipc/shm.c | current->min_flt++; |
current | 55 | ipc/util.c | if (current->euid == ipcp->cuid || current->euid == ipcp->uid) |
current | 50 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
current | 51 | kernel/exit.c | (current->euid != p->euid) && (current->uid != p->uid) && !suser()) |
current | 84 | kernel/exit.c | if (p == current) { |
current | 283 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
current | 287 | kernel/exit.c | if (p->pid > 1 && p != current) { |
current | 357 | kernel/exit.c | if (current->semun) |
current | 359 | kernel/exit.c | if (current->shm) |
current | 361 | kernel/exit.c | free_page_tables(current); |
current | 363 | kernel/exit.c | if (current->filp[i]) |
current | 365 | kernel/exit.c | forget_original_parent(current); |
current | 366 | kernel/exit.c | iput(current->pwd); |
current | 367 | kernel/exit.c | current->pwd = NULL; |
current | 368 | kernel/exit.c | iput(current->root); |
current | 369 | kernel/exit.c | current->root = NULL; |
current | 370 | kernel/exit.c | iput(current->executable); |
current | 371 | kernel/exit.c | current->executable = NULL; |
current | 376 | kernel/exit.c | mpnt = current->mmap; |
current | 377 | kernel/exit.c | current->mmap = NULL; |
current | 387 | kernel/exit.c | if (current->ldt) { |
current | 388 | kernel/exit.c | vfree(current->ldt); |
current | 389 | kernel/exit.c | current->ldt = NULL; |
current | 391 | kernel/exit.c | if (task[i] == current) { |
current | 398 | kernel/exit.c | current->state = TASK_ZOMBIE; |
current | 399 | kernel/exit.c | current->exit_code = code; |
current | 400 | kernel/exit.c | current->rss = 0; |
current | 410 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
current | 411 | kernel/exit.c | (current->p_pptr->session == current->session) && |
current | 412 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
current | 413 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
current | 414 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
current | 415 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
current | 418 | kernel/exit.c | notify_parent(current); |
current | 428 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
current | 429 | kernel/exit.c | current->p_cptr = p->p_osptr; |
current | 432 | kernel/exit.c | if (task[1] && task[1] != current) |
current | 447 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
current | 448 | kernel/exit.c | (p->session == current->session) && |
current | 455 | kernel/exit.c | if (current->leader) |
current | 457 | kernel/exit.c | if (last_task_used_math == current) |
current | 487 | kernel/exit.c | struct wait_queue wait = { current, NULL }; |
current | 495 | kernel/exit.c | add_wait_queue(¤t->wait_chldexit,&wait); |
current | 498 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
current | 503 | kernel/exit.c | if (p->pgrp != current->pgrp) |
current | 528 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
current | 529 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
current | 530 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
current | 531 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
current | 557 | kernel/exit.c | current->state=TASK_INTERRUPTIBLE; |
current | 559 | kernel/exit.c | current->signal &= ~(1<<(SIGCHLD-1)); |
current | 561 | kernel/exit.c | if (current->signal & ~current->blocked) |
current | 567 | kernel/exit.c | remove_wait_queue(¤t->wait_chldexit,&wait); |
current | 57 | kernel/fork.c | if (task[i]->uid == current->uid) |
current | 65 | kernel/fork.c | if (current->uid) |
current | 99 | kernel/fork.c | for (mpnt = current->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
current | 110 | kernel/fork.c | if (current->stk_vma == mpnt) |
current | 138 | kernel/fork.c | *p = *current; |
current | 145 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
current | 190 | kernel/fork.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
current | 195 | kernel/fork.c | if (last_task_used_math == current) |
current | 198 | kernel/fork.c | if (copy_vm(p) || shm_fork(current, p)) |
current | 209 | kernel/fork.c | if (current->pwd) |
current | 210 | kernel/fork.c | current->pwd->i_count++; |
current | 211 | kernel/fork.c | if (current->root) |
current | 212 | kernel/fork.c | current->root->i_count++; |
current | 213 | kernel/fork.c | if (current->executable) |
current | 214 | kernel/fork.c | current->executable->i_count++; |
current | 222 | kernel/fork.c | p->counter = current->counter >> 1; |
current | 33 | kernel/ioport.c | int numl = sizeof(current->tss.io_bitmap) >> 2; |
current | 38 | kernel/ioport.c | printk("%s ", ios(current->tss.io_bitmap[j++])); |
current | 40 | kernel/ioport.c | printk("%s", ios(current->tss.io_bitmap[j++])); |
current | 126 | kernel/ioport.c | set_bitmap((unsigned long *)current->tss.io_bitmap, from, num, !turn_on); |
current | 37 | kernel/itimer.c | val = current->it_real_value; |
current | 38 | kernel/itimer.c | interval = current->it_real_incr; |
current | 41 | kernel/itimer.c | val = current->it_virt_value; |
current | 42 | kernel/itimer.c | interval = current->it_virt_incr; |
current | 45 | kernel/itimer.c | val = current->it_prof_value; |
current | 46 | kernel/itimer.c | interval = current->it_prof_incr; |
current | 89 | kernel/itimer.c | current->it_real_value = j; |
current | 90 | kernel/itimer.c | current->it_real_incr = i; |
current | 95 | kernel/itimer.c | current->it_virt_value = j; |
current | 96 | kernel/itimer.c | current->it_virt_incr = i; |
current | 101 | kernel/itimer.c | current->it_prof_value = j; |
current | 102 | kernel/itimer.c | current->it_prof_incr = i; |
current | 18 | kernel/ldt.c | void * address = current->ldt; |
current | 64 | kernel/ldt.c | if (!current->ldt) { |
current | 66 | kernel/ldt.c | if (task[i] == current) { |
current | 67 | kernel/ldt.c | if (!(current->ldt = (struct desc_struct*) vmalloc(LDT_ENTRIES*LDT_ENTRY_SIZE))) |
current | 69 | kernel/ldt.c | set_ldt_desc(gdt+(i<<1)+FIRST_LDT_ENTRY, current->ldt, LDT_ENTRIES); |
current | 75 | kernel/ldt.c | lp = (unsigned long *) ¤t->ldt[ldt_info.entry_number]; |
current | 29 | kernel/panic.c | if (current == task[0]) |
current | 79 | kernel/printk.c | if (current->signal & ~current->blocked) { |
current | 247 | kernel/ptrace.c | if (current->flags & PF_PTRACED) |
current | 250 | kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 258 | kernel/ptrace.c | if (child == current) |
current | 260 | kernel/ptrace.c | if ((!child->dumpable || (current->uid != child->euid) || |
current | 261 | kernel/ptrace.c | (current->gid != child->egid)) && !suser()) |
current | 267 | kernel/ptrace.c | if (child->p_pptr != current) { |
current | 269 | kernel/ptrace.c | child->p_pptr = current; |
current | 281 | kernel/ptrace.c | if (child->p_pptr != current) |
current | 465 | kernel/ptrace.c | if ((current->flags & (PF_PTRACED|PF_TRACESYS)) |
current | 468 | kernel/ptrace.c | current->exit_code = SIGTRAP; |
current | 469 | kernel/ptrace.c | current->state = TASK_STOPPED; |
current | 470 | kernel/ptrace.c | notify_parent(current); |
current | 477 | kernel/ptrace.c | if (current->exit_code) |
current | 478 | kernel/ptrace.c | current->signal |= (1 << (current->exit_code - 1)); |
current | 479 | kernel/ptrace.c | current->exit_code = 0; |
current | 93 | kernel/sched.c | struct task_struct *current = &init_task; |
current | 165 | kernel/sched.c | if (last_task_used_math == current) |
current | 173 | kernel/sched.c | last_task_used_math = current; |
current | 174 | kernel/sched.c | if (current->used_math) { |
current | 175 | kernel/sched.c | __asm__("frstor %0": :"m" (current->tss.i387)); |
current | 178 | kernel/sched.c | current->used_math=1; |
current | 188 | kernel/sched.c | printk("killing %s.\n",current->comm); |
current | 189 | kernel/sched.c | send_sig(SIGFPE,current,1); |
current | 265 | kernel/sched.c | if (TASK_UNINTERRUPTIBLE >= (unsigned) current->state && |
current | 266 | kernel/sched.c | current->counter < current->priority*2) { |
current | 267 | kernel/sched.c | ++current->counter; |
current | 283 | kernel/sched.c | if(current != next) |
current | 287 | kernel/sched.c | if(current->debugreg[7]){ |
current | 298 | kernel/sched.c | current->state = TASK_INTERRUPTIBLE; |
current | 323 | kernel/sched.c | if (p->counter > current->counter) |
current | 349 | kernel/sched.c | if (p->counter > current->counter) |
current | 366 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 368 | kernel/sched.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 371 | kernel/sched.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 373 | kernel/sched.c | current->state = TASK_RUNNING; |
current | 380 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 384 | kernel/sched.c | if (current == task[0]) |
current | 386 | kernel/sched.c | current->state = state; |
current | 657 | kernel/sched.c | current->utime++; |
current | 658 | kernel/sched.c | if (current != task[0]) { |
current | 659 | kernel/sched.c | if (current->priority < 15) |
current | 665 | kernel/sched.c | if (current->it_virt_value && !(--current->it_virt_value)) { |
current | 666 | kernel/sched.c | current->it_virt_value = current->it_virt_incr; |
current | 667 | kernel/sched.c | send_sig(SIGVTALRM,current,1); |
current | 670 | kernel/sched.c | current->stime++; |
current | 671 | kernel/sched.c | if(current != task[0]) |
current | 674 | kernel/sched.c | if (prof_buffer && current != task[0]) { |
current | 682 | kernel/sched.c | if (current == task[0] || (--current->counter)<=0) { |
current | 683 | kernel/sched.c | current->counter=0; |
current | 687 | kernel/sched.c | if (current->it_prof_value && !(--current->it_prof_value)) { |
current | 688 | kernel/sched.c | current->it_prof_value = current->it_prof_incr; |
current | 689 | kernel/sched.c | send_sig(SIGPROF,current,1); |
current | 730 | kernel/sched.c | return current->pid; |
current | 735 | kernel/sched.c | return current->p_opptr->pid; |
current | 740 | kernel/sched.c | return current->uid; |
current | 745 | kernel/sched.c | return current->euid; |
current | 750 | kernel/sched.c | return current->gid; |
current | 755 | kernel/sched.c | return current->egid; |
current | 764 | kernel/sched.c | newprio = current->priority - increment; |
current | 769 | kernel/sched.c | current->priority = newprio; |
current | 777 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
current | 782 | kernel/sched.c | if (p == current) |
current | 52 | kernel/signal.c | sigset_t new_set, old_set = current->blocked; |
current | 62 | kernel/signal.c | current->blocked |= new_set; |
current | 65 | kernel/signal.c | current->blocked &= ~new_set; |
current | 68 | kernel/signal.c | current->blocked = new_set; |
current | 85 | kernel/signal.c | return current->blocked; |
current | 90 | kernel/signal.c | int old=current->blocked; |
current | 92 | kernel/signal.c | current->blocked = newmask & _BLOCKABLE; |
current | 102 | kernel/signal.c | put_fs_long(current->blocked & current->signal, (unsigned long *)set); |
current | 114 | kernel/signal.c | mask = current->blocked; |
current | 115 | kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 118 | kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 144 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 148 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 154 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 171 | kernel/signal.c | handler = (long) current->sigaction[signum-1].sa_handler; |
current | 172 | kernel/signal.c | current->sigaction[signum-1] = tmp; |
current | 184 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 231 | kernel/signal.c | current->blocked = context.oldmask & _BLOCKABLE; |
current | 283 | kernel/signal.c | put_fs_long(current->tss.trap_no, frame+14); |
current | 284 | kernel/signal.c | put_fs_long(current->tss.error_code, frame+15); |
current | 293 | kernel/signal.c | put_fs_long(current->tss.cr2, frame+23); |
current | 314 | kernel/signal.c | unsigned long mask = ~current->blocked; |
current | 321 | kernel/signal.c | while ((signr = current->signal & mask)) { |
current | 324 | kernel/signal.c | :"=m" (current->signal),"=r" (signr) |
current | 326 | kernel/signal.c | sa = current->sigaction + signr; |
current | 328 | kernel/signal.c | if ((current->flags & PF_PTRACED) && signr != SIGKILL) { |
current | 329 | kernel/signal.c | current->exit_code = signr; |
current | 330 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 331 | kernel/signal.c | notify_parent(current); |
current | 333 | kernel/signal.c | if (!(signr = current->exit_code)) |
current | 335 | kernel/signal.c | current->exit_code = 0; |
current | 338 | kernel/signal.c | if (_S(signr) & current->blocked) { |
current | 339 | kernel/signal.c | current->signal |= _S(signr); |
current | 342 | kernel/signal.c | sa = current->sigaction + signr - 1; |
current | 353 | kernel/signal.c | if (current->pid == 1) |
current | 360 | kernel/signal.c | if (current->flags & PF_PTRACED) |
current | 362 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 363 | kernel/signal.c | current->exit_code = signr; |
current | 364 | kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 366 | kernel/signal.c | notify_parent(current); |
current | 376 | kernel/signal.c | current->signal |= _S(signr & 0x7f); |
current | 403 | kernel/signal.c | sa = current->sigaction; |
current | 418 | kernel/signal.c | current->blocked |= sa->sa_mask; |
current | 423 | kernel/signal.c | current->tss.trap_no = current->tss.error_code = 0; |
current | 37 | kernel/sys.c | if (!who && p == current) |
current | 42 | kernel/sys.c | who = current->pgrp; |
current | 46 | kernel/sys.c | who = current->uid; |
current | 67 | kernel/sys.c | if ((*p)->uid != current->euid && |
current | 68 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
current | 133 | kernel/sys.c | if (!current->vm86_info) { |
current | 137 | kernel/sys.c | memcpy_tofs(&(current->vm86_info->regs),regs,sizeof(*regs)); |
current | 138 | kernel/sys.c | put_fs_long(current->screen_bitmap,&(current->vm86_info->screen_bitmap)); |
current | 139 | kernel/sys.c | stack = current->tss.esp0; |
current | 140 | kernel/sys.c | current->tss.esp0 = current->saved_kernel_stack; |
current | 141 | kernel/sys.c | current->saved_kernel_stack = 0; |
current | 170 | kernel/sys.c | if (current->saved_kernel_stack) |
current | 188 | kernel/sys.c | current->saved_kernel_stack = current->tss.esp0; |
current | 189 | kernel/sys.c | current->tss.esp0 = (unsigned long) pt_regs; |
current | 190 | kernel/sys.c | current->vm86_info = v86; |
current | 191 | kernel/sys.c | current->screen_bitmap = info.screen_bitmap; |
current | 193 | kernel/sys.c | mark_screen_rdonly(current); |
current | 256 | kernel/sys.c | int old_rgid = current->gid; |
current | 259 | kernel/sys.c | if ((current->egid==rgid) || |
current | 262 | kernel/sys.c | current->gid = rgid; |
current | 268 | kernel/sys.c | (current->egid == egid) || |
current | 270 | kernel/sys.c | current->egid = egid; |
current | 271 | kernel/sys.c | current->sgid = egid; |
current | 273 | kernel/sys.c | current->gid = old_rgid; |
current | 286 | kernel/sys.c | current->gid = current->egid = current->sgid = gid; |
current | 287 | kernel/sys.c | else if ((gid == current->gid) || (gid == current->sgid)) |
current | 288 | kernel/sys.c | current->egid = gid; |
current | 339 | kernel/sys.c | int old_ruid = current->uid; |
current | 342 | kernel/sys.c | if ((current->euid==ruid) || |
current | 345 | kernel/sys.c | current->uid = ruid; |
current | 351 | kernel/sys.c | (current->euid == euid) || |
current | 353 | kernel/sys.c | current->euid = euid; |
current | 354 | kernel/sys.c | current->suid = euid; |
current | 356 | kernel/sys.c | current->uid = old_ruid; |
current | 377 | kernel/sys.c | current->uid = current->euid = current->suid = uid; |
current | 378 | kernel/sys.c | else if ((uid == current->uid) || (uid == current->suid)) |
current | 379 | kernel/sys.c | current->euid = uid; |
current | 391 | kernel/sys.c | put_fs_long(current->utime,(unsigned long *)&tbuf->tms_utime); |
current | 392 | kernel/sys.c | put_fs_long(current->stime,(unsigned long *)&tbuf->tms_stime); |
current | 393 | kernel/sys.c | put_fs_long(current->cutime,(unsigned long *)&tbuf->tms_cutime); |
current | 394 | kernel/sys.c | put_fs_long(current->cstime,(unsigned long *)&tbuf->tms_cstime); |
current | 405 | kernel/sys.c | if (brk < current->end_code) |
current | 406 | kernel/sys.c | return current->brk; |
current | 408 | kernel/sys.c | oldbrk = PAGE_ALIGN(current->brk); |
current | 410 | kernel/sys.c | return current->brk = brk; |
current | 415 | kernel/sys.c | if (brk <= current->brk) { |
current | 416 | kernel/sys.c | current->brk = brk; |
current | 423 | kernel/sys.c | rlim = current->rlim[RLIMIT_DATA].rlim_cur; |
current | 426 | kernel/sys.c | if (brk - current->end_code > rlim || brk >= current->start_stack - 16384) |
current | 427 | kernel/sys.c | return current->brk; |
current | 439 | kernel/sys.c | return current->brk; |
current | 441 | kernel/sys.c | freepages += current->rss; |
current | 444 | kernel/sys.c | return current->brk; |
current | 449 | kernel/sys.c | current->brk = brk; |
current | 473 | kernel/sys.c | pid = current->pid; |
current | 485 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
current | 486 | kernel/sys.c | if (p->session != current->session) |
current | 490 | kernel/sys.c | } else if (p != current) |
current | 498 | kernel/sys.c | tmp->session == current->session) |
current | 514 | kernel/sys.c | return current->pgrp; |
current | 524 | kernel/sys.c | return current->pgrp; |
current | 529 | kernel/sys.c | if (current->leader) |
current | 531 | kernel/sys.c | current->leader = 1; |
current | 532 | kernel/sys.c | current->session = current->pgrp = current->pid; |
current | 533 | kernel/sys.c | current->tty = -1; |
current | 534 | kernel/sys.c | return current->pgrp; |
current | 549 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (current->groups[i] != NOGROUP) ; i++) { |
current | 554 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
current | 569 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
current | 572 | kernel/sys.c | current->groups[i] = NOGROUP; |
current | 580 | kernel/sys.c | if (grp == current->egid) |
current | 584 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
current | 586 | kernel/sys.c | if (current->groups[i] == grp) |
current | 694 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_cur, |
current | 696 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_max, |
current | 707 | kernel/sys.c | old_rlim = current->rlim + resource; |
current | 774 | kernel/sys.c | return getrusage(current, who, ru); |
current | 779 | kernel/sys.c | int old = current->umask; |
current | 781 | kernel/sys.c | current->umask = mask & S_IRWXUGO; |
current | 36 | kernel/traps.c | if (signr == SIGTRAP && current->flags & PF_PTRACED) \ |
current | 37 | kernel/traps.c | current->blocked &= ~(1 << (SIGTRAP-1)); \ |
current | 104 | kernel/traps.c | printk("Pid: %d, process nr: %d (%s)\nStack: ", current->pid, 0xffff & i, current->comm); |
current | 114 | kernel/traps.c | DO_ERROR( 0, SIGFPE, "divide error", divide_error, current) |
current | 115 | kernel/traps.c | DO_ERROR( 3, SIGTRAP, "int3", int3, current) |
current | 116 | kernel/traps.c | DO_ERROR( 4, SIGSEGV, "overflow", overflow, current) |
current | 117 | kernel/traps.c | DO_ERROR( 5, SIGSEGV, "bounds", bounds, current) |
current | 118 | kernel/traps.c | DO_ERROR( 6, SIGILL, "invalid operand", invalid_op, current) |
current | 119 | kernel/traps.c | DO_ERROR( 7, SIGSEGV, "device not available", device_not_available, current) |
current | 120 | kernel/traps.c | DO_ERROR( 8, SIGSEGV, "double fault", double_fault, current) |
current | 122 | kernel/traps.c | DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS, current) |
current | 123 | kernel/traps.c | DO_ERROR(11, SIGSEGV, "segment not present", segment_not_present, current) |
current | 124 | kernel/traps.c | DO_ERROR(12, SIGSEGV, "stack segment", stack_segment, current) |
current | 125 | kernel/traps.c | DO_ERROR(13, SIGSEGV, "general protection", general_protection, current) |
current | 126 | kernel/traps.c | DO_ERROR(15, SIGSEGV, "reserved", reserved, current) |
current | 127 | kernel/traps.c | DO_ERROR(17, SIGSEGV, "alignment check", alignment_check, current) |
current | 137 | kernel/traps.c | if (current->flags & PF_PTRACED) |
current | 138 | kernel/traps.c | current->blocked &= ~(1 << (SIGTRAP-1)); |
current | 139 | kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 140 | kernel/traps.c | current->tss.trap_no = 1; |
current | 141 | kernel/traps.c | current->tss.error_code = error_code; |
current | 175 | mm/memory.c | if (tsk == current) |
current | 198 | mm/memory.c | pg_dir = current->tss.cr3; |
current | 217 | mm/memory.c | old_pg_dir = current->tss.cr3; |
current | 283 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
current | 308 | mm/memory.c | if (current->rss > 0) |
current | 309 | mm/memory.c | --current->rss; |
current | 341 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
current | 368 | mm/memory.c | if (current->rss > 0) |
current | 369 | mm/memory.c | --current->rss; |
current | 403 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
current | 430 | mm/memory.c | if (current->rss > 0) |
current | 431 | mm/memory.c | --current->rss; |
current | 452 | mm/memory.c | ++current->rss; |
current | 634 | mm/memory.c | if (user_esp && tsk == current) { |
current | 635 | mm/memory.c | current->tss.cr2 = address; |
current | 636 | mm/memory.c | current->tss.error_code = error_code; |
current | 637 | mm/memory.c | current->tss.trap_no = 14; |
current | 661 | mm/memory.c | do_wp_page(1,start,current,0); |
current | 817 | mm/memory.c | oom(current); |
current | 860 | mm/memory.c | if (tsk != current) |
current | 871 | mm/memory.c | current->tss.error_code = error_code; |
current | 872 | mm/memory.c | current->tss.trap_no = 14; |
current | 899 | mm/memory.c | current->screen_bitmap |= 1 << bit; |
current | 904 | mm/memory.c | do_wp_page(error_code, address, current, user_esp); |
current | 906 | mm/memory.c | do_no_page(error_code, address, current, user_esp); |
current | 1166 | mm/memory.c | oom(current); |
current | 1183 | mm/memory.c | oom(current); |
current | 40 | mm/mmap.c | (PAGE_ALIGN(addr) < current->start_code + current->end_code) |
current | 89 | mm/mmap.c | for (vmm = current->mmap ; vmm ; vmm = vmm->vm_next) { |
current | 132 | mm/mmap.c | if (!current->errno) |
current | 133 | mm/mmap.c | current->errno = -error; |
current | 149 | mm/mmap.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 219 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 226 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 262 | mm/mmap.c | npp = ¤t->mmap; |
current | 339 | mm/mmap.c | mpnt->vm_task = current; |
current | 348 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 349 | mm/mmap.c | merge_segments(current->mmap, NULL, NULL); |
current | 458 | mm/mmap.c | mpnt->vm_task = current; |
current | 466 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 467 | mm/mmap.c | merge_segments(current->mmap, ignoff_mergep, NULL); |
current | 216 | mm/swap.c | oom(current); |
current | 98 | net/inet/datagram.c | if (current->signal & ~current->blocked) |
current | 204 | net/inet/raw.c | if (current->signal & ~current->blocked) { |
current | 467 | net/inet/sock.c | if (!suser() && current->pgrp != -arg && |
current | 468 | net/inet/sock.c | current->pid != arg) return(-EPERM); |
current | 981 | net/inet/sock.c | current->timeout = jiffies + HZ*sk->lingertime; |
current | 982 | net/inet/sock.c | while(sk->state != TCP_CLOSE && current->timeout>0) { |
current | 984 | net/inet/sock.c | if (current->signal & ~current->blocked) { |
current | 989 | net/inet/sock.c | current->timeout=0; |
current | 994 | net/inet/sock.c | current->timeout=0; |
current | 1145 | net/inet/sock.c | if (current->signal & ~current->blocked) { |
current | 1224 | net/inet/sock.c | if (current->signal & ~current->blocked) { |
current | 1350 | net/inet/sock.c | send_sig(SIGPIPE, current, 1); |
current | 1378 | net/inet/sock.c | send_sig(SIGPIPE, current, 1); |
current | 1406 | net/inet/sock.c | send_sig(SIGPIPE, current, 1); |
current | 868 | net/inet/tcp.c | send_sig(SIGPIPE, current, 0); |
current | 885 | net/inet/tcp.c | if (current->signal & ~current->blocked) { |
current | 994 | net/inet/tcp.c | if (current->signal & ~current->blocked) { |
current | 1251 | net/inet/tcp.c | struct wait_queue wait = { current, NULL }; |
current | 1286 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 1289 | net/inet/tcp.c | current->state = TASK_INTERRUPTIBLE; |
current | 1295 | net/inet/tcp.c | current->state = TASK_RUNNING; |
current | 1305 | net/inet/tcp.c | struct wait_queue wait = { current, NULL }; |
current | 1347 | net/inet/tcp.c | current->state = TASK_INTERRUPTIBLE; |
current | 1398 | net/inet/tcp.c | if (current->signal & ~current->blocked) { |
current | 1436 | net/inet/tcp.c | current->state = TASK_RUNNING; |
current | 2935 | net/inet/tcp.c | if (current->signal & ~current->blocked) { |
current | 107 | net/socket.c | if (!current->filp[fd]) break; |
current | 112 | net/socket.c | FD_CLR(fd, ¤t->close_on_exec); |
current | 113 | net/socket.c | current->filp[fd] = file; |
current | 161 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) return(NULL); |
current | 197 | net/socket.c | SOCK_INODE(sock)->i_uid = current->euid; |
current | 198 | net/socket.c | SOCK_INODE(sock)->i_gid = current->egid; |
current | 212 | net/socket.c | if (current->signal & ~current->blocked) { |
current | 543 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL) |
current | 565 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL) |
current | 591 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 646 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->filp[fd]) == NULL) |
current | 681 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL) |
current | 694 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->filp[fd] == NULL) |
current | 711 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 730 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 749 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 768 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 788 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 807 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 824 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->filp[fd]) == NULL)) |
current | 539 | net/unix/sock.c | if (current->signal & ~current->blocked) { |
current | 617 | net/unix/sock.c | if (current->signal & ~current->blocked) { |
current | 634 | net/unix/sock.c | send_sig(SIGKILL, current, 1); |
current | 676 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |
current | 687 | net/unix/sock.c | if (current->signal & ~current->blocked) { |
current | 693 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |
current | 710 | net/unix/sock.c | send_sig(SIGKILL, current, 1); |
current | 719 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |