tag | line | file | source code |
current | 156 | drivers/FPU-emu/fpu_entry.c | if (!current->used_math) |
current | 167 | drivers/FPU-emu/fpu_entry.c | current->used_math = 1; |
current | 220 | drivers/FPU-emu/fpu_entry.c | if (current->flags & PF_PTRACED) |
current | 308 | drivers/FPU-emu/fpu_entry.c | current->tss.trap_no = 16; |
current | 309 | drivers/FPU-emu/fpu_entry.c | current->tss.error_code = 0; |
current | 310 | drivers/FPU-emu/fpu_entry.c | send_sig(SIGFPE, current, 1); |
current | 683 | drivers/FPU-emu/fpu_entry.c | current->tss.trap_no = 16; |
current | 684 | drivers/FPU-emu/fpu_entry.c | current->tss.error_code = 0; |
current | 685 | drivers/FPU-emu/fpu_entry.c | send_sig(signal,current,1); |
current | 22 | drivers/FPU-emu/fpu_system.h | #define LDT_DESCRIPTOR(s) (current->ldt[(s) >> 3]) |
current | 35 | drivers/FPU-emu/fpu_system.h | #define I387 (current->tss.i387) |
current | 314 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 315 | drivers/block/cdu31a.c | current->timeout = jiffies; |
current | 484 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 485 | drivers/block/cdu31a.c | current->timeout = jiffies + 200; |
current | 885 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 886 | drivers/block/cdu31a.c | current->timeout = jiffies + 10; |
current | 916 | drivers/block/cdu31a.c | if (current != has_cd_task) /* Allow recursive calls to this routine */ |
current | 921 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 930 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 974 | drivers/block/cdu31a.c | current->state = TASK_INTERRUPTIBLE; |
current | 975 | drivers/block/cdu31a.c | current->timeout = jiffies + 10; /* Wait .1 seconds on retries */ |
current | 1153 | drivers/block/cdu31a.c | if (current->signal & ~current->blocked) |
current | 1159 | drivers/block/cdu31a.c | has_cd_task = current; |
current | 1456 | drivers/block/floppy.c | if (current->pid) |
current | 623 | drivers/block/sbpcd.c | current->state = TASK_INTERRUPTIBLE; |
current | 624 | drivers/block/sbpcd.c | current->timeout = jiffies + jifs; |
current | 755 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 783 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 813 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 875 | drivers/block/sbpcd.c | if (current == task[0]) |
current | 2052 | drivers/char/console.c | struct wait_queue wait = { current, NULL }; |
current | 2061 | drivers/char/console.c | current->state = TASK_INTERRUPTIBLE; |
current | 2073 | drivers/char/console.c | current->state = TASK_RUNNING; |
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 | 592 | drivers/char/n_tty.c | return ((current->blocked & (1<<(sig-1))) || |
current | 593 | drivers/char/n_tty.c | (current->sigaction[sig-1].sa_handler == SIG_IGN)); |
current | 742 | drivers/char/n_tty.c | struct wait_queue wait = { current, NULL }; |
current | 759 | drivers/char/n_tty.c | current->tty == tty) { |
current | 762 | drivers/char/n_tty.c | else if (current->pgrp != tty->pgrp) { |
current | 764 | drivers/char/n_tty.c | is_orphaned_pgrp(current->pgrp)) |
current | 766 | drivers/char/n_tty.c | kill_pg(current->pgrp, SIGTTIN, 1); |
current | 773 | drivers/char/n_tty.c | current->timeout = (unsigned long) -1; |
current | 778 | drivers/char/n_tty.c | current->timeout = (unsigned long) -1; |
current | 786 | drivers/char/n_tty.c | current->timeout = time + jiffies; |
current | 789 | drivers/char/n_tty.c | current->timeout = 0; |
current | 807 | drivers/char/n_tty.c | current->state = TASK_INTERRUPTIBLE; |
current | 820 | drivers/char/n_tty.c | if (!current->timeout) |
current | 826 | drivers/char/n_tty.c | if (current->signal & ~current->blocked) { |
current | 833 | drivers/char/n_tty.c | current->state = TASK_RUNNING; |
current | 890 | drivers/char/n_tty.c | current->timeout = time + jiffies; |
current | 897 | drivers/char/n_tty.c | current->state = TASK_RUNNING; |
current | 898 | drivers/char/n_tty.c | current->timeout = 0; |
current | 905 | drivers/char/n_tty.c | struct wait_queue wait = { current, NULL }; |
current | 919 | drivers/char/n_tty.c | current->state = TASK_INTERRUPTIBLE; |
current | 920 | drivers/char/n_tty.c | if (current->signal & ~current->blocked) { |
current | 950 | 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 | 1573 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1574 | drivers/char/serial.c | current->timeout = jiffies + duration; |
current | 1809 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1810 | drivers/char/serial.c | current->timeout = jiffies + info->close_delay; |
current | 1846 | drivers/char/serial.c | struct wait_queue wait = { current, NULL }; |
current | 1875 | drivers/char/serial.c | (info->session != current->session)) |
current | 1879 | drivers/char/serial.c | (info->pgrp != current->pgrp)) |
current | 1918 | drivers/char/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 1936 | drivers/char/serial.c | if (current->signal & ~current->blocked) { |
current | 1946 | drivers/char/serial.c | current->state = TASK_RUNNING; |
current | 2015 | drivers/char/serial.c | info->session = current->session; |
current | 2016 | drivers/char/serial.c | info->pgrp = current->pgrp; |
current | 753 | drivers/char/tpqic02.c | current->timeout = jiffies + 30; /* nap 0.30 sec between checks, */ |
current | 754 | drivers/char/tpqic02.c | current->state = TASK_INTERRUPTIBLE; |
current | 237 | drivers/char/tty_io.c | if (current->tty != tty) |
current | 243 | drivers/char/tty_io.c | if (current->pgrp == tty->pgrp) |
current | 247 | drivers/char/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 249 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp,SIGTTOU,1); |
current | 403 | drivers/char/tty_io.c | struct tty_struct *tty = current->tty; |
current | 417 | drivers/char/tty_io.c | if (p->session == current->session) |
current | 437 | drivers/char/tty_io.c | return (current->signal & ~current->blocked) ? -1 : 0; |
current | 650 | drivers/char/tty_io.c | (current->tty == tty) && |
current | 651 | drivers/char/tty_io.c | (tty->pgrp != current->pgrp)) |
current | 652 | drivers/char/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
current | 655 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp, SIGTTIN, 1); |
current | 686 | drivers/char/tty_io.c | (current->tty == tty) && (tty->pgrp != current->pgrp)) { |
current | 687 | drivers/char/tty_io.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 690 | drivers/char/tty_io.c | (void) kill_pg(current->pgrp, SIGTTOU, 1); |
current | 1069 | drivers/char/tty_io.c | if (!current->tty) |
current | 1071 | drivers/char/tty_io.c | device = current->tty->device; |
current | 1105 | drivers/char/tty_io.c | if (current->signal & ~current->blocked) |
current | 1115 | drivers/char/tty_io.c | current->leader && |
current | 1116 | drivers/char/tty_io.c | !current->tty && |
current | 1118 | drivers/char/tty_io.c | current->tty = tty; |
current | 1119 | drivers/char/tty_io.c | tty->session = current->session; |
current | 1120 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
current | 1243 | drivers/char/tty_io.c | if ((current->tty != tty) && !suser()) |
current | 1295 | drivers/char/tty_io.c | if (current->tty != tty) |
current | 1297 | drivers/char/tty_io.c | if (current->leader) |
current | 1299 | drivers/char/tty_io.c | current->tty = NULL; |
current | 1302 | drivers/char/tty_io.c | if (current->leader && |
current | 1303 | drivers/char/tty_io.c | (current->session == tty->session)) |
current | 1309 | drivers/char/tty_io.c | if (!current->leader || current->tty) |
current | 1328 | drivers/char/tty_io.c | current->tty = tty; |
current | 1329 | drivers/char/tty_io.c | tty->session = current->session; |
current | 1330 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
current | 1337 | drivers/char/tty_io.c | if (tty == real_tty && current->tty != real_tty) |
current | 1349 | drivers/char/tty_io.c | if (!current->tty || |
current | 1350 | drivers/char/tty_io.c | (current->tty != real_tty) || |
current | 1351 | drivers/char/tty_io.c | (real_tty->session != current->session)) |
current | 1356 | drivers/char/tty_io.c | if (session_of_pgrp(pgrp) != current->session) |
current | 43 | drivers/char/tty_ioctl.c | struct wait_queue wait = { current, NULL }; |
current | 49 | drivers/char/tty_ioctl.c | current->counter = 0; /* make us low-priority */ |
current | 51 | drivers/char/tty_ioctl.c | current->timeout = timeout + jiffies; |
current | 53 | drivers/char/tty_ioctl.c | current->timeout = (unsigned) -1; |
current | 55 | drivers/char/tty_ioctl.c | current->state = TASK_INTERRUPTIBLE; |
current | 56 | drivers/char/tty_ioctl.c | if (current->signal & ~current->blocked) |
current | 61 | drivers/char/tty_ioctl.c | } while (current->timeout); |
current | 62 | drivers/char/tty_ioctl.c | current->state = TASK_RUNNING; |
current | 453 | drivers/char/vt.c | vt_cons[console].vt_pid = current->pid; |
current | 1283 | drivers/net/ppp.c | current->timeout = 0; |
current | 1286 | drivers/net/ppp.c | if (current->signal & ~current->blocked) |
current | 1343 | drivers/net/ppp.c | current->timeout = 0; |
current | 1346 | drivers/net/ppp.c | if (current->signal & ~current->blocked) |
current | 1484 | drivers/net/ppp.c | ppp->inp_sig_pid = current->pid; |
current | 3086 | drivers/scsi/53c7,8xx.c | cmd = (struct NCR53c7x0_cmd *) hostdata->current; |
current | 1203 | drivers/scsi/53c7,8xx.h | volatile struct NCR53c7x0_cmd *current; /* currently connected |
current | 745 | drivers/scsi/scsi.c | if ((unsigned long) &SCpnt < current->kernel_stack_page) |
current | 582 | drivers/scsi/scsi.h | struct wait_queue wait = { current, NULL}; \ |
current | 585 | drivers/scsi/scsi.h | current->state = TASK_UNINTERRUPTIBLE; \ |
current | 591 | drivers/scsi/scsi.h | current->state = TASK_RUNNING; \ |
current | 817 | drivers/scsi/sd.c | if (current == task[0]){ |
current | 890 | drivers/scsi/sd.c | if (current == task[0]) |
current | 95 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 106 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 138 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 173 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 239 | drivers/scsi/sg.c | if (current->signal & ~current->blocked) |
current | 722 | 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 | 113 | fs/buffer.c | struct wait_queue wait = { current, NULL }; |
current | 118 | fs/buffer.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 125 | fs/buffer.c | current->state = TASK_RUNNING; |
current | 241 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
current | 1010 | fs/buffer.c | ++current->mm->min_flt; |
current | 1068 | fs/buffer.c | ++current->mm->maj_flt; |
current | 1127 | fs/buffer.c | ++current->mm->maj_flt; |
current | 1820 | fs/buffer.c | if (current->signal & (1 << (SIGKILL-1))) { |
current | 1824 | fs/buffer.c | current->signal = 0; |
current | 110 | fs/exec.c | fpp = current->files->fd; |
current | 165 | fs/exec.c | char corefile[6+sizeof(current->comm)]; |
current | 170 | fs/exec.c | if (!current->dumpable) |
current | 172 | fs/exec.c | current->dumpable = 0; |
current | 175 | fs/exec.c | if (current->rlim[RLIMIT_CORE].rlim_cur < PAGE_SIZE) |
current | 181 | fs/exec.c | memcpy(corefile+5,current->comm,sizeof(current->comm)); |
current | 210 | fs/exec.c | dump.u_tsize = ((unsigned long) current->mm->end_code) >> 12; |
current | 211 | fs/exec.c | dump.u_dsize = ((unsigned long) (current->mm->brk + (PAGE_SIZE-1))) >> 12; |
current | 214 | fs/exec.c | for(i=0; i<8; i++) dump.u_debugreg[i] = current->debugreg[i]; |
current | 220 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 224 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 226 | fs/exec.c | strncpy(dump.u_comm, current->comm, sizeof(current->comm)); |
current | 233 | fs/exec.c | if ((dump.u_fpvalid = current->used_math) != 0) { |
current | 234 | fs/exec.c | if (last_task_used_math == current) |
current | 237 | fs/exec.c | memcpy(&dump.i387,¤t->tss.i387.hard,sizeof(dump.i387)); |
current | 265 | fs/exec.c | DUMP_WRITE(current,sizeof(*current)); |
current | 290 | fs/exec.c | file = current->files->fd[fd]; |
current | 319 | fs/exec.c | mpnt->vm_task = current; |
current | 329 | fs/exec.c | insert_vm_struct(current, mpnt); |
current | 341 | fs/exec.c | current->mm->arg_start = (unsigned long) p; |
current | 347 | fs/exec.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
current | 353 | fs/exec.c | current->mm->env_end = (unsigned long) p; |
current | 447 | fs/exec.c | current->mm->start_code = code_base; |
current | 452 | fs/exec.c | current->mm->rss++; |
current | 453 | fs/exec.c | put_dirty_page(current,page[i],data_base); |
current | 515 | fs/exec.c | current->dumpable = 1; |
current | 522 | fs/exec.c | current->comm[i++] = ch; |
current | 524 | fs/exec.c | current->comm[i] = '\0'; |
current | 525 | fs/exec.c | if (current->shm) |
current | 529 | fs/exec.c | mpnt = current->mm->mmap; |
current | 530 | fs/exec.c | current->mm->mmap = NULL; |
current | 542 | fs/exec.c | if (current->ldt) { |
current | 543 | fs/exec.c | free_page((unsigned long) current->ldt); |
current | 544 | fs/exec.c | current->ldt = NULL; |
current | 546 | fs/exec.c | if (task[i] == current) { |
current | 554 | fs/exec.c | for (i=0 ; i<8 ; i++) current->debugreg[i] = 0; |
current | 556 | fs/exec.c | if (bprm->e_uid != current->euid || bprm->e_gid != current->egid || |
current | 558 | fs/exec.c | current->dumpable = 0; |
current | 559 | fs/exec.c | current->signal = 0; |
current | 561 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
current | 562 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
current | 563 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
current | 564 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
current | 567 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
current | 569 | fs/exec.c | FD_ZERO(¤t->files->close_on_exec); |
current | 570 | fs/exec.c | clear_page_tables(current); |
current | 571 | fs/exec.c | if (last_task_used_math == current) |
current | 573 | fs/exec.c | current->used_math = 0; |
current | 614 | fs/exec.c | if (IS_NOSUID(bprm.inode) && (((i & S_ISUID) && bprm.inode->i_uid != current-> |
current | 620 | fs/exec.c | if (current->flags & PF_PTRACED) { |
current | 621 | fs/exec.c | bprm.e_uid = current->euid; |
current | 622 | fs/exec.c | bprm.e_gid = current->egid; |
current | 624 | fs/exec.c | bprm.e_uid = (i & S_ISUID) ? bprm.inode->i_uid : current->euid; |
current | 625 | fs/exec.c | bprm.e_gid = (i & S_ISGID) ? bprm.inode->i_gid : current->egid; |
current | 627 | fs/exec.c | if (current->euid == bprm.inode->i_uid) |
current | 733 | fs/exec.c | current->did_exec = 1; |
current | 795 | fs/exec.c | current->personality = PER_LINUX; |
current | 811 | fs/exec.c | current->mm->brk = ex.a_bss + |
current | 812 | fs/exec.c | (current->mm->start_brk = |
current | 813 | fs/exec.c | (current->mm->end_data = ex.a_data + |
current | 814 | fs/exec.c | (current->mm->end_code = ex.a_text + |
current | 815 | fs/exec.c | (current->mm->start_code = N_TXTADDR(ex))))); |
current | 816 | fs/exec.c | current->mm->rss = 0; |
current | 817 | fs/exec.c | current->mm->mmap = NULL; |
current | 818 | fs/exec.c | current->suid = current->euid = current->fsuid = bprm->e_uid; |
current | 819 | fs/exec.c | current->sgid = current->egid = current->fsgid = bprm->e_gid; |
current | 833 | fs/exec.c | file = current->files->fd[fd]; |
current | 852 | fs/exec.c | send_sig(SIGSEGV, current, 0); |
current | 863 | fs/exec.c | send_sig(SIGSEGV, current, 0); |
current | 868 | fs/exec.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 869 | fs/exec.c | (*current->exec_domain->use_count)--; |
current | 870 | fs/exec.c | if (current->binfmt && current->binfmt->use_count) |
current | 871 | fs/exec.c | (*current->binfmt->use_count)--; |
current | 872 | fs/exec.c | current->exec_domain = lookup_exec_domain(current->personality); |
current | 873 | fs/exec.c | current->binfmt = &aout_format; |
current | 874 | fs/exec.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 875 | fs/exec.c | (*current->exec_domain->use_count)++; |
current | 876 | fs/exec.c | if (current->binfmt && current->binfmt->use_count) |
current | 877 | fs/exec.c | (*current->binfmt->use_count)++; |
current | 879 | fs/exec.c | set_brk(current->mm->start_brk, current->mm->brk); |
current | 885 | fs/exec.c | current->personality != PER_LINUX); |
current | 886 | fs/exec.c | current->mm->start_stack = p; |
current | 889 | fs/exec.c | if (current->flags & PF_PTRACED) |
current | 890 | fs/exec.c | send_sig(SIGTRAP, current, 0); |
current | 905 | fs/exec.c | file = current->files->fd[fd]; |
current | 292 | fs/ext/freelists.c | inode->i_uid = current->fsuid; |
current | 293 | fs/ext/freelists.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 364 | fs/ext/namei.c | inode->i_uid = current->fsuid; |
current | 451 | fs/ext/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
current | 548 | fs/ext/namei.c | current->fsuid != inode->i_uid && |
current | 549 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
current | 602 | fs/ext/namei.c | current->fsuid != inode->i_uid && |
current | 603 | fs/ext/namei.c | current->fsuid != dir->i_uid) |
current | 780 | fs/ext/namei.c | current->counter = 0; |
current | 794 | fs/ext/namei.c | current->fsuid != old_inode->i_uid && |
current | 795 | fs/ext/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 815 | fs/ext/namei.c | current->fsuid != new_inode->i_uid && |
current | 816 | 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 | 42 | fs/ext2/acl.c | else if (current->fsuid == inode->i_uid) |
current | 452 | fs/ext2/ialloc.c | inode->i_uid = current->fsuid; |
current | 460 | fs/ext2/ialloc.c | inode->i_gid = current->fsgid; |
current | 200 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 279 | fs/ext2/inode.c | (current->rlim[RLIMIT_FSIZE].rlim_cur >> |
current | 43 | fs/ext2/ioctl.c | if ((current->fsuid != inode->i_uid) && !fsuser()) |
current | 65 | fs/ext2/ioctl.c | if ((current->fsuid != inode->i_uid) && !fsuser()) |
current | 425 | fs/ext2/namei.c | inode->i_uid = current->fsuid; |
current | 516 | fs/ext2/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask); |
current | 621 | fs/ext2/namei.c | current->counter = 0; |
current | 626 | fs/ext2/namei.c | current->fsuid != inode->i_uid && |
current | 627 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
current | 704 | fs/ext2/namei.c | current->counter = 0; |
current | 709 | fs/ext2/namei.c | current->fsuid != inode->i_uid && |
current | 710 | fs/ext2/namei.c | current->fsuid != dir->i_uid) |
current | 933 | fs/ext2/namei.c | current->counter = 0; |
current | 948 | fs/ext2/namei.c | current->fsuid != old_inode->i_uid && |
current | 949 | fs/ext2/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 981 | fs/ext2/namei.c | current->fsuid != new_inode->i_uid && |
current | 982 | fs/ext2/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 60 | fs/ext2/symlink.c | dir = current->fs->root; |
current | 72 | fs/ext2/symlink.c | if (current->link_count > 5) { |
current | 86 | fs/ext2/symlink.c | current->link_count++; |
current | 88 | fs/ext2/symlink.c | current->link_count--; |
current | 344 | 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 | 70 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 76 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
current | 79 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
current | 81 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 31 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 64 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 544 | fs/hpfs/hpfs_fs.c | *uid = current->uid; |
current | 545 | fs/hpfs/hpfs_fs.c | *gid = current->gid; |
current | 546 | fs/hpfs/hpfs_fs.c | *umask = current->fs->umask; |
current | 417 | fs/inode.c | inode->i_uid = current->fsuid; |
current | 418 | fs/inode.c | inode->i_gid = current->fsgid; |
current | 491 | fs/inode.c | struct wait_queue wait = { current, NULL }; |
current | 495 | fs/inode.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 501 | fs/inode.c | current->state = TASK_RUNNING; |
current | 62 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 66 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
current | 70 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 52 | fs/isofs/symlink.c | dir = current->fs->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 | 66 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 110 | fs/locks.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
current | 155 | 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 | 478 | fs/locks.c | tmp->fl_owner = current; /* FIXME: needed? */ |
current | 216 | fs/minix/bitmap.c | inode->i_uid = current->fsuid; |
current | 217 | fs/minix/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 268 | fs/minix/namei.c | inode->i_uid = current->fsuid; |
current | 352 | fs/minix/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
current | 447 | fs/minix/namei.c | current->fsuid != inode->i_uid && |
current | 448 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
current | 508 | fs/minix/namei.c | current->counter = 0; |
current | 513 | fs/minix/namei.c | current->fsuid != inode->i_uid && |
current | 514 | fs/minix/namei.c | current->fsuid != dir->i_uid) |
current | 689 | fs/minix/namei.c | current->counter = 0; |
current | 703 | fs/minix/namei.c | current->fsuid != old_inode->i_uid && |
current | 704 | fs/minix/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 734 | fs/minix/namei.c | current->fsuid != new_inode->i_uid && |
current | 735 | fs/minix/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 49 | fs/minix/symlink.c | dir = current->fs->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->fs->umask; |
current | 112 | fs/msdos/misc.c | int count,nr,limit,last,current,sector; |
current | 144 | fs/msdos/misc.c | if ((current = MSDOS_I(inode)->i_start) != 0) { |
current | 145 | fs/msdos/misc.c | cache_lookup(inode,INT_MAX,&last,¤t); |
current | 146 | fs/msdos/misc.c | while (current && current != -1) |
current | 147 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
current | 148 | fs/msdos/misc.c | last = current,-1))) { |
current | 164 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
current | 165 | fs/msdos/misc.c | current++) { |
current | 167 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
current | 171 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
current | 180 | fs/msdos/misc.c | current++; |
current | 459 | fs/msdos/misc.c | int error,current,prev,nr; |
current | 464 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,MSDOS_I(dir)->i_start,MSDOS_DOTDOT, |
current | 467 | fs/msdos/misc.c | return current; |
current | 469 | fs/msdos/misc.c | if (!current) nr = MSDOS_ROOT_INO; |
current | 471 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,&zero,NULL, |
current | 476 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,¤t,&nr,NULL, |
current | 34 | fs/namei.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
current | 111 | fs/namei.c | else if (current->fsuid == inode->i_uid) |
current | 137 | fs/namei.c | if (dir == current->fs->root) { |
current | 197 | fs/namei.c | base = current->fs->pwd; |
current | 202 | fs/namei.c | base = current->fs->root; |
current | 313 | fs/namei.c | mode &= S_IALLUGO & ~current->fs->umask; |
current | 426 | fs/namei.c | mode &= ~current->fs->umask; |
current | 80 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
current | 228 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 263 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 303 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 341 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 384 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 422 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 460 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 493 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 530 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 565 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 601 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 639 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 672 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 726 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 760 | fs/nfs/proc.c | if (!ruid && current->fsuid == 0 && current->uid != 0) { |
current | 795 | fs/nfs/proc.c | *p++ = htonl(ruid ? current->uid : current->fsuid); |
current | 796 | fs/nfs/proc.c | *p++ = htonl(current->egid); |
current | 798 | fs/nfs/proc.c | for (i = 0; i < 16 && i < NGROUPS && current->groups[i] != NOGROUP; i++) |
current | 799 | fs/nfs/proc.c | *p++ = htonl(current->groups[i]); |
current | 86 | fs/nfs/sock.c | old_mask = current->blocked; |
current | 87 | fs/nfs/sock.c | current->blocked |= ~(_S(SIGKILL) |
current | 92 | fs/nfs/sock.c | ? ((current->sigaction[SIGINT - 1].sa_handler == SIG_DFL |
current | 94 | fs/nfs/sock.c | | (current->sigaction[SIGQUIT - 1].sa_handler == SIG_DFL |
current | 108 | fs/nfs/sock.c | current->state = TASK_INTERRUPTIBLE; |
current | 119 | fs/nfs/sock.c | current->timeout = jiffies + timeout; |
current | 122 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 123 | fs/nfs/sock.c | if (current->signal & ~current->blocked) { |
current | 124 | fs/nfs/sock.c | current->timeout = 0; |
current | 128 | fs/nfs/sock.c | if (!current->timeout) { |
current | 148 | fs/nfs/sock.c | current->timeout = 0; |
current | 152 | fs/nfs/sock.c | current->state = TASK_RUNNING; |
current | 215 | fs/nfs/sock.c | current->blocked = old_mask; |
current | 51 | fs/nfs/symlink.c | dir = current->fs->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->files->fd[fd])) |
current | 103 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 137 | fs/open.c | if ((current->fsuid != inode->i_uid) && !fsuser()) { |
current | 145 | fs/open.c | if ((current->fsuid != inode->i_uid) && |
current | 172 | fs/open.c | old_fsuid = current->fsuid; |
current | 173 | fs/open.c | old_fsgid = current->fsgid; |
current | 174 | fs/open.c | current->fsuid = current->uid; |
current | 175 | fs/open.c | current->fsgid = current->gid; |
current | 182 | fs/open.c | current->fsuid = old_fsuid; |
current | 183 | fs/open.c | current->fsgid = old_fsgid; |
current | 203 | fs/open.c | iput(current->fs->pwd); |
current | 204 | fs/open.c | current->fs->pwd = inode; |
current | 213 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 221 | fs/open.c | iput(current->fs->pwd); |
current | 222 | fs/open.c | current->fs->pwd = inode; |
current | 243 | fs/open.c | iput(current->fs->root); |
current | 244 | fs/open.c | current->fs->root = inode; |
current | 253 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 257 | fs/open.c | if ((current->fsuid != inode->i_uid) && !fsuser()) |
current | 279 | fs/open.c | if ((current->fsuid != inode->i_uid) && !fsuser()) { |
current | 307 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 319 | fs/open.c | if ((current->fsuid == inode->i_uid && user == inode->i_uid && |
current | 366 | fs/open.c | if ((current->fsuid == inode->i_uid && user == inode->i_uid && |
current | 416 | fs/open.c | if (!current->files->fd[fd]) |
current | 420 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
current | 424 | fs/open.c | current->files->fd[fd] = f; |
current | 433 | fs/open.c | current->files->fd[fd]=NULL; |
current | 449 | fs/open.c | current->files->fd[fd]=NULL; |
current | 485 | fs/open.c | fcntl_remove_locks(current, filp, fd); |
current | 504 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 505 | fs/open.c | if (!(filp = current->files->fd[fd])) |
current | 507 | fs/open.c | current->files->fd[fd] = NULL; |
current | 520 | fs/open.c | if (current->tty) |
current | 521 | fs/open.c | tty_vhangup(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->files->fd[i]) { |
current | 398 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
current | 402 | fs/pipe.c | current->files->fd[fd[0]]=NULL; |
current | 409 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
current | 410 | fs/pipe.c | current->files->fd[fd[1]] = NULL; |
current | 267 | fs/proc/array.c | if (!p || p == current || p->state == TASK_RUNNING) |
current | 47 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 95 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 106 | fs/proc/mem.c | do_wp_page(0,addr,current,0); |
current | 122 | fs/proc/mem.c | if (current->signal & ~current->blocked) |
current | 186 | fs/proc/mem.c | if (src_vma->vm_end - stmp > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 203 | fs/proc/mem.c | dest_table = PAGE_DIR_OFFSET(current->tss.cr3, dtmp); |
current | 207 | fs/proc/mem.c | if (!*dest_table) { oom(current); *dest_table=BAD_PAGE; } |
current | 102 | fs/proc/root.c | ino = (current->pid << 16) + 2; |
current | 25 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || |
current | 42 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
current | 79 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
current | 114 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
current | 135 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
current | 104 | fs/select.c | if (!current->files->fd[i]) |
current | 106 | fs/select.c | if (!current->files->fd[i]->f_inode) |
current | 123 | fs/select.c | current->state = TASK_INTERRUPTIBLE; |
current | 125 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
current | 130 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
current | 135 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
current | 142 | fs/select.c | if (!count && current->timeout && !(current->signal & ~current->blocked)) { |
current | 148 | fs/select.c | current->state = TASK_RUNNING; |
current | 237 | fs/select.c | current->timeout = timeout; |
current | 239 | fs/select.c | if (current->timeout > jiffies) |
current | 240 | fs/select.c | timeout = current->timeout - jiffies; |
current | 243 | fs/select.c | current->timeout = 0; |
current | 244 | fs/select.c | if (tvp && !(current->personality & STICKY_TIMEOUTS)) { |
current | 252 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
current | 20 | fs/stat.c | current->comm); |
current | 164 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
current | 179 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
current | 188 | fs/super.c | struct wait_queue wait = { current, NULL }; |
current | 192 | fs/super.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 198 | fs/super.c | current->state = TASK_RUNNING; |
current | 526 | fs/super.c | for (vma = current->mm->mmap ; ; ) { |
current | 668 | fs/super.c | current->fs->pwd = inode; |
current | 669 | fs/super.c | current->fs->root = inode; |
current | 138 | fs/sysv/ialloc.c | inode->i_uid = current->fsuid; |
current | 139 | fs/sysv/ialloc.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
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->fsuid; |
current | 354 | fs/sysv/namei.c | inode->i_mode = S_IFDIR | (mode & 0777 & ~current->fs->umask); |
current | 451 | fs/sysv/namei.c | current->fsuid != inode->i_uid && |
current | 452 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
current | 512 | fs/sysv/namei.c | current->counter = 0; |
current | 517 | fs/sysv/namei.c | current->fsuid != inode->i_uid && |
current | 518 | fs/sysv/namei.c | current->fsuid != dir->i_uid) |
current | 697 | fs/sysv/namei.c | current->counter = 0; |
current | 711 | fs/sysv/namei.c | current->fsuid != old_inode->i_uid && |
current | 712 | fs/sysv/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 742 | fs/sysv/namei.c | current->fsuid != new_inode->i_uid && |
current | 743 | fs/sysv/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 56 | fs/sysv/symlink.c | dir = current->fs->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 | 35 | fs/umsdos/check.c | int stack_level = (long)(&pg_dir)-current->kernel_stack_page; |
current | 37 | fs/umsdos/check.c | pg_dir = current->tss.cr3; |
current | 33 | fs/umsdos/ioctl.c | if (current->euid == 0 |
current | 35 | fs/umsdos/namei.c | && dir->u.umsdos_i.u.dir_info.pid != current->pid){ |
current | 89 | fs/umsdos/namei.c | dir->u.umsdos_i.u.dir_info.pid = current->pid; |
current | 108 | fs/umsdos/namei.c | dir1->u.umsdos_i.u.dir_info.pid = current->pid; |
current | 110 | fs/umsdos/namei.c | dir2->u.umsdos_i.u.dir_info.pid = current->pid; |
current | 219 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
current | 221 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
current | 236 | fs/umsdos/namei.c | ,info.fake.fname,current->pid,info.f_pos)); |
current | 263 | fs/umsdos/namei.c | ,info.fake.fname,-ret,current->pid,info.f_pos); |
current | 298 | fs/umsdos/namei.c | if (STACK_MAGIC != *(unsigned long *)current->kernel_stack_page){\ |
current | 300 | fs/umsdos/namei.c | , current->comm,STACK_MAGIC \ |
current | 301 | fs/umsdos/namei.c | ,*(unsigned long *)current->kernel_stack_page \ |
current | 662 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
current | 664 | fs/umsdos/namei.c | ? dir->i_gid : current->fsgid; |
current | 58 | fs/umsdos/symlink.c | if (current->link_count < 5) { |
current | 64 | fs/umsdos/symlink.c | dir = current->fs[1].root; |
current | 83 | fs/umsdos/symlink.c | current->link_count++; |
current | 85 | fs/umsdos/symlink.c | current->link_count--; |
current | 332 | fs/xiafs/bitmap.c | inode->i_uid = current->fsuid; |
current | 333 | fs/xiafs/bitmap.c | inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; |
current | 297 | fs/xiafs/namei.c | inode->i_uid = current->fsuid; |
current | 380 | fs/xiafs/namei.c | inode->i_mode = S_IFDIR | (mode & S_IRWXUGO & ~current->fs->umask); |
current | 500 | fs/xiafs/namei.c | current->fsuid != inode->i_uid && |
current | 501 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
current | 557 | fs/xiafs/namei.c | current->counter = 0; |
current | 562 | fs/xiafs/namei.c | current->fsuid != inode->i_uid && |
current | 563 | fs/xiafs/namei.c | current->fsuid != dir->i_uid) |
current | 733 | fs/xiafs/namei.c | current->fsuid != old_inode->i_uid && |
current | 734 | fs/xiafs/namei.c | current->fsuid != old_dir->i_uid && !fsuser()) |
current | 754 | fs/xiafs/namei.c | current->fsuid != new_inode->i_uid && |
current | 755 | fs/xiafs/namei.c | current->fsuid != new_dir->i_uid && !fsuser()) |
current | 792 | fs/xiafs/namei.c | current->counter=0; |
current | 83 | fs/xiafs/symlink.c | dir = current->fs->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 | 387 | ibcs/binfmt_coff.c | fp = current->files->fd[fd]; |
current | 444 | ibcs/binfmt_coff.c | current->mm->mmap = NULL; |
current | 445 | ibcs/binfmt_coff.c | current->mm->rss = 0; |
current | 458 | ibcs/binfmt_coff.c | current->mm->start_code = text_vaddr & PAGE_MASK; |
current | 459 | ibcs/binfmt_coff.c | current->mm->end_code = text_vaddr + text_size; |
current | 460 | ibcs/binfmt_coff.c | current->mm->end_data = data_vaddr + data_size; |
current | 461 | ibcs/binfmt_coff.c | current->mm->start_brk = |
current | 462 | ibcs/binfmt_coff.c | current->mm->brk = bss_vaddr + bss_size; |
current | 463 | ibcs/binfmt_coff.c | current->suid = |
current | 464 | ibcs/binfmt_coff.c | current->euid = bprm->e_uid; |
current | 465 | ibcs/binfmt_coff.c | current->sgid = |
current | 466 | ibcs/binfmt_coff.c | current->egid = bprm->e_gid; |
current | 467 | ibcs/binfmt_coff.c | current->executable = bprm->inode; /* Store inode for file */ |
current | 471 | ibcs/binfmt_coff.c | current->mm->start_stack = bprm->p; |
current | 557 | ibcs/binfmt_coff.c | send_sig (SIGSEGV, current, 0); /* Generate the error trap */ |
current | 559 | ibcs/binfmt_coff.c | if (current->flags & PF_PTRACED) |
current | 560 | ibcs/binfmt_coff.c | send_sig (SIGTRAP, current, 0); |
current | 759 | ibcs/binfmt_coff.c | file = current->files->fd[fd]; |
current | 65 | ibcs/binfmt_elf.c | mpnt->vm_task = current; |
current | 75 | ibcs/binfmt_elf.c | insert_vm_struct(current, mpnt); |
current | 106 | ibcs/binfmt_elf.c | current->mm->arg_start = (unsigned long) p; |
current | 112 | ibcs/binfmt_elf.c | current->mm->arg_end = current->mm->env_start = (unsigned long) p; |
current | 118 | ibcs/binfmt_elf.c | current->mm->env_end = (unsigned long) p; |
current | 173 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
current | 222 | ibcs/binfmt_elf.c | current->mm->brk = interp_ex->a_bss + |
current | 223 | ibcs/binfmt_elf.c | (current->mm->end_data = interp_ex->a_data + |
current | 224 | ibcs/binfmt_elf.c | (current->mm->end_code = interp_ex->a_text)); |
current | 330 | ibcs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
current | 428 | ibcs/binfmt_elf.c | current->mm->end_data = 0; |
current | 429 | ibcs/binfmt_elf.c | current->mm->end_code = 0; |
current | 430 | ibcs/binfmt_elf.c | current->mm->start_mmap = ELF_START_MMAP; |
current | 431 | ibcs/binfmt_elf.c | current->mm->mmap = NULL; |
current | 436 | ibcs/binfmt_elf.c | current->mm->rss = 0; |
current | 438 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
current | 471 | ibcs/binfmt_elf.c | send_sig(SIGSEGV, current, 0); |
current | 515 | ibcs/binfmt_elf.c | current->personality = PER_LINUX; |
current | 516 | ibcs/binfmt_elf.c | current->lcall7 = no_lcall7; |
current | 517 | ibcs/binfmt_elf.c | current->signal_map = current->signal_invmap = ident_map; |
current | 519 | ibcs/binfmt_elf.c | current->executable = bprm->inode; |
current | 522 | ibcs/binfmt_elf.c | current->start_stack = p = elf_stack - 4; |
current | 533 | ibcs/binfmt_elf.c | current->mm->arg_start += strlen(passed_fileno) + 1; |
current | 534 | ibcs/binfmt_elf.c | current->mm->start_brk = current->mm->brk = elf_brk; |
current | 535 | ibcs/binfmt_elf.c | current->mm->end_code = end_code; |
current | 536 | ibcs/binfmt_elf.c | current->mm->start_code = start_code; |
current | 537 | ibcs/binfmt_elf.c | current->mm->end_data = end_data; |
current | 538 | ibcs/binfmt_elf.c | current->mm->start_stack = bprm->p; |
current | 539 | ibcs/binfmt_elf.c | current->suid = current->euid = bprm->e_uid; |
current | 540 | ibcs/binfmt_elf.c | current->sgid = current->egid = bprm->e_gid; |
current | 544 | ibcs/binfmt_elf.c | current->mm->brk = (elf_bss + 0xfff) & 0xfffff000; |
current | 558 | ibcs/binfmt_elf.c | if (current->flags & PF_PTRACED) |
current | 559 | ibcs/binfmt_elf.c | send_sig(SIGTRAP, current, 0); |
current | 579 | ibcs/binfmt_elf.c | file = current->files->fd[fd]; |
current | 67 | include/linux/kernel.h | #define suser() (current->euid == 0) |
current | 68 | include/linux/kernel.h | #define fsuser() (current->fsuid == 0) |
current | 359 | include/linux/sched.h | extern struct task_struct *current; |
current | 531 | include/linux/sched.h | entry->wait.task = current; |
current | 620 | include/linux/sched.h | :"m" (current->debugreg[register]) \ |
current | 548 | init/main.c | current->fs->root = pseudo_root; |
current | 549 | 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 | 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 | 107 | ipc/shm.c | shp->shm_perm.cuid = shp->shm_perm.uid = current->euid; |
current | 108 | ipc/shm.c | shp->shm_perm.cgid = shp->shm_perm.gid = current->egid; |
current | 111 | ipc/shm.c | shp->shm_cpid = current->pid; |
current | 301 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
current | 302 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
current | 312 | ipc/shm.c | if (suser() || current->euid == shp->shm_perm.uid || |
current | 313 | ipc/shm.c | current->euid == shp->shm_perm.cuid) { |
current | 348 | ipc/shm.c | --current->mm->rss; |
current | 404 | ipc/shm.c | vma->vm_task = current; |
current | 418 | ipc/shm.c | insert_vm_struct(current, vma); |
current | 419 | ipc/shm.c | merge_segments(current->mm->mmap); |
current | 454 | ipc/shm.c | for (shmd = current->shm; shmd; shmd = shmd->task_next) { |
current | 467 | ipc/shm.c | if ((addr > current->mm->start_stack - 16384 - PAGE_SIZE*shp->shm_npages)) |
current | 470 | ipc/shm.c | for (shmd = current->shm; shmd; shmd = shmd->task_next) { |
current | 494 | ipc/shm.c | shmd->task = current; |
current | 510 | ipc/shm.c | shmd->task_next = current->shm; |
current | 511 | ipc/shm.c | current->shm = shmd; |
current | 514 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 546 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 561 | ipc/shm.c | for (shmdp = ¤t->shm; (shmd = *shmdp); shmdp=&shmd->task_next) { |
current | 575 | ipc/shm.c | while (current->shm) |
current | 576 | ipc/shm.c | detach(¤t->shm); |
current | 623 | ipc/shm.c | shp->shm_lpid = current->pid; |
current | 655 | ipc/shm.c | oom(current); |
current | 674 | ipc/shm.c | --current->mm->maj_flt; /* was incremented in do_no_page */ |
current | 677 | ipc/shm.c | current->mm->min_flt++; |
current | 55 | 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 | 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 | 89 | kernel/exit.c | if (p == current) { |
current | 290 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
current | 294 | kernel/exit.c | if (p->pid > 1 && p != current) { |
current | 362 | kernel/exit.c | mpnt = current->mm->mmap; |
current | 363 | kernel/exit.c | current->mm->mmap = NULL; |
current | 378 | kernel/exit.c | current->tss.ldt = 0; |
current | 379 | kernel/exit.c | if (current->ldt) { |
current | 380 | kernel/exit.c | void * ldt = current->ldt; |
current | 381 | kernel/exit.c | current->ldt = NULL; |
current | 385 | kernel/exit.c | free_page_tables(current); |
current | 393 | kernel/exit.c | if (current->files->fd[i]) |
current | 399 | kernel/exit.c | iput(current->fs->pwd); |
current | 400 | kernel/exit.c | current->fs->pwd = NULL; |
current | 401 | kernel/exit.c | iput(current->fs->root); |
current | 402 | kernel/exit.c | current->fs->root = NULL; |
current | 414 | kernel/exit.c | if (current->semun) |
current | 416 | kernel/exit.c | if (current->shm) |
current | 421 | kernel/exit.c | forget_original_parent(current); |
current | 431 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
current | 432 | kernel/exit.c | (current->p_pptr->session == current->session) && |
current | 433 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
current | 434 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
current | 435 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
current | 436 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
current | 439 | kernel/exit.c | notify_parent(current); |
current | 449 | kernel/exit.c | while ((p = current->p_cptr) != NULL) { |
current | 450 | kernel/exit.c | current->p_cptr = p->p_osptr; |
current | 453 | kernel/exit.c | if (task[1] && task[1] != current) |
current | 468 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
current | 469 | kernel/exit.c | (p->session == current->session) && |
current | 476 | kernel/exit.c | if (current->leader) |
current | 478 | kernel/exit.c | if (last_task_used_math == current) |
current | 480 | kernel/exit.c | current->state = TASK_ZOMBIE; |
current | 481 | kernel/exit.c | current->exit_code = code; |
current | 482 | kernel/exit.c | current->mm->rss = 0; |
current | 486 | kernel/exit.c | if (current->exec_domain && current->exec_domain->use_count) |
current | 487 | kernel/exit.c | (*current->exec_domain->use_count)--; |
current | 488 | kernel/exit.c | if (current->binfmt && current->binfmt->use_count) |
current | 489 | kernel/exit.c | (*current->binfmt->use_count)--; |
current | 515 | kernel/exit.c | struct wait_queue wait = { current, NULL }; |
current | 523 | kernel/exit.c | add_wait_queue(¤t->wait_chldexit,&wait); |
current | 526 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
current | 531 | kernel/exit.c | if (p->pgrp != current->pgrp) |
current | 556 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
current | 557 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
current | 558 | kernel/exit.c | current->mm->cmin_flt += p->mm->min_flt + p->mm->cmin_flt; |
current | 559 | kernel/exit.c | current->mm->cmaj_flt += p->mm->maj_flt + p->mm->cmaj_flt; |
current | 585 | kernel/exit.c | current->state=TASK_INTERRUPTIBLE; |
current | 587 | kernel/exit.c | current->signal &= ~(1<<(SIGCHLD-1)); |
current | 589 | kernel/exit.c | if (current->signal & ~current->blocked) |
current | 595 | 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 | 98 | kernel/fork.c | for (mpnt = current->mm->mmap ; mpnt ; mpnt = mpnt->vm_next) { |
current | 150 | kernel/fork.c | return shm_fork(current, p); |
current | 155 | kernel/fork.c | if (current->fs->pwd) |
current | 156 | kernel/fork.c | current->fs->pwd->i_count++; |
current | 157 | kernel/fork.c | if (current->fs->root) |
current | 158 | kernel/fork.c | current->fs->root->i_count++; |
current | 181 | kernel/fork.c | *p = *current; |
current | 193 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
current | 237 | kernel/fork.c | memcpy(p->ldt, current->ldt, LDT_ENTRIES*LDT_ENTRY_SIZE); |
current | 242 | kernel/fork.c | if (last_task_used_math == current) |
current | 254 | 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 | 140 | kernel/ksyms.c | X(current), |
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 | 27 | kernel/panic.c | if (current == task[0]) |
current | 78 | kernel/printk.c | if (current->signal & ~current->blocked) { |
current | 281 | kernel/ptrace.c | if (current->flags & PF_PTRACED) |
current | 284 | kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 292 | kernel/ptrace.c | if (child == current) |
current | 295 | kernel/ptrace.c | (current->uid != child->euid) || |
current | 296 | kernel/ptrace.c | (current->uid != child->uid) || |
current | 297 | kernel/ptrace.c | (current->gid != child->egid) || |
current | 298 | kernel/ptrace.c | (current->gid != child->gid)) && !suser()) |
current | 304 | kernel/ptrace.c | if (child->p_pptr != current) { |
current | 306 | kernel/ptrace.c | child->p_pptr = current; |
current | 318 | kernel/ptrace.c | if (child->p_pptr != current) |
current | 502 | kernel/ptrace.c | if ((current->flags & (PF_PTRACED|PF_TRACESYS)) |
current | 505 | kernel/ptrace.c | current->exit_code = SIGTRAP; |
current | 506 | kernel/ptrace.c | current->state = TASK_STOPPED; |
current | 507 | kernel/ptrace.c | notify_parent(current); |
current | 514 | kernel/ptrace.c | if (current->exit_code) |
current | 515 | kernel/ptrace.c | current->signal |= (1 << (current->exit_code - 1)); |
current | 516 | kernel/ptrace.c | current->exit_code = 0; |
current | 98 | kernel/sched.c | struct task_struct *current = &init_task; |
current | 122 | kernel/sched.c | if (last_task_used_math == current) |
current | 130 | kernel/sched.c | last_task_used_math = current; |
current | 131 | kernel/sched.c | if (current->used_math) { |
current | 132 | kernel/sched.c | __asm__("frstor %0": :"m" (current->tss.i387)); |
current | 135 | kernel/sched.c | current->used_math=1; |
current | 145 | kernel/sched.c | printk("killing %s.\n",current->comm); |
current | 146 | kernel/sched.c | send_sig(SIGFPE,current,1); |
current | 225 | kernel/sched.c | if (TASK_UNINTERRUPTIBLE >= (unsigned) current->state && |
current | 226 | kernel/sched.c | current->counter < current->priority*2) { |
current | 227 | kernel/sched.c | ++current->counter; |
current | 243 | kernel/sched.c | if (current == next) |
current | 248 | kernel/sched.c | if(current->debugreg[7]){ |
current | 259 | kernel/sched.c | current->state = TASK_INTERRUPTIBLE; |
current | 284 | kernel/sched.c | if (p->counter > current->counter + 3) |
current | 311 | kernel/sched.c | if (p->counter > current->counter + 3) |
current | 329 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 331 | kernel/sched.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 334 | kernel/sched.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 336 | kernel/sched.c | current->state = TASK_RUNNING; |
current | 343 | kernel/sched.c | struct wait_queue wait = { current, NULL }; |
current | 347 | kernel/sched.c | if (current == task[0]) |
current | 349 | kernel/sched.c | current->state = state; |
current | 653 | kernel/sched.c | current->utime++; |
current | 654 | kernel/sched.c | if (current != task[0]) { |
current | 655 | kernel/sched.c | if (current->priority < 15) |
current | 661 | kernel/sched.c | if (current->it_virt_value && !(--current->it_virt_value)) { |
current | 662 | kernel/sched.c | current->it_virt_value = current->it_virt_incr; |
current | 663 | kernel/sched.c | send_sig(SIGVTALRM,current,1); |
current | 666 | kernel/sched.c | current->stime++; |
current | 667 | kernel/sched.c | if(current != task[0]) |
current | 670 | kernel/sched.c | if (prof_buffer && current != task[0]) { |
current | 678 | kernel/sched.c | if (current != task[0] && 0 > --current->counter) { |
current | 679 | kernel/sched.c | current->counter = 0; |
current | 683 | kernel/sched.c | if (current->it_prof_value && !(--current->it_prof_value)) { |
current | 684 | kernel/sched.c | current->it_prof_value = current->it_prof_incr; |
current | 685 | kernel/sched.c | send_sig(SIGPROF,current,1); |
current | 720 | kernel/sched.c | return current->pid; |
current | 725 | kernel/sched.c | return current->p_opptr->pid; |
current | 730 | kernel/sched.c | return current->uid; |
current | 735 | kernel/sched.c | return current->euid; |
current | 740 | kernel/sched.c | return current->gid; |
current | 745 | kernel/sched.c | return current->egid; |
current | 754 | kernel/sched.c | newprio = current->priority - increment; |
current | 759 | kernel/sched.c | current->priority = newprio; |
current | 768 | kernel/sched.c | printk("%-8s %3d ", p->comm, (p == current) ? -nr : nr); |
current | 773 | kernel/sched.c | if (p == current) |
current | 25 | kernel/signal.c | sigset_t new_set, old_set = current->blocked; |
current | 35 | kernel/signal.c | current->blocked |= new_set; |
current | 38 | kernel/signal.c | current->blocked &= ~new_set; |
current | 41 | kernel/signal.c | current->blocked = new_set; |
current | 58 | kernel/signal.c | return current->blocked; |
current | 63 | kernel/signal.c | int old=current->blocked; |
current | 65 | kernel/signal.c | current->blocked = newmask & _BLOCKABLE; |
current | 75 | kernel/signal.c | put_fs_long(current->blocked & current->signal, (unsigned long *)set); |
current | 87 | kernel/signal.c | mask = current->blocked; |
current | 88 | kernel/signal.c | current->blocked = set & _BLOCKABLE; |
current | 91 | kernel/signal.c | current->state = TASK_INTERRUPTIBLE; |
current | 117 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 121 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 127 | kernel/signal.c | current->signal &= ~_S(signum); |
current | 146 | kernel/signal.c | handler = (long) current->sigaction[signum-1].sa_handler; |
current | 147 | kernel/signal.c | current->sigaction[signum-1] = tmp; |
current | 161 | kernel/signal.c | p = signum - 1 + current->sigaction; |
current | 208 | kernel/signal.c | current->blocked = context.oldmask & _BLOCKABLE; |
current | 247 | kernel/signal.c | if (current->exec_domain && current->exec_domain->signal_invmap) |
current | 248 | kernel/signal.c | put_fs_long(current->exec_domain->signal_invmap[signr], frame+1); |
current | 263 | kernel/signal.c | put_fs_long(current->tss.trap_no, frame+14); |
current | 264 | kernel/signal.c | put_fs_long(current->tss.error_code, frame+15); |
current | 273 | kernel/signal.c | put_fs_long(current->tss.cr2, frame+23); |
current | 294 | kernel/signal.c | unsigned long mask = ~current->blocked; |
current | 301 | kernel/signal.c | while ((signr = current->signal & mask)) { |
current | 304 | kernel/signal.c | :"=m" (current->signal),"=r" (signr) |
current | 306 | kernel/signal.c | sa = current->sigaction + signr; |
current | 308 | kernel/signal.c | if ((current->flags & PF_PTRACED) && signr != SIGKILL) { |
current | 309 | kernel/signal.c | current->exit_code = signr; |
current | 310 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 311 | kernel/signal.c | notify_parent(current); |
current | 313 | kernel/signal.c | if (!(signr = current->exit_code)) |
current | 315 | kernel/signal.c | current->exit_code = 0; |
current | 318 | kernel/signal.c | if (_S(signr) & current->blocked) { |
current | 319 | kernel/signal.c | current->signal |= _S(signr); |
current | 322 | kernel/signal.c | sa = current->sigaction + signr - 1; |
current | 333 | kernel/signal.c | if (current->pid == 1) |
current | 340 | kernel/signal.c | if (current->flags & PF_PTRACED) |
current | 342 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 343 | kernel/signal.c | current->exit_code = signr; |
current | 344 | kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 346 | kernel/signal.c | notify_parent(current); |
current | 352 | kernel/signal.c | if (current->binfmt && current->binfmt->core_dump) { |
current | 353 | kernel/signal.c | if (current->binfmt->core_dump(signr, regs)) |
current | 358 | kernel/signal.c | current->signal |= _S(signr & 0x7f); |
current | 385 | kernel/signal.c | sa = current->sigaction; |
current | 400 | kernel/signal.c | current->blocked |= sa->sa_mask; |
current | 405 | kernel/signal.c | current->tss.trap_no = current->tss.error_code = 0; |
current | 42 | kernel/sys.c | if (current->pid != 0) |
current | 50 | kernel/sys.c | current->counter = -100; |
current | 62 | kernel/sys.c | if (!who && p == current) |
current | 67 | kernel/sys.c | who = current->pgrp; |
current | 71 | kernel/sys.c | who = current->uid; |
current | 92 | kernel/sys.c | if ((*p)->uid != current->euid && |
current | 93 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
current | 212 | kernel/sys.c | int old_rgid = current->gid; |
current | 216 | kernel/sys.c | (current->egid==rgid) || |
current | 218 | kernel/sys.c | current->gid = rgid; |
current | 224 | kernel/sys.c | (current->egid == egid) || |
current | 225 | kernel/sys.c | (current->sgid == egid) || |
current | 227 | kernel/sys.c | current->egid = egid; |
current | 229 | kernel/sys.c | current->gid = old_rgid; |
current | 235 | kernel/sys.c | current->sgid = current->egid; |
current | 236 | kernel/sys.c | current->fsgid = current->egid; |
current | 246 | kernel/sys.c | current->gid = current->egid = current->sgid = current->fsgid = gid; |
current | 247 | kernel/sys.c | else if ((gid == current->gid) || (gid == current->sgid)) |
current | 248 | kernel/sys.c | current->egid = current->fsgid = gid; |
current | 301 | kernel/sys.c | int old_ruid = current->uid; |
current | 305 | kernel/sys.c | (current->euid==ruid) || |
current | 307 | kernel/sys.c | current->uid = ruid; |
current | 313 | kernel/sys.c | (current->euid == euid) || |
current | 314 | kernel/sys.c | (current->suid == euid) || |
current | 316 | kernel/sys.c | current->euid = euid; |
current | 318 | kernel/sys.c | current->uid = old_ruid; |
current | 324 | kernel/sys.c | current->suid = current->euid; |
current | 325 | kernel/sys.c | current->fsuid = euid; |
current | 343 | kernel/sys.c | current->uid = current->euid = current->suid = current->fsuid = uid; |
current | 344 | kernel/sys.c | else if ((uid == current->uid) || (uid == current->suid)) |
current | 345 | kernel/sys.c | current->fsuid = current->euid = uid; |
current | 359 | kernel/sys.c | int old_fsuid = current->fsuid; |
current | 361 | kernel/sys.c | if (uid == current->uid || uid == current->euid || |
current | 362 | kernel/sys.c | uid == current->suid || uid == current->fsuid || suser()) |
current | 363 | kernel/sys.c | current->fsuid = uid; |
current | 372 | kernel/sys.c | int old_fsgid = current->fsgid; |
current | 374 | kernel/sys.c | if (gid == current->gid || gid == current->egid || |
current | 375 | kernel/sys.c | gid == current->sgid || gid == current->fsgid || suser()) |
current | 376 | kernel/sys.c | current->fsgid = gid; |
current | 386 | kernel/sys.c | put_fs_long(current->utime,(unsigned long *)&tbuf->tms_utime); |
current | 387 | kernel/sys.c | put_fs_long(current->stime,(unsigned long *)&tbuf->tms_stime); |
current | 388 | kernel/sys.c | put_fs_long(current->cutime,(unsigned long *)&tbuf->tms_cutime); |
current | 389 | kernel/sys.c | put_fs_long(current->cstime,(unsigned long *)&tbuf->tms_cstime); |
current | 400 | kernel/sys.c | if (brk < current->mm->end_code) |
current | 401 | kernel/sys.c | return current->mm->brk; |
current | 403 | kernel/sys.c | oldbrk = PAGE_ALIGN(current->mm->brk); |
current | 405 | kernel/sys.c | return current->mm->brk = brk; |
current | 410 | kernel/sys.c | if (brk <= current->mm->brk) { |
current | 411 | kernel/sys.c | current->mm->brk = brk; |
current | 418 | kernel/sys.c | rlim = current->rlim[RLIMIT_DATA].rlim_cur; |
current | 421 | kernel/sys.c | if (brk - current->mm->end_code > rlim || |
current | 422 | kernel/sys.c | brk >= current->mm->start_stack - 16384) |
current | 423 | kernel/sys.c | return current->mm->brk; |
current | 435 | kernel/sys.c | return current->mm->brk; |
current | 437 | kernel/sys.c | freepages += current->mm->rss; |
current | 440 | kernel/sys.c | return current->mm->brk; |
current | 445 | kernel/sys.c | current->mm->brk = brk; |
current | 469 | kernel/sys.c | pid = current->pid; |
current | 481 | kernel/sys.c | if (p->p_pptr == current || p->p_opptr == current) { |
current | 482 | kernel/sys.c | if (p->session != current->session) |
current | 486 | kernel/sys.c | } else if (p != current) |
current | 494 | kernel/sys.c | tmp->session == current->session) |
current | 510 | kernel/sys.c | return current->pgrp; |
current | 520 | kernel/sys.c | return current->pgrp; |
current | 525 | kernel/sys.c | if (current->leader) |
current | 527 | kernel/sys.c | current->leader = 1; |
current | 528 | kernel/sys.c | current->session = current->pgrp = current->pid; |
current | 529 | kernel/sys.c | current->tty = NULL; |
current | 530 | kernel/sys.c | return current->pgrp; |
current | 545 | kernel/sys.c | for (i = 0 ; (i < NGROUPS) && (current->groups[i] != NOGROUP) ; i++) { |
current | 550 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
current | 565 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
current | 568 | kernel/sys.c | current->groups[i] = NOGROUP; |
current | 576 | kernel/sys.c | if (grp == current->fsgid) |
current | 580 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
current | 582 | kernel/sys.c | if (current->groups[i] == grp) |
current | 690 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_cur, |
current | 692 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_max, |
current | 703 | kernel/sys.c | old_rlim = current->rlim + resource; |
current | 770 | kernel/sys.c | return getrusage(current, who, ru); |
current | 775 | kernel/sys.c | int old = current->fs->umask; |
current | 777 | kernel/sys.c | current->fs->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 | if (STACK_MAGIC != *(unsigned long *)current->kernel_stack_page) |
current | 107 | kernel/traps.c | current->comm, current->pid, 0xffff & i, current->kernel_stack_page); |
current | 117 | kernel/traps.c | DO_ERROR( 0, SIGFPE, "divide error", divide_error, current) |
current | 118 | kernel/traps.c | DO_ERROR( 3, SIGTRAP, "int3", int3, current) |
current | 119 | kernel/traps.c | DO_ERROR( 4, SIGSEGV, "overflow", overflow, current) |
current | 120 | kernel/traps.c | DO_ERROR( 5, SIGSEGV, "bounds", bounds, current) |
current | 121 | kernel/traps.c | DO_ERROR( 6, SIGILL, "invalid operand", invalid_op, current) |
current | 122 | kernel/traps.c | DO_ERROR( 7, SIGSEGV, "device not available", device_not_available, current) |
current | 123 | kernel/traps.c | DO_ERROR( 8, SIGSEGV, "double fault", double_fault, current) |
current | 125 | kernel/traps.c | DO_ERROR(10, SIGSEGV, "invalid TSS", invalid_TSS, current) |
current | 126 | kernel/traps.c | DO_ERROR(11, SIGBUS, "segment not present", segment_not_present, current) |
current | 127 | kernel/traps.c | DO_ERROR(12, SIGBUS, "stack segment", stack_segment, current) |
current | 128 | kernel/traps.c | DO_ERROR(15, SIGSEGV, "reserved", reserved, current) |
current | 129 | kernel/traps.c | DO_ERROR(17, SIGSEGV, "alignment check", alignment_check, current) |
current | 147 | kernel/traps.c | current->tss.error_code = error_code; |
current | 148 | kernel/traps.c | current->tss.trap_no = 13; |
current | 149 | kernel/traps.c | send_sig(signr, current, 1); |
current | 164 | kernel/traps.c | if (current->flags & PF_PTRACED) |
current | 165 | kernel/traps.c | current->blocked &= ~(1 << (SIGTRAP-1)); |
current | 166 | kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 167 | kernel/traps.c | current->tss.trap_no = 1; |
current | 168 | kernel/traps.c | current->tss.error_code = error_code; |
current | 42 | kernel/vm86.c | #define VFLAGS (*(unsigned short *)&(current->v86flags)) |
current | 43 | kernel/vm86.c | #define VEFLAGS (current->v86flags) |
current | 55 | kernel/vm86.c | if (!current->vm86_info) { |
current | 59 | kernel/vm86.c | set_flags(regs->eflags, VEFLAGS, VIF_MASK | current->v86mask); |
current | 60 | kernel/vm86.c | memcpy_tofs(¤t->vm86_info->regs,regs,sizeof(*regs)); |
current | 61 | kernel/vm86.c | put_fs_long(current->screen_bitmap,¤t->vm86_info->screen_bitmap); |
current | 62 | kernel/vm86.c | tmp = current->tss.esp0; |
current | 63 | kernel/vm86.c | current->tss.esp0 = current->saved_kernel_stack; |
current | 64 | kernel/vm86.c | current->saved_kernel_stack = 0; |
current | 94 | kernel/vm86.c | if (current->saved_kernel_stack) |
current | 120 | kernel/vm86.c | current->v86mask = 0; |
current | 123 | kernel/vm86.c | current->v86mask = NT_MASK | IOPL_MASK; |
current | 126 | kernel/vm86.c | current->v86mask = AC_MASK | NT_MASK | IOPL_MASK; |
current | 129 | kernel/vm86.c | current->v86mask = ID_MASK | AC_MASK | NT_MASK | IOPL_MASK; |
current | 137 | kernel/vm86.c | current->saved_kernel_stack = current->tss.esp0; |
current | 138 | kernel/vm86.c | current->tss.esp0 = (unsigned long) pt_regs; |
current | 139 | kernel/vm86.c | current->vm86_info = v86; |
current | 141 | kernel/vm86.c | current->screen_bitmap = info.screen_bitmap; |
current | 143 | kernel/vm86.c | mark_screen_rdonly(current); |
current | 181 | kernel/vm86.c | set_flags(VEFLAGS, eflags, current->v86mask); |
current | 189 | kernel/vm86.c | set_flags(VFLAGS, flags, current->v86mask); |
current | 201 | kernel/vm86.c | return flags | (VEFLAGS & current->v86mask); |
current | 290 | kernel/vm86.c | is_revectored(i, ¤t->vm86_info->int_revectored)) |
current | 292 | kernel/vm86.c | if (i==0x21 && is_revectored(AH(regs),¤t->vm86_info->int21_revectored)) |
current | 310 | kernel/vm86.c | if (current->flags & PF_PTRACED) |
current | 311 | kernel/vm86.c | current->blocked &= ~(1 << (SIGTRAP-1)); |
current | 312 | kernel/vm86.c | send_sig(SIGTRAP, current, 1); |
current | 313 | kernel/vm86.c | current->tss.trap_no = 1; |
current | 314 | kernel/vm86.c | current->tss.error_code = error_code; |
current | 187 | mm/memory.c | if (tsk == current) |
current | 210 | mm/memory.c | pg_dir = current->tss.cr3; |
current | 229 | mm/memory.c | old_pg_dir = current->tss.cr3; |
current | 299 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
current | 324 | mm/memory.c | if (current->mm->rss > 0) |
current | 325 | mm/memory.c | --current->mm->rss; |
current | 357 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
current | 384 | mm/memory.c | if (current->mm->rss > 0) |
current | 385 | mm/memory.c | --current->mm->rss; |
current | 419 | mm/memory.c | dir = PAGE_DIR_OFFSET(current->tss.cr3,from); |
current | 446 | mm/memory.c | if (current->mm->rss > 0) |
current | 447 | mm/memory.c | --current->mm->rss; |
current | 468 | mm/memory.c | ++current->mm->rss; |
current | 640 | mm/memory.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
current | 650 | mm/memory.c | if (vma->vm_end - start > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 876 | mm/memory.c | oom(current); |
current | 935 | mm/memory.c | oom(current); |
current | 963 | mm/memory.c | oom(current); |
current | 979 | mm/memory.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
current | 989 | mm/memory.c | if (vma->vm_end - address > current->rlim[RLIMIT_STACK].rlim_cur) |
current | 1001 | mm/memory.c | current->screen_bitmap |= 1 << bit; |
current | 1024 | mm/memory.c | current->tss.cr2 = address; |
current | 1025 | mm/memory.c | current->tss.error_code = error_code; |
current | 1026 | mm/memory.c | current->tss.trap_no = 14; |
current | 1027 | mm/memory.c | send_sig(SIGSEGV, current, 1); |
current | 1048 | mm/memory.c | current->tss.cr3, page); |
current | 93 | mm/mmap.c | for (vmm = current->mm->mmap ; vmm ; vmm = vmm->vm_next) { |
current | 129 | mm/mmap.c | vma->vm_task = current; |
current | 160 | mm/mmap.c | if (!current->errno) |
current | 161 | mm/mmap.c | current->errno = -error; |
current | 164 | mm/mmap.c | insert_vm_struct(current, vma); |
current | 165 | mm/mmap.c | merge_segments(current->mm->mmap); |
current | 181 | mm/mmap.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 256 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 264 | mm/mmap.c | insert_vm_struct(current, mpnt); |
current | 294 | mm/mmap.c | npp = ¤t->mm->mmap; |
current | 27 | mm/mprotect.c | dir = PAGE_DIR_OFFSET(current->tss.cr3, start); |
current | 58 | mm/mprotect.c | merge_segments(current->mm->mmap); |
current | 79 | mm/mprotect.c | insert_vm_struct(current, n); |
current | 80 | mm/mprotect.c | merge_segments(current->mm->mmap); |
current | 101 | mm/mprotect.c | insert_vm_struct(current, n); |
current | 102 | mm/mprotect.c | merge_segments(current->mm->mmap); |
current | 132 | mm/mprotect.c | insert_vm_struct(current, left); |
current | 133 | mm/mprotect.c | insert_vm_struct(current, right); |
current | 134 | mm/mprotect.c | merge_segments(current->mm->mmap); |
current | 186 | mm/mprotect.c | for (vma = current->mm->mmap ; ; vma = vma->vm_next) { |
current | 278 | mm/swap.c | oom(current); |
current | 368 | net/inet/af_inet.c | if (!suser() && current->pgrp != -arg && |
current | 369 | net/inet/af_inet.c | current->pid != arg) return(-EPERM); |
current | 719 | net/inet/af_inet.c | current->timeout = jiffies + HZ*sk->lingertime; |
current | 720 | net/inet/af_inet.c | while(sk->state != TCP_CLOSE && current->timeout>0) |
current | 723 | net/inet/af_inet.c | if (current->signal & ~current->blocked) |
current | 729 | net/inet/af_inet.c | current->timeout=0; |
current | 734 | net/inet/af_inet.c | current->timeout=0; |
current | 886 | net/inet/af_inet.c | if (current->signal & ~current->blocked) |
current | 977 | net/inet/af_inet.c | if (current->signal & ~current->blocked) |
current | 1080 | net/inet/af_inet.c | send_sig(SIGPIPE, current, 1); |
current | 1102 | net/inet/af_inet.c | send_sig(SIGPIPE, current, 1); |
current | 102 | net/inet/datagram.c | if (current->signal & ~current->blocked) |
current | 217 | net/inet/raw.c | if (current->signal & ~current->blocked) { |
current | 965 | net/inet/tcp.c | send_sig(SIGPIPE, current, 0); |
current | 985 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 1123 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 1403 | net/inet/tcp.c | struct wait_queue wait = { current, NULL }; |
current | 1443 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 1446 | net/inet/tcp.c | current->state = TASK_INTERRUPTIBLE; |
current | 1452 | net/inet/tcp.c | current->state = TASK_RUNNING; |
current | 1465 | net/inet/tcp.c | struct wait_queue wait = { current, NULL }; |
current | 1497 | net/inet/tcp.c | current->state = TASK_INTERRUPTIBLE; |
current | 1555 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 1599 | net/inet/tcp.c | current->state = TASK_RUNNING; |
current | 3532 | net/inet/tcp.c | if (current->signal & ~current->blocked) |
current | 161 | net/socket.c | if (!current->files->fd[fd]) |
current | 169 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
current | 170 | net/socket.c | current->files->fd[fd] = file; |
current | 225 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
current | 273 | net/socket.c | SOCK_INODE(sock)->i_uid = current->euid; |
current | 274 | net/socket.c | SOCK_INODE(sock)->i_gid = current->egid; |
current | 294 | net/socket.c | if (current->signal & ~current->blocked) |
current | 700 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 727 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 760 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 821 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
current | 872 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 897 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
current | 921 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 948 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 981 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1012 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1046 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1064 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 1084 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
current | 550 | net/unix/sock.c | if (current->signal & ~current->blocked) |
current | 626 | net/unix/sock.c | if (current->signal & ~current->blocked) |
current | 645 | net/unix/sock.c | send_sig(SIGKILL, current, 1); |
current | 684 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |
current | 696 | net/unix/sock.c | if (current->signal & ~current->blocked) |
current | 702 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |
current | 721 | net/unix/sock.c | send_sig(SIGKILL, current, 1); |
current | 732 | net/unix/sock.c | send_sig(SIGPIPE, current, 1); |