tag | line | file | source code |
current | 76 | fs/exec.c | if (!current->dumpable) |
current | 78 | fs/exec.c | current->dumpable = 0; |
current | 80 | fs/exec.c | if(current->rlim[RLIMIT_CORE].rlim_cur < PAGE_SIZE/1024) return 0; |
current | 105 | fs/exec.c | dump.u_tsize = current->end_code / PAGE_SIZE; |
current | 106 | fs/exec.c | dump.u_dsize = (current->brk - current->end_code) / PAGE_SIZE; |
current | 107 | fs/exec.c | dump.u_ssize =((current->start_stack +(PAGE_SIZE-1)) / PAGE_SIZE) - |
current | 112 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 116 | fs/exec.c | current->rlim[RLIMIT_CORE].rlim_cur) |
current | 125 | fs/exec.c | if (dump.u_fpvalid = current->used_math) { |
current | 126 | fs/exec.c | if (last_task_used_math == current) |
current | 129 | fs/exec.c | memcpy(&dump.i387,¤t->tss.i387,sizeof(dump.i387)); |
current | 134 | fs/exec.c | DUMP_WRITE(current,sizeof(*current)); |
current | 141 | fs/exec.c | dump_start = current->end_code; |
current | 142 | fs/exec.c | dump_size = current->brk - current->end_code; |
current | 168 | fs/exec.c | #define libnum (current->numlibraries) |
current | 203 | fs/exec.c | current->libraries[libnum].library = inode; |
current | 204 | fs/exec.c | current->libraries[libnum].start = ex.a_entry; |
current | 205 | fs/exec.c | current->libraries[libnum].length = (ex.a_data+ex.a_text+0xfff) & 0xfffff000; |
current | 209 | fs/exec.c | current->libraries[libnum].start, |
current | 210 | fs/exec.c | current->libraries[libnum].length); |
current | 337 | fs/exec.c | code_base = get_base(current->ldt[1]); |
current | 339 | fs/exec.c | set_base(current->ldt[1],code_base); |
current | 340 | fs/exec.c | set_limit(current->ldt[1],code_limit); |
current | 341 | fs/exec.c | set_base(current->ldt[2],data_base); |
current | 342 | fs/exec.c | set_limit(current->ldt[2],data_limit); |
current | 381 | fs/exec.c | current->executable = NULL; |
current | 427 | fs/exec.c | if (IS_NOSUID(inode) && (((i & S_ISUID) && inode->i_uid != current-> |
current | 428 | fs/exec.c | euid) || ((i & S_ISGID) && inode->i_gid != current->egid)) && |
current | 434 | fs/exec.c | if (current->flags & PF_PTRACED) { |
current | 435 | fs/exec.c | e_uid = current->euid; |
current | 436 | fs/exec.c | e_gid = current->egid; |
current | 438 | fs/exec.c | e_uid = (i & S_ISUID) ? inode->i_uid : current->euid; |
current | 439 | fs/exec.c | e_gid = (i & S_ISGID) ? inode->i_gid : current->egid; |
current | 441 | fs/exec.c | if (current->euid == inode->i_uid) |
current | 553 | fs/exec.c | current->dumpable = 1; |
current | 559 | fs/exec.c | current->comm[i++] = ch; |
current | 561 | fs/exec.c | current->comm[i] = '\0'; |
current | 562 | fs/exec.c | if (current->executable) |
current | 563 | fs/exec.c | iput(current->executable); |
current | 564 | fs/exec.c | i = current->numlibraries; |
current | 566 | fs/exec.c | iput(current->libraries[i].library); |
current | 567 | fs/exec.c | current->libraries[i].library = NULL; |
current | 569 | fs/exec.c | if (e_uid != current->euid || e_gid != current->egid || |
current | 571 | fs/exec.c | current->dumpable = 0; |
current | 572 | fs/exec.c | current->numlibraries = 0; |
current | 573 | fs/exec.c | current->executable = inode; |
current | 574 | fs/exec.c | current->signal = 0; |
current | 576 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
current | 577 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
current | 578 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
current | 579 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
current | 582 | fs/exec.c | if ((current->close_on_exec>>i)&1) |
current | 584 | fs/exec.c | current->close_on_exec = 0; |
current | 585 | fs/exec.c | free_page_tables(get_base(current->ldt[1]),get_limit(0x0f)); |
current | 586 | fs/exec.c | free_page_tables(get_base(current->ldt[2]),get_limit(0x17)); |
current | 587 | fs/exec.c | if (last_task_used_math == current) |
current | 589 | fs/exec.c | current->used_math = 0; |
current | 593 | fs/exec.c | current->brk = ex.a_bss + |
current | 594 | fs/exec.c | (current->end_data = ex.a_data + |
current | 595 | fs/exec.c | (current->end_code = ex.a_text)); |
current | 596 | fs/exec.c | current->start_stack = p; |
current | 597 | fs/exec.c | current->rss = (LIBRARY_OFFSET - p + PAGE_SIZE-1) / PAGE_SIZE; |
current | 598 | fs/exec.c | current->suid = current->euid = e_uid; |
current | 599 | fs/exec.c | current->sgid = current->egid = e_gid; |
current | 604 | fs/exec.c | if (current->flags & PF_PTRACED) |
current | 605 | fs/exec.c | send_sig(SIGTRAP, current, 0); |
current | 225 | fs/ext/bitmap.c | inode->i_uid = current->euid; |
current | 226 | fs/ext/bitmap.c | inode->i_gid = current->egid; |
current | 288 | fs/ext/freelists.c | inode->i_uid = current->euid; |
current | 289 | fs/ext/freelists.c | inode->i_gid = current->egid; |
current | 360 | fs/ext/namei.c | inode->i_uid = current->euid; |
current | 453 | fs/ext/namei.c | inode->i_mode = I_DIRECTORY | (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 | 784 | fs/ext/namei.c | current->counter = 0; |
current | 797 | fs/ext/namei.c | current->euid != old_inode->i_uid && |
current | 798 | fs/ext/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 52 | fs/ext/symlink.c | dir = current->root; |
current | 64 | fs/ext/symlink.c | if ((current->link_count > 5) || !inode->i_data[0] || |
current | 72 | fs/ext/symlink.c | current->link_count++; |
current | 74 | fs/ext/symlink.c | current->link_count--; |
current | 178 | fs/ext/truncate.c | current->counter = 0; |
current | 20 | fs/fcntl.c | if (fd >= NR_OPEN || !current->filp[fd]) |
current | 25 | fs/fcntl.c | if (current->filp[arg]) |
current | 31 | fs/fcntl.c | current->close_on_exec &= ~(1<<arg); |
current | 32 | fs/fcntl.c | (current->filp[arg] = current->filp[fd])->f_count++; |
current | 38 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->filp[oldfd]) |
current | 55 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 61 | fs/fcntl.c | return (current->close_on_exec>>fd)&1; |
current | 64 | fs/fcntl.c | current->close_on_exec |= (1<<fd); |
current | 66 | fs/fcntl.c | current->close_on_exec &= ~(1<<fd); |
current | 35 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 58 | fs/fifo.c | if (current->signal & ~current->blocked) { |
current | 19 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 213 | fs/minix/bitmap.c | inode->i_uid = current->euid; |
current | 214 | fs/minix/bitmap.c | inode->i_gid = current->egid; |
current | 257 | fs/minix/namei.c | inode->i_uid = current->euid; |
current | 341 | fs/minix/namei.c | inode->i_mode = I_DIRECTORY | (mode & 0777 & ~current->umask); |
current | 422 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 423 | fs/minix/namei.c | inode->i_uid != current->euid) |
current | 474 | fs/minix/namei.c | current->euid != inode->i_uid && |
current | 475 | fs/minix/namei.c | current->euid != dir->i_uid) |
current | 652 | fs/minix/namei.c | current->counter = 0; |
current | 665 | fs/minix/namei.c | current->euid != old_inode->i_uid && |
current | 666 | fs/minix/namei.c | current->euid != old_dir->i_uid && !suser()) |
current | 46 | fs/minix/symlink.c | dir = current->root; |
current | 58 | fs/minix/symlink.c | if ((current->link_count > 5) || !inode->i_data[0] || |
current | 66 | fs/minix/symlink.c | current->link_count++; |
current | 68 | fs/minix/symlink.c | current->link_count--; |
current | 135 | fs/minix/truncate.c | current->counter = 0; |
current | 145 | fs/msdos/inode.c | MSDOS_SB(s)->fs_uid = current->uid; |
current | 146 | fs/msdos/inode.c | MSDOS_SB(s)->fs_gid = current->gid; |
current | 147 | fs/msdos/inode.c | MSDOS_SB(s)->fs_umask = current->umask; |
current | 65 | fs/msdos/misc.c | int count,this,limit,last,current,sector; |
current | 100 | fs/msdos/misc.c | if (current = inode->i_data[D_START]) { |
current | 101 | fs/msdos/misc.c | cache_lookup(inode,0x7fffffff,&last,¤t); |
current | 102 | fs/msdos/misc.c | while (current && current != -1) |
current | 103 | fs/msdos/misc.c | if (!(current = fat_access(inode->i_sb, |
current | 104 | fs/msdos/misc.c | last = current,-1))) |
current | 119 | fs/msdos/misc.c | for (current = 0; current < MSDOS_SB(inode->i_sb)->cluster_size; |
current | 120 | fs/msdos/misc.c | current++) { |
current | 122 | fs/msdos/misc.c | MSDOS_SB(inode->i_sb)->cluster_size+current; |
current | 126 | fs/msdos/misc.c | if (current < MSDOS_SB(inode->i_sb)->cluster_size-1 && |
current | 134 | fs/msdos/misc.c | current++; |
current | 342 | fs/msdos/misc.c | int error,current,prev,this; |
current | 347 | fs/msdos/misc.c | if ((current = raw_scan(dir->i_sb,dir->i_data[D_START],MSDOS_DOTDOT,0, |
current | 350 | fs/msdos/misc.c | return current; |
current | 352 | fs/msdos/misc.c | if (!current) this = MSDOS_ROOT_INO; |
current | 354 | fs/msdos/misc.c | if ((prev = raw_scan(dir->i_sb,current,MSDOS_DOTDOT,0,NULL)) < |
current | 359 | fs/msdos/misc.c | if ((error = raw_scan(dir->i_sb,prev,NULL,current,&this)) < 0) { |
current | 47 | fs/namei.c | else if (current->euid == inode->i_uid) |
current | 68 | fs/namei.c | if (dir == current->root) |
current | 123 | fs/namei.c | base = current->pwd; |
current | 128 | fs/namei.c | base = current->root; |
current | 206 | fs/namei.c | mode &= 07777 & ~current->umask; |
current | 55 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 93 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 123 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 130 | fs/open.c | if ((current->euid != inode->i_uid) && |
current | 158 | fs/open.c | if (current->uid == inode->i_uid) |
current | 170 | fs/open.c | if ((!current->uid) && |
current | 190 | fs/open.c | iput(current->pwd); |
current | 191 | fs/open.c | current->pwd = inode; |
current | 209 | fs/open.c | iput(current->root); |
current | 210 | fs/open.c | current->root = inode; |
current | 219 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 223 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) |
current | 238 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 257 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 263 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 284 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 304 | fs/open.c | if (!current->filp[fd]) |
current | 308 | fs/open.c | current->close_on_exec &= ~(1<<fd); |
current | 312 | fs/open.c | current->filp[fd] = f; |
current | 314 | fs/open.c | current->filp[fd]=NULL; |
current | 330 | fs/open.c | current->filp[fd]=NULL; |
current | 348 | fs/open.c | current->close_on_exec &= ~(1<<fd); |
current | 349 | fs/open.c | if (!(filp = current->filp[fd])) |
current | 351 | fs/open.c | current->filp[fd] = NULL; |
current | 25 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 51 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 62 | fs/pipe.c | send_sig(SIGPIPE,current,0); |
current | 65 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 219 | fs/pipe.c | if (!current->filp[i]) { |
current | 220 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
current | 224 | fs/pipe.c | current->filp[fd[0]]=NULL; |
current | 231 | fs/pipe.c | current->filp[fd[0]] = NULL; |
current | 232 | fs/pipe.c | current->filp[fd[1]] = NULL; |
current | 25 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->filp[fd]) || |
current | 40 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
current | 73 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 90 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 84 | fs/select.c | if (!current->filp[i]) |
current | 86 | fs/select.c | if (!current->filp[i]->f_inode) |
current | 88 | fs/select.c | if (current->filp[i]->f_inode->i_pipe) |
current | 90 | fs/select.c | if (S_ISCHR(current->filp[i]->f_inode->i_mode)) |
current | 92 | fs/select.c | if (S_ISFIFO(current->filp[i]->f_inode->i_mode)) |
current | 94 | fs/select.c | if (S_ISSOCK(current->filp[i]->f_inode->i_mode)) |
current | 102 | fs/select.c | current->state = TASK_INTERRUPTIBLE; |
current | 105 | fs/select.c | file = current->filp[i]; |
current | 122 | fs/select.c | if (!(current->signal & ~current->blocked) && |
current | 123 | fs/select.c | current->timeout && !count) { |
current | 129 | fs/select.c | current->state = TASK_RUNNING; |
current | 171 | fs/select.c | current->timeout = timeout; |
current | 173 | fs/select.c | if (current->timeout > jiffies) |
current | 174 | fs/select.c | timeout = current->timeout - jiffies; |
current | 177 | fs/select.c | current->timeout = 0; |
current | 187 | fs/select.c | if (!i && (current->signal & ~current->blocked)) |
current | 131 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 142 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 335 | fs/super.c | current->pwd = mi; |
current | 336 | fs/super.c | current->root = mi; |
current | 24 | include/linux/kernel.h | #define suser() (current->euid == 0) |
current | 98 | include/linux/math_emu.h | #define I387 (current->tss.i387) |
current | 220 | include/linux/sched.h | extern struct task_struct *current; |
current | 349 | include/linux/sched.h | entry->wait.task = current; |
current | 260 | kernel/blk_drv/ll_rw_blk.c | req->waiting = ¤t->wait; |
current | 263 | kernel/blk_drv/ll_rw_blk.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 347 | kernel/blk_drv/ll_rw_blk.c | req->waiting = ¤t->wait; |
current | 350 | kernel/blk_drv/ll_rw_blk.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 39 | kernel/chr_drv/mem.c | if (current->signal & ~current->blocked) |
current | 76 | kernel/chr_drv/mem.c | if (current->signal & ~current->blocked) |
current | 88 | kernel/chr_drv/mem.c | do_wp_page(0,addr,current,0); |
current | 104 | kernel/chr_drv/mem.c | if (current->signal & ~current->blocked) |
current | 33 | kernel/chr_drv/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
current | 66 | kernel/chr_drv/pty.c | if (current->signal & ~current->blocked) |
current | 46 | kernel/chr_drv/serial.c | current->state = TASK_INTERRUPTIBLE; |
current | 47 | kernel/chr_drv/serial.c | current->timeout = jiffies + 25; |
current | 121 | kernel/chr_drv/tty_io.c | while (!(current->signal & ~current->blocked) && EMPTY(queue)) |
current | 257 | kernel/chr_drv/tty_io.c | return ((current->blocked & (1<<(sig-1))) || |
current | 258 | kernel/chr_drv/tty_io.c | (current->sigaction[sig-1].sa_handler == SIG_IGN)); |
current | 278 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp,sig,1); |
current | 291 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 317 | kernel/chr_drv/tty_io.c | (current->tty == channel) && |
current | 318 | kernel/chr_drv/tty_io.c | (tty->pgrp != current->pgrp)) |
current | 319 | kernel/chr_drv/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
current | 324 | kernel/chr_drv/tty_io.c | minimum = time = current->timeout = 0; |
current | 329 | kernel/chr_drv/tty_io.c | current->timeout = 0xffffffff; |
current | 332 | kernel/chr_drv/tty_io.c | current->timeout = time + jiffies; |
current | 334 | kernel/chr_drv/tty_io.c | current->timeout = 0; |
current | 340 | kernel/chr_drv/tty_io.c | time = current->timeout = 0; |
current | 359 | kernel/chr_drv/tty_io.c | current->timeout = time+jiffies; |
current | 364 | kernel/chr_drv/tty_io.c | if (b-buf >= minimum || !current->timeout) |
current | 366 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 381 | kernel/chr_drv/tty_io.c | current->timeout = 0; |
current | 384 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 400 | kernel/chr_drv/tty_io.c | (current->tty == channel) && (tty->pgrp != current->pgrp)) { |
current | 415 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 418 | kernel/chr_drv/tty_io.c | send_sig(SIGPIPE,current,0); |
current | 456 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 509 | kernel/chr_drv/tty_io.c | dev = current->tty; |
current | 530 | kernel/chr_drv/tty_io.c | current->leader && |
current | 531 | kernel/chr_drv/tty_io.c | current->tty<0 && |
current | 533 | kernel/chr_drv/tty_io.c | current->tty = dev; |
current | 534 | kernel/chr_drv/tty_io.c | tty->session = current->session; |
current | 535 | kernel/chr_drv/tty_io.c | tty->pgrp = current->pgrp; |
current | 70 | kernel/chr_drv/tty_ioctl.c | while (!(current->signal & ~current->blocked) && !EMPTY(tty->write_q)) { |
current | 72 | kernel/chr_drv/tty_ioctl.c | current->counter = 0; |
current | 130 | kernel/chr_drv/tty_ioctl.c | if ((current->tty == channel) && |
current | 131 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
current | 132 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 172 | kernel/chr_drv/tty_ioctl.c | if ((current->tty == channel) && |
current | 174 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
current | 175 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 320 | kernel/chr_drv/tty_ioctl.c | if ((current->tty < 0) || |
current | 321 | kernel/chr_drv/tty_ioctl.c | (current->tty != dev) || |
current | 322 | kernel/chr_drv/tty_ioctl.c | (tty->session != current->session)) |
current | 327 | kernel/chr_drv/tty_ioctl.c | if (session_of_pgrp(pgrp) != current->session) |
current | 401 | kernel/chr_drv/tty_ioctl.c | if (MINOR(file->f_rdev) != current->tty) |
current | 403 | kernel/chr_drv/tty_ioctl.c | current->tty = -1; |
current | 404 | kernel/chr_drv/tty_ioctl.c | if (current->leader) { |
current | 25 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
current | 26 | kernel/exit.c | (current->euid != p->euid) && (current->uid != p->uid) && !suser()) |
current | 63 | kernel/exit.c | if (p == current) { |
current | 228 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
current | 231 | kernel/exit.c | if (*p && (*p)->pid > 1 && *p != current) { |
current | 300 | kernel/exit.c | free_page_tables(get_base(current->ldt[1]),get_limit(0x0f)); |
current | 301 | kernel/exit.c | free_page_tables(get_base(current->ldt[2]),get_limit(0x17)); |
current | 303 | kernel/exit.c | if (current->filp[i]) |
current | 305 | kernel/exit.c | forget_original_parent(current); |
current | 306 | kernel/exit.c | iput(current->pwd); |
current | 307 | kernel/exit.c | current->pwd = NULL; |
current | 308 | kernel/exit.c | iput(current->root); |
current | 309 | kernel/exit.c | current->root = NULL; |
current | 310 | kernel/exit.c | iput(current->executable); |
current | 311 | kernel/exit.c | current->executable = NULL; |
current | 312 | kernel/exit.c | for (i=0; i < current->numlibraries; i++) { |
current | 313 | kernel/exit.c | iput(current->libraries[i].library); |
current | 314 | kernel/exit.c | current->libraries[i].library = NULL; |
current | 316 | kernel/exit.c | current->state = TASK_ZOMBIE; |
current | 317 | kernel/exit.c | current->exit_code = code; |
current | 318 | kernel/exit.c | current->rss = 0; |
current | 328 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
current | 329 | kernel/exit.c | (current->p_pptr->session == current->session) && |
current | 330 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
current | 331 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
current | 332 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
current | 333 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
current | 336 | kernel/exit.c | send_sig (SIGCHLD, current->p_pptr, 1); |
current | 346 | kernel/exit.c | while (p = current->p_cptr) { |
current | 347 | kernel/exit.c | current->p_cptr = p->p_osptr; |
current | 365 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
current | 366 | kernel/exit.c | (p->session == current->session) && |
current | 373 | kernel/exit.c | if (current->leader) { |
current | 377 | kernel/exit.c | if (current->tty >= 0) { |
current | 378 | kernel/exit.c | tty = TTY_TABLE(current->tty); |
current | 385 | kernel/exit.c | if (*p && (*p)->session == current->session) |
current | 388 | kernel/exit.c | if (last_task_used_math == current) |
current | 424 | kernel/exit.c | current->signal &= ~(1<<(SIGCHLD-1)); |
current | 426 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
current | 431 | kernel/exit.c | if (p->pgrp != current->pgrp) |
current | 449 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
current | 450 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
current | 451 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
current | 452 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
current | 475 | kernel/exit.c | current->state=TASK_INTERRUPTIBLE; |
current | 476 | kernel/exit.c | oldblocked = current->blocked; |
current | 477 | kernel/exit.c | current->blocked &= ~(1<<(SIGCHLD-1)); |
current | 479 | kernel/exit.c | current->blocked = oldblocked; |
current | 480 | kernel/exit.c | if (current->signal & ~(current->blocked | (1<<(SIGCHLD-1)))) |
current | 34 | kernel/fork.c | start += get_base(current->ldt[2]); |
current | 49 | kernel/fork.c | old_code_base = get_base(current->ldt[1]); |
current | 50 | kernel/fork.c | old_data_base = get_base(current->ldt[2]); |
current | 52 | kernel/fork.c | printk("ldt[0]: %08x %08x\n",current->ldt[0].a,current->ldt[0].b); |
current | 53 | kernel/fork.c | printk("ldt[1]: %08x %08x\n",current->ldt[1].a,current->ldt[1].b); |
current | 54 | kernel/fork.c | printk("ldt[2]: %08x %08x\n",current->ldt[2].a,current->ldt[2].b); |
current | 81 | kernel/fork.c | if (task[i]->uid == current->uid) |
current | 124 | kernel/fork.c | *p = *current; /* NOTE! this doesn't copy the supervisor stack */ |
current | 132 | kernel/fork.c | p->p_pptr = p->p_opptr = current; |
current | 168 | kernel/fork.c | if (last_task_used_math == current) |
current | 179 | kernel/fork.c | if (current->pwd) |
current | 180 | kernel/fork.c | current->pwd->i_count++; |
current | 181 | kernel/fork.c | if (current->root) |
current | 182 | kernel/fork.c | current->root->i_count++; |
current | 183 | kernel/fork.c | if (current->executable) |
current | 184 | kernel/fork.c | current->executable->i_count++; |
current | 185 | kernel/fork.c | for (i=0; i < current->numlibraries ; i++) |
current | 186 | kernel/fork.c | if (current->libraries[i].library) |
current | 187 | kernel/fork.c | current->libraries[i].library->i_count++; |
current | 30 | kernel/ioport.c | int numl = sizeof(current->tss.io_bitmap) >> 2; |
current | 35 | kernel/ioport.c | printk("%s ", ios(current->tss.io_bitmap[j++])); |
current | 37 | kernel/ioport.c | printk("%s", ios(current->tss.io_bitmap[j++])); |
current | 59 | kernel/ioport.c | if (froml * 32 + tnum > sizeof(current->tss.io_bitmap) * 8 - 8) |
current | 67 | kernel/ioport.c | iop = (unsigned long *)current->tss.io_bitmap + froml; |
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 | 82 | kernel/itimer.c | current->it_real_value = j; |
current | 83 | kernel/itimer.c | current->it_real_incr = i; |
current | 86 | kernel/itimer.c | current->it_virt_value = j; |
current | 87 | kernel/itimer.c | current->it_virt_incr = i; |
current | 90 | kernel/itimer.c | current->it_prof_value = j; |
current | 91 | kernel/itimer.c | current->it_prof_incr = i; |
current | 486 | kernel/math/emulate.c | if (!current->used_math) { |
current | 487 | kernel/math/emulate.c | current->used_math = 1; |
current | 498 | kernel/math/emulate.c | send_sig(signal,current,1); |
current | 545 | kernel/math/emulate.c | send_sig(SIGFPE,current,1); |
current | 63 | kernel/math/sqrt.c | send_sig(SIGFPE,current,0); |
current | 19 | kernel/panic.c | if (current == task[0]) |
current | 59 | kernel/printk.c | if (current->signal & ~current->blocked) |
current | 226 | kernel/ptrace.c | if (current->flags & PF_PTRACED) |
current | 229 | kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 237 | kernel/ptrace.c | if (child == current) |
current | 239 | kernel/ptrace.c | if ((!child->dumpable || (current->uid != child->euid) || |
current | 240 | kernel/ptrace.c | (current->gid != child->egid)) && !suser()) |
current | 246 | kernel/ptrace.c | if (child->p_pptr != current) { |
current | 248 | kernel/ptrace.c | child->p_pptr = current; |
current | 261 | kernel/ptrace.c | if (child->p_pptr != current) |
current | 39 | kernel/sched.c | printk("%d: pid=%d, state=%d, father=%d, child=%d, ",(p == current)?-nr:nr,p->pid, |
current | 86 | kernel/sched.c | struct task_struct *current = &(init_task.task); |
current | 103 | kernel/sched.c | if (last_task_used_math == current) |
current | 109 | kernel/sched.c | last_task_used_math=current; |
current | 110 | kernel/sched.c | if (current->used_math) { |
current | 111 | kernel/sched.c | __asm__("frstor %0"::"m" (current->tss.i387)); |
current | 114 | kernel/sched.c | current->used_math=1; |
current | 173 | kernel/sched.c | struct sigaction * sa = current->sigaction; |
current | 175 | kernel/sched.c | old_blocked = current->blocked; |
current | 178 | kernel/sched.c | current->blocked |= mask; |
current | 179 | kernel/sched.c | current->state = TASK_INTERRUPTIBLE; |
current | 181 | kernel/sched.c | current->blocked = old_blocked; |
current | 188 | kernel/sched.c | if (p->counter > current->counter) |
current | 213 | kernel/sched.c | if (p->counter > current->counter) |
current | 228 | kernel/sched.c | if (current == task[0]) |
current | 230 | kernel/sched.c | if (current->wait.next) |
current | 233 | kernel/sched.c | current->state = state; |
current | 234 | kernel/sched.c | add_wait_queue(p,¤t->wait); |
current | 237 | kernel/sched.c | remove_wait_queue(p,¤t->wait); |
current | 400 | kernel/sched.c | current->utime++; |
current | 402 | kernel/sched.c | current->stime++; |
current | 404 | kernel/sched.c | if (current->it_virt_value && !(--current->it_virt_value)) { |
current | 405 | kernel/sched.c | current->it_virt_value = current->it_virt_incr; |
current | 406 | kernel/sched.c | send_sig(SIGVTALRM,current,1); |
current | 413 | kernel/sched.c | if ((--current->counter)<=0) { |
current | 414 | kernel/sched.c | current->counter=0; |
current | 426 | kernel/sched.c | if (current->it_prof_value && !(--current->it_prof_value)) { |
current | 427 | kernel/sched.c | current->it_prof_value = current->it_prof_incr; |
current | 428 | kernel/sched.c | send_sig(SIGPROF,current,1); |
current | 470 | kernel/sched.c | return current->pid; |
current | 475 | kernel/sched.c | return current->p_pptr->pid; |
current | 480 | kernel/sched.c | return current->uid; |
current | 485 | kernel/sched.c | return current->euid; |
current | 490 | kernel/sched.c | return current->gid; |
current | 495 | kernel/sched.c | return current->egid; |
current | 502 | kernel/sched.c | if (increment >= current->priority) |
current | 503 | kernel/sched.c | increment = current->priority-1; |
current | 504 | kernel/sched.c | current->priority -= increment; |
current | 20 | kernel/signal.c | return current->blocked; |
current | 25 | kernel/signal.c | int old=current->blocked; |
current | 27 | kernel/signal.c | current->blocked = newmask & ~(1<<(SIGKILL-1)) & ~(1<<(SIGSTOP-1)); |
current | 35 | kernel/signal.c | put_fs_long(current->blocked & current->signal, (unsigned long *)set); |
current | 58 | kernel/signal.c | current->blocked = old_mask; |
current | 63 | kernel/signal.c | *(&old_mask) = current->blocked; |
current | 64 | kernel/signal.c | current->blocked = set; |
current | 99 | kernel/signal.c | handler = (long) current->sigaction[signum-1].sa_handler; |
current | 100 | kernel/signal.c | current->sigaction[signum-1] = tmp; |
current | 111 | kernel/signal.c | tmp = current->sigaction[signum-1]; |
current | 113 | kernel/signal.c | (char *) (signum-1+current->sigaction)); |
current | 116 | kernel/signal.c | if (current->sigaction[signum-1].sa_flags & SA_NOMASK) |
current | 117 | kernel/signal.c | current->sigaction[signum-1].sa_mask = 0; |
current | 119 | kernel/signal.c | current->sigaction[signum-1].sa_mask |= (1<<(signum-1)); |
current | 134 | kernel/signal.c | struct sigaction * sa = current->sigaction + signr - 1; |
current | 140 | kernel/signal.c | current->pid, signr, regs->eax, regs->orig_eax, |
current | 162 | kernel/signal.c | if (current->pid == 1) |
current | 174 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 175 | kernel/signal.c | current->exit_code = signr; |
current | 176 | kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 178 | kernel/signal.c | send_sig(SIGCHLD, current->p_pptr, 1); |
current | 207 | kernel/signal.c | put_fs_long(current->blocked,tmp_esp++); |
current | 213 | kernel/signal.c | current->blocked |= sa->sa_mask; |
current | 39 | kernel/sys.c | if (!who && p == current) |
current | 44 | kernel/sys.c | who = current->pgrp; |
current | 48 | kernel/sys.c | who = current->uid; |
current | 69 | kernel/sys.c | if ((*p)->uid != current->euid && |
current | 70 | kernel/sys.c | (*p)->uid != current->uid && !suser()) { |
current | 186 | kernel/sys.c | if ((current->gid == rgid) || |
current | 188 | kernel/sys.c | current->gid = rgid; |
current | 193 | kernel/sys.c | if ((current->gid == egid) || |
current | 194 | kernel/sys.c | (current->egid == egid) || |
current | 196 | kernel/sys.c | current->egid = egid; |
current | 197 | kernel/sys.c | current->sgid = egid; |
current | 210 | kernel/sys.c | current->gid = current->egid = current->sgid = gid; |
current | 211 | kernel/sys.c | else if ((gid == current->gid) || (gid == current->sgid)) |
current | 212 | kernel/sys.c | current->egid = gid; |
current | 270 | kernel/sys.c | int old_ruid = current->uid; |
current | 273 | kernel/sys.c | if ((current->euid==ruid) || |
current | 276 | kernel/sys.c | current->uid = ruid; |
current | 282 | kernel/sys.c | (current->euid == euid) || |
current | 284 | kernel/sys.c | current->euid = euid; |
current | 285 | kernel/sys.c | current->suid = euid; |
current | 287 | kernel/sys.c | current->uid = old_ruid; |
current | 308 | kernel/sys.c | current->uid = current->euid = current->suid = uid; |
current | 309 | kernel/sys.c | else if ((uid == current->uid) || (uid == current->suid)) |
current | 310 | kernel/sys.c | current->euid = uid; |
current | 329 | kernel/sys.c | put_fs_long(current->utime,(unsigned long *)&tbuf->tms_utime); |
current | 330 | kernel/sys.c | put_fs_long(current->stime,(unsigned long *)&tbuf->tms_stime); |
current | 331 | kernel/sys.c | put_fs_long(current->cutime,(unsigned long *)&tbuf->tms_cutime); |
current | 332 | kernel/sys.c | put_fs_long(current->cstime,(unsigned long *)&tbuf->tms_cstime); |
current | 339 | kernel/sys.c | if (end_data_seg >= current->end_code && |
current | 340 | kernel/sys.c | end_data_seg < current->start_stack - 16384) |
current | 341 | kernel/sys.c | current->brk = end_data_seg; |
current | 342 | kernel/sys.c | return current->brk; |
current | 359 | kernel/sys.c | pid = current->pid; |
current | 361 | kernel/sys.c | pgid = current->pid; |
current | 366 | kernel/sys.c | ((task[i]->p_pptr == current) || |
current | 367 | kernel/sys.c | (task[i] == current))) { |
current | 370 | kernel/sys.c | if ((task[i]->session != current->session) || |
current | 372 | kernel/sys.c | (session_of_pgrp(pgid) != current->session))) |
current | 382 | kernel/sys.c | return current->pgrp; |
current | 387 | kernel/sys.c | if (current->leader && !suser()) |
current | 389 | kernel/sys.c | current->leader = 1; |
current | 390 | kernel/sys.c | current->session = current->pgrp = current->pid; |
current | 391 | kernel/sys.c | current->tty = -1; |
current | 392 | kernel/sys.c | return current->pgrp; |
current | 405 | kernel/sys.c | for (i = 0; (i < NGROUPS) && (current->groups[i] != NOGROUP); |
current | 410 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
current | 425 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
current | 428 | kernel/sys.c | current->groups[i] = NOGROUP; |
current | 436 | kernel/sys.c | if (grp == current->egid) |
current | 440 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
current | 442 | kernel/sys.c | if (current->groups[i] == grp) |
current | 503 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_cur, |
current | 505 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_max, |
current | 516 | kernel/sys.c | old = current->rlim + resource; |
current | 545 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(current->utime); |
current | 546 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(current->utime); |
current | 547 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(current->stime); |
current | 548 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(current->stime); |
current | 549 | kernel/sys.c | r.ru_minflt = current->min_flt; |
current | 550 | kernel/sys.c | r.ru_majflt = current->maj_flt; |
current | 552 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(current->cutime); |
current | 553 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(current->cutime); |
current | 554 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(current->cstime); |
current | 555 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(current->cstime); |
current | 556 | kernel/sys.c | r.ru_minflt = current->cmin_flt; |
current | 557 | kernel/sys.c | r.ru_majflt = current->cmaj_flt; |
current | 644 | kernel/sys.c | int old = current->umask; |
current | 646 | kernel/sys.c | current->umask = mask & 0777; |
current | 71 | kernel/traps.c | printk("base: %p, limit: %p\n",get_base(current->ldt[1]),get_limit(0x17)); |
current | 73 | kernel/traps.c | printk("Pid: %d, process nr: %d\n\r",current->pid,0xffff & i); |
current | 82 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 88 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 94 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 100 | kernel/traps.c | send_sig(SIGFPE, current, 1); |
current | 106 | kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 117 | kernel/traps.c | send_sig(SIGTRAP, current, 1); |
current | 123 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 129 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 135 | kernel/traps.c | send_sig(SIGILL, current, 1); |
current | 141 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 153 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 159 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 165 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 177 | kernel/traps.c | send_sig(SIGSEGV, current, 1); |
current | 40 | mm/memory.c | current->start_code + current->end_code) |
current | 183 | mm/memory.c | ++current->rss; |
current | 245 | mm/memory.c | --current->rss; |
current | 323 | mm/memory.c | --current->rss; |
current | 340 | mm/memory.c | ++current->rss; |
current | 384 | mm/memory.c | oom(current); |
current | 515 | mm/memory.c | ++current->min_flt; |
current | 529 | mm/memory.c | un_wp_page((unsigned long *) page, current); |
current | 539 | mm/memory.c | oom(current); |
current | 564 | mm/memory.c | to_page += ((current->start_code>>20) & 0xffc); |
current | 618 | mm/memory.c | if (current == *p) |
current | 658 | mm/memory.c | oom(current); |
current | 719 | mm/memory.c | if (tsk != current) |
current | 728 | mm/memory.c | if (tsk == current) |
current | 736 | mm/memory.c | oom(current); |
current | 754 | mm/memory.c | oom(current); |
current | 823 | mm/memory.c | do_no_page(error_code, address, current, user_esp); |
current | 826 | mm/memory.c | do_wp_page(error_code, address, current, user_esp); |
current | 41 | mm/mmap.c | current->start_code + current->end_code) |
current | 101 | mm/mmap.c | if (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd])) |
current | 133 | mm/mmap.c | base = get_base(current->ldt[1]); /* cs */ |
current | 136 | mm/mmap.c | base = get_base(current->ldt[2]); /* ds */ |
current | 185 | mm/mmap.c | base = get_base(current->ldt[2]); /* map into ds */ |
current | 132 | mm/swap.c | oom(current); |
current | 83 | net/socket.c | if (!current->filp[fd]) |
current | 87 | net/socket.c | current->close_on_exec &= ~(1 << fd); |
current | 93 | net/socket.c | current->filp[fd] = file; |
current | 111 | net/socket.c | current->filp[fd]->f_inode = NULL; /* safe from iput */ |
current | 131 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 179 | net/socket.c | if (current->signal & ~current->blocked) { |
current | 593 | net/socket.c | if (current->signal & ~current->blocked) { |
current | 404 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 423 | net/unix.c | send_sig(SIGKILL,current,1); |
current | 461 | net/unix.c | send_sig(SIGPIPE,current,1); |
current | 473 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 479 | net/unix.c | send_sig(SIGPIPE,current,1); |
current | 493 | net/unix.c | send_sig(SIGKILL,current,1); |
current | 502 | net/unix.c | send_sig(SIGPIPE,current,1); |