tag | line | file | source code |
current | 50 | fs/exec.c | #define libnum (current->numlibraries) |
current | 81 | fs/exec.c | current->libraries[libnum].library = inode; |
current | 82 | fs/exec.c | current->libraries[libnum].start = ex.a_entry; |
current | 83 | fs/exec.c | current->libraries[libnum].length = (ex.a_data+ex.a_text+0xfff) & 0xfffff000; |
current | 87 | fs/exec.c | current->libraries[libnum].start, |
current | 88 | fs/exec.c | current->libraries[libnum].length); |
current | 215 | fs/exec.c | code_base = get_base(current->ldt[1]); |
current | 217 | fs/exec.c | set_base(current->ldt[1],code_base); |
current | 218 | fs/exec.c | set_limit(current->ldt[1],code_limit); |
current | 219 | fs/exec.c | set_base(current->ldt[2],data_base); |
current | 220 | fs/exec.c | set_limit(current->ldt[2],data_limit); |
current | 255 | fs/exec.c | current->executable = NULL; |
current | 294 | fs/exec.c | if (current->flags & PF_PTRACED) { |
current | 295 | fs/exec.c | e_uid = current->euid; |
current | 296 | fs/exec.c | e_gid = current->egid; |
current | 298 | fs/exec.c | e_uid = (i & S_ISUID) ? inode->i_uid : current->euid; |
current | 299 | fs/exec.c | e_gid = (i & S_ISGID) ? inode->i_gid : current->egid; |
current | 301 | fs/exec.c | if (current->euid == inode->i_uid) |
current | 414 | fs/exec.c | current->comm[i++] = ch; |
current | 416 | fs/exec.c | current->comm[i] = '\0'; |
current | 417 | fs/exec.c | if (current->executable) |
current | 418 | fs/exec.c | iput(current->executable); |
current | 419 | fs/exec.c | i = current->numlibraries; |
current | 421 | fs/exec.c | iput(current->libraries[i].library); |
current | 422 | fs/exec.c | current->libraries[i].library = NULL; |
current | 424 | fs/exec.c | current->numlibraries = 0; |
current | 425 | fs/exec.c | current->executable = inode; |
current | 426 | fs/exec.c | current->signal = 0; |
current | 428 | fs/exec.c | current->sigaction[i].sa_mask = 0; |
current | 429 | fs/exec.c | current->sigaction[i].sa_flags = 0; |
current | 430 | fs/exec.c | if (current->sigaction[i].sa_handler != SIG_IGN) |
current | 431 | fs/exec.c | current->sigaction[i].sa_handler = NULL; |
current | 434 | fs/exec.c | if ((current->close_on_exec>>i)&1) |
current | 436 | fs/exec.c | current->close_on_exec = 0; |
current | 437 | fs/exec.c | free_page_tables(get_base(current->ldt[1]),get_limit(0x0f)); |
current | 438 | fs/exec.c | free_page_tables(get_base(current->ldt[2]),get_limit(0x17)); |
current | 439 | fs/exec.c | if (last_task_used_math == current) |
current | 441 | fs/exec.c | current->used_math = 0; |
current | 445 | fs/exec.c | current->brk = ex.a_bss + |
current | 446 | fs/exec.c | (current->end_data = ex.a_data + |
current | 447 | fs/exec.c | (current->end_code = ex.a_text)); |
current | 448 | fs/exec.c | current->start_stack = p; |
current | 449 | fs/exec.c | current->rss = (LIBRARY_OFFSET - p + PAGE_SIZE-1) / PAGE_SIZE; |
current | 450 | fs/exec.c | current->suid = current->euid = e_uid; |
current | 451 | fs/exec.c | current->sgid = current->egid = e_gid; |
current | 456 | fs/exec.c | if (current->flags & PF_PTRACED) |
current | 457 | fs/exec.c | send_sig(SIGTRAP, current, 0); |
current | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->filp[fd]) |
current | 27 | fs/fcntl.c | if (current->filp[arg]) |
current | 33 | fs/fcntl.c | current->close_on_exec &= ~(1<<arg); |
current | 34 | fs/fcntl.c | (current->filp[arg] = current->filp[fd])->f_count++; |
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 | 17 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->filp[fd])) |
current | 177 | fs/minix/bitmap.c | inode->i_uid = current->euid; |
current | 178 | fs/minix/bitmap.c | inode->i_gid = current->egid; |
current | 256 | fs/minix/namei.c | inode->i_uid = current->euid; |
current | 333 | fs/minix/namei.c | inode->i_mode = I_DIRECTORY | (mode & 0777 & ~current->umask); |
current | 414 | fs/minix/namei.c | if ((dir->i_mode & S_ISVTX) && current->euid && |
current | 415 | fs/minix/namei.c | inode->i_uid != current->euid) |
current | 466 | fs/minix/namei.c | current->euid != inode->i_uid && |
current | 467 | fs/minix/namei.c | current->euid != dir->i_uid) |
current | 644 | fs/minix/namei.c | current->counter = 0; |
current | 657 | fs/minix/namei.c | current->euid != old_inode->i_uid && |
current | 658 | 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 | 136 | fs/minix/truncate.c | current->counter = 0; |
current | 46 | fs/namei.c | else if (current->euid == inode->i_uid) |
current | 67 | fs/namei.c | if (dir == current->root) |
current | 122 | fs/namei.c | base = current->pwd; |
current | 127 | fs/namei.c | base = current->root; |
current | 204 | fs/namei.c | mode &= 0777 & ~current->umask; |
current | 70 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 92 | fs/open.c | if (current->euid != inode->i_uid && |
current | 122 | fs/open.c | if (current->uid == inode->i_uid) |
current | 124 | fs/open.c | else if (current->gid == inode->i_gid) |
current | 134 | fs/open.c | if ((!current->uid) && |
current | 154 | fs/open.c | iput(current->pwd); |
current | 155 | fs/open.c | current->pwd = inode; |
current | 173 | fs/open.c | iput(current->root); |
current | 174 | fs/open.c | current->root = inode; |
current | 183 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 187 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) |
current | 200 | fs/open.c | if ((current->euid != inode->i_uid) && !suser()) { |
current | 215 | fs/open.c | if (fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 219 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 236 | fs/open.c | if ((current->euid == inode->i_uid && user == inode->i_uid && |
current | 256 | fs/open.c | if (!current->filp[fd]) |
current | 260 | fs/open.c | current->close_on_exec &= ~(1<<fd); |
current | 266 | fs/open.c | (current->filp[fd] = f)->f_count++; |
current | 268 | fs/open.c | current->filp[fd]=NULL; |
current | 285 | fs/open.c | current->filp[fd]=NULL; |
current | 302 | fs/open.c | current->close_on_exec &= ~(1<<fd); |
current | 303 | fs/open.c | if (!(filp = current->filp[fd])) |
current | 305 | fs/open.c | current->filp[fd] = NULL; |
current | 26 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 56 | fs/pipe.c | current->signal |= (1<<(SIGPIPE-1)); |
current | 59 | fs/pipe.c | if (current->signal & ~current->blocked) |
current | 159 | fs/pipe.c | if (!current->filp[i]) { |
current | 160 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
current | 164 | fs/pipe.c | current->filp[fd[0]]=NULL; |
current | 170 | fs/pipe.c | current->filp[fd[0]] = |
current | 171 | fs/pipe.c | current->filp[fd[1]] = NULL; |
current | 26 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->filp[fd]) || |
current | 41 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->filp[fd]) || !(file->f_inode)) |
current | 74 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 92 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->filp[fd]) || !(inode=file->f_inode)) |
current | 49 | fs/select.c | current->next_wait = NULL; |
current | 52 | fs/select.c | *wait_address = current; |
current | 66 | fs/select.c | if (*tpp && ((*tpp)->next_wait == p->current)) |
current | 86 | fs/select.c | wake_up(&p->current); |
current | 104 | fs/select.c | minor = current->tty; |
current | 194 | fs/select.c | if (!current->filp[i]) |
current | 196 | fs/select.c | if (!current->filp[i]->f_inode) |
current | 198 | fs/select.c | if (current->filp[i]->f_inode->i_pipe) |
current | 200 | fs/select.c | if (S_ISCHR(current->filp[i]->f_inode->i_mode)) |
current | 202 | fs/select.c | if (S_ISFIFO(current->filp[i]->f_inode->i_mode)) |
current | 204 | fs/select.c | if (S_ISSOCK(current->filp[i]->f_inode->i_mode)) |
current | 211 | fs/select.c | wait_table.current = current; |
current | 216 | fs/select.c | current->state = TASK_INTERRUPTIBLE; |
current | 220 | fs/select.c | if (check_in(&wait_table,current->filp[i]->f_inode)) { |
current | 225 | fs/select.c | if (check_out(&wait_table,current->filp[i]->f_inode)) { |
current | 230 | fs/select.c | if (check_ex(&wait_table,current->filp[i]->f_inode)) { |
current | 235 | fs/select.c | if (!(current->signal & ~current->blocked) && |
current | 236 | fs/select.c | current->timeout && !count) { |
current | 242 | fs/select.c | current->state = TASK_RUNNING; |
current | 284 | fs/select.c | current->timeout = timeout; |
current | 286 | fs/select.c | if (current->timeout > jiffies) |
current | 287 | fs/select.c | timeout = current->timeout - jiffies; |
current | 290 | fs/select.c | current->timeout = 0; |
current | 314 | fs/select.c | if (current->signal & ~current->blocked) |
current | 63 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
current | 263 | fs/super.c | current->pwd = mi; |
current | 264 | fs/super.c | current->root = mi; |
current | 132 | include/linux/fs.h | struct task_struct * current; |
current | 20 | include/linux/kernel.h | #define suser() (current->euid == 0) |
current | 103 | include/linux/math_emu.h | #define I387 (current->tss.i387) |
current | 216 | include/linux/sched.h | extern struct task_struct *current; |
current | 217 | kernel/blk_drv/ll_rw_blk.c | req->waiting = current; |
current | 220 | kernel/blk_drv/ll_rw_blk.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 283 | kernel/blk_drv/ll_rw_blk.c | req->waiting = current; |
current | 286 | kernel/blk_drv/ll_rw_blk.c | current->state = TASK_UNINTERRUPTIBLE; |
current | 34 | kernel/chr_drv/pty.c | if (current->signal & ~current->blocked) |
current | 78 | kernel/chr_drv/tty_io.c | while (!(current->signal & ~current->blocked) && EMPTY(queue)) |
current | 102 | kernel/chr_drv/tty_io.c | if (tty->secondary->proc_list != current) |
current | 103 | kernel/chr_drv/tty_io.c | current->counter = 0; |
current | 209 | kernel/chr_drv/tty_io.c | return ((current->blocked & (1<<(sig-1))) || |
current | 210 | kernel/chr_drv/tty_io.c | (current->sigaction[sig-1].sa_handler == SIG_IGN)); |
current | 230 | kernel/chr_drv/tty_io.c | (void) kill_pg(current->pgrp,sig,1); |
current | 231 | kernel/chr_drv/tty_io.c | if (current->sigaction[sig-1].sa_handler) |
current | 252 | kernel/chr_drv/tty_io.c | (current->tty == channel) && |
current | 253 | kernel/chr_drv/tty_io.c | (tty->pgrp != current->pgrp)) |
current | 254 | kernel/chr_drv/tty_io.c | if (is_ignored(SIGTTIN) || is_orphaned_pgrp(current->pgrp)) |
current | 264 | kernel/chr_drv/tty_io.c | current->timeout = 0xffffffff; |
current | 267 | kernel/chr_drv/tty_io.c | current->timeout = 0xffffffff; |
current | 271 | kernel/chr_drv/tty_io.c | current->timeout = time + jiffies; |
current | 275 | kernel/chr_drv/tty_io.c | time = current->timeout = 0; |
current | 285 | kernel/chr_drv/tty_io.c | if (!current->timeout) |
current | 287 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 317 | kernel/chr_drv/tty_io.c | current->timeout = time+jiffies; |
current | 323 | kernel/chr_drv/tty_io.c | current->timeout = 0; |
current | 326 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 343 | kernel/chr_drv/tty_io.c | (current->tty == channel) && (tty->pgrp != current->pgrp)) { |
current | 358 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 393 | kernel/chr_drv/tty_io.c | if (current->signal & ~current->blocked) |
current | 402 | kernel/chr_drv/tty_io.c | i = read_chan(current->tty,file,buf,count); |
current | 422 | kernel/chr_drv/tty_io.c | i = write_chan(current->tty,file,buf,count); |
current | 458 | kernel/chr_drv/tty_io.c | dev = current->tty; |
current | 470 | kernel/chr_drv/tty_io.c | current->leader && |
current | 471 | kernel/chr_drv/tty_io.c | current->tty<0 && |
current | 473 | kernel/chr_drv/tty_io.c | current->tty = dev; |
current | 474 | kernel/chr_drv/tty_io.c | tty->session = current->session; |
current | 475 | kernel/chr_drv/tty_io.c | tty->pgrp = current->pgrp; |
current | 490 | kernel/chr_drv/tty_io.c | dev = current->tty; |
current | 57 | kernel/chr_drv/tty_ioctl.c | while (!(current->signal & ~current->blocked) && !EMPTY(tty->write_q)) { |
current | 59 | kernel/chr_drv/tty_ioctl.c | current->counter = 0; |
current | 77 | kernel/chr_drv/tty_ioctl.c | current->state = TASK_INTERRUPTIBLE; |
current | 78 | kernel/chr_drv/tty_ioctl.c | current->timeout = jiffies + 25; |
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 | 170 | kernel/chr_drv/tty_ioctl.c | if ((current->tty == channel) && |
current | 172 | kernel/chr_drv/tty_ioctl.c | (tty->pgrp != current->pgrp)) { |
current | 173 | kernel/chr_drv/tty_ioctl.c | if (is_orphaned_pgrp(current->pgrp)) |
current | 235 | kernel/chr_drv/tty_ioctl.c | dev = current->tty; |
current | 328 | kernel/chr_drv/tty_ioctl.c | if ((current->tty < 0) || |
current | 329 | kernel/chr_drv/tty_ioctl.c | (current->tty != dev) || |
current | 330 | kernel/chr_drv/tty_ioctl.c | (tty->session != current->session)) |
current | 335 | kernel/chr_drv/tty_ioctl.c | if (session_of_pgrp(pgrp) != current->session) |
current | 24 | kernel/exit.c | if (!priv && ((sig != SIGCONT) || (current->session != p->session)) && |
current | 25 | kernel/exit.c | (current->euid != p->euid) && !suser()) |
current | 62 | kernel/exit.c | if (p == current) { |
current | 233 | kernel/exit.c | return(kill_pg(current->pgrp,sig,0)); |
current | 236 | kernel/exit.c | if (*p && (*p)->pid > 1 && *p != current) { |
current | 292 | kernel/exit.c | free_page_tables(get_base(current->ldt[1]),get_limit(0x0f)); |
current | 293 | kernel/exit.c | free_page_tables(get_base(current->ldt[2]),get_limit(0x17)); |
current | 295 | kernel/exit.c | if (current->filp[i]) |
current | 297 | kernel/exit.c | iput(current->pwd); |
current | 298 | kernel/exit.c | current->pwd = NULL; |
current | 299 | kernel/exit.c | iput(current->root); |
current | 300 | kernel/exit.c | current->root = NULL; |
current | 301 | kernel/exit.c | iput(current->executable); |
current | 302 | kernel/exit.c | current->executable = NULL; |
current | 303 | kernel/exit.c | for (i=0; i < current->numlibraries; i++) { |
current | 304 | kernel/exit.c | iput(current->libraries[i].library); |
current | 305 | kernel/exit.c | current->libraries[i].library = NULL; |
current | 307 | kernel/exit.c | current->state = TASK_ZOMBIE; |
current | 308 | kernel/exit.c | current->exit_code = code; |
current | 309 | kernel/exit.c | current->rss = 0; |
current | 319 | kernel/exit.c | if ((current->p_pptr->pgrp != current->pgrp) && |
current | 320 | kernel/exit.c | (current->p_pptr->session == current->session) && |
current | 321 | kernel/exit.c | is_orphaned_pgrp(current->pgrp) && |
current | 322 | kernel/exit.c | has_stopped_jobs(current->pgrp)) { |
current | 323 | kernel/exit.c | kill_pg(current->pgrp,SIGHUP,1); |
current | 324 | kernel/exit.c | kill_pg(current->pgrp,SIGCONT,1); |
current | 327 | kernel/exit.c | send_sig (SIGCHLD, current->p_pptr, 1); |
current | 337 | kernel/exit.c | while (p = current->p_cptr) { |
current | 338 | kernel/exit.c | current->p_cptr = p->p_osptr; |
current | 353 | kernel/exit.c | if ((p->pgrp != current->pgrp) && |
current | 354 | kernel/exit.c | (p->session == current->session) && |
current | 361 | kernel/exit.c | if (current->leader) { |
current | 365 | kernel/exit.c | if (current->tty >= 0) { |
current | 366 | kernel/exit.c | tty = TTY_TABLE(current->tty); |
current | 373 | kernel/exit.c | if (*p && (*p)->session == current->session) |
current | 376 | kernel/exit.c | if (last_task_used_math == current) |
current | 399 | kernel/exit.c | for (p = current->p_cptr ; p ; p = p->p_osptr) { |
current | 404 | kernel/exit.c | if (p->pgrp != current->pgrp) |
current | 422 | kernel/exit.c | current->cutime += p->utime + p->cutime; |
current | 423 | kernel/exit.c | current->cstime += p->stime + p->cstime; |
current | 424 | kernel/exit.c | current->cmin_flt += p->min_flt + p->cmin_flt; |
current | 425 | kernel/exit.c | current->cmaj_flt += p->maj_flt + p->cmaj_flt; |
current | 442 | kernel/exit.c | current->state=TASK_INTERRUPTIBLE; |
current | 443 | kernel/exit.c | oldblocked = current->blocked; |
current | 444 | kernel/exit.c | current->blocked &= ~(1<<(SIGCHLD-1)); |
current | 446 | kernel/exit.c | current->blocked = oldblocked; |
current | 447 | kernel/exit.c | if (current->signal & ~(current->blocked | (1<<(SIGCHLD-1)))) |
current | 32 | kernel/fork.c | start += get_base(current->ldt[2]); |
current | 47 | kernel/fork.c | old_code_base = get_base(current->ldt[1]); |
current | 48 | kernel/fork.c | old_data_base = get_base(current->ldt[2]); |
current | 50 | kernel/fork.c | printk("ldt[0]: %08x %08x\n",current->ldt[0].a,current->ldt[0].b); |
current | 51 | kernel/fork.c | printk("ldt[1]: %08x %08x\n",current->ldt[1].a,current->ldt[1].b); |
current | 52 | kernel/fork.c | printk("ldt[2]: %08x %08x\n",current->ldt[2].a,current->ldt[2].b); |
current | 108 | kernel/fork.c | *p = *current; /* NOTE! this doesn't copy the supervisor stack */ |
current | 111 | kernel/fork.c | p->p_pptr = current; |
current | 114 | kernel/fork.c | if (p->p_osptr = current->p_cptr) |
current | 116 | kernel/fork.c | current->p_cptr = p; |
current | 149 | kernel/fork.c | if (last_task_used_math == current) |
current | 165 | kernel/fork.c | if (current->pwd) |
current | 166 | kernel/fork.c | current->pwd->i_count++; |
current | 167 | kernel/fork.c | if (current->root) |
current | 168 | kernel/fork.c | current->root->i_count++; |
current | 169 | kernel/fork.c | if (current->executable) |
current | 170 | kernel/fork.c | current->executable->i_count++; |
current | 171 | kernel/fork.c | for (i=0; i < current->numlibraries ; i++) |
current | 172 | kernel/fork.c | if (current->libraries[i].library) |
current | 173 | kernel/fork.c | current->libraries[i].library->i_count++; |
current | 31 | kernel/ioport.c | int numl = sizeof(current->tss.io_bitmap) >> 2; |
current | 36 | kernel/ioport.c | printk("%s ", ios(current->tss.io_bitmap[j++])); |
current | 38 | kernel/ioport.c | printk("%s", ios(current->tss.io_bitmap[j++])); |
current | 60 | kernel/ioport.c | if (froml * 32 + tnum > sizeof(current->tss.io_bitmap) * 8 - 8) |
current | 68 | kernel/ioport.c | iop = (unsigned long *)current->tss.io_bitmap + froml; |
current | 482 | kernel/math/emulate.c | if (!current->used_math) { |
current | 483 | kernel/math/emulate.c | current->used_math = 1; |
current | 494 | kernel/math/emulate.c | current->signal |= signal; |
current | 541 | kernel/math/emulate.c | current->signal |= 1<<(SIGFPE-1); |
current | 19 | kernel/panic.c | if (current == task[0]) |
current | 60 | kernel/printk.c | if (current->signal & ~current->blocked) |
current | 229 | kernel/ptrace.c | current->flags |= PF_PTRACED; |
current | 240 | kernel/ptrace.c | if (child->p_pptr != current || !(child->flags & PF_PTRACED) || |
current | 81 | kernel/sched.c | struct task_struct *current = &(init_task.task); |
current | 98 | kernel/sched.c | if (last_task_used_math == current) |
current | 104 | kernel/sched.c | last_task_used_math=current; |
current | 105 | kernel/sched.c | if (current->used_math) { |
current | 106 | kernel/sched.c | __asm__("frstor %0"::"m" (current->tss.i387)); |
current | 109 | kernel/sched.c | current->used_math=1; |
current | 172 | kernel/sched.c | struct sigaction * sa = current->sigaction; |
current | 174 | kernel/sched.c | old_blocked = current->blocked; |
current | 177 | kernel/sched.c | current->blocked |= mask; |
current | 178 | kernel/sched.c | current->state = TASK_INTERRUPTIBLE; |
current | 180 | kernel/sched.c | current->blocked = old_blocked; |
current | 200 | kernel/sched.c | if (wakeup_ptr->counter > current->counter) |
current | 216 | kernel/sched.c | if (current == task[0]) |
current | 219 | kernel/sched.c | current->next_wait = *p; |
current | 221 | kernel/sched.c | *p = current; |
current | 222 | kernel/sched.c | current->state = state; |
current | 225 | kernel/sched.c | if (current->next_wait != task[0]) |
current | 227 | kernel/sched.c | current->next_wait = NULL; |
current | 394 | kernel/sched.c | current->utime++; |
current | 396 | kernel/sched.c | current->stime++; |
current | 415 | kernel/sched.c | if ((--current->counter)<=0) { |
current | 416 | kernel/sched.c | current->counter=0; |
current | 423 | kernel/sched.c | int old = current->alarm; |
current | 427 | kernel/sched.c | current->alarm = (seconds>0)?(jiffies+HZ*seconds):0; |
current | 433 | kernel/sched.c | return current->pid; |
current | 438 | kernel/sched.c | return current->p_pptr->pid; |
current | 443 | kernel/sched.c | return current->uid; |
current | 448 | kernel/sched.c | return current->euid; |
current | 453 | kernel/sched.c | return current->gid; |
current | 458 | kernel/sched.c | return current->egid; |
current | 465 | kernel/sched.c | if (increment >= current->priority) |
current | 466 | kernel/sched.c | increment = current->priority-1; |
current | 467 | kernel/sched.c | current->priority -= increment; |
current | 17 | kernel/signal.c | return current->blocked; |
current | 22 | kernel/signal.c | int old=current->blocked; |
current | 24 | kernel/signal.c | current->blocked = newmask & ~(1<<(SIGKILL-1)) & ~(1<<(SIGSTOP-1)); |
current | 32 | kernel/signal.c | put_fs_long(current->blocked & current->signal, (unsigned long *)set); |
current | 55 | kernel/signal.c | current->blocked = old_mask; |
current | 60 | kernel/signal.c | *(&old_mask) = current->blocked; |
current | 61 | kernel/signal.c | current->blocked = set; |
current | 96 | kernel/signal.c | handler = (long) current->sigaction[signum-1].sa_handler; |
current | 97 | kernel/signal.c | current->sigaction[signum-1] = tmp; |
current | 108 | kernel/signal.c | tmp = current->sigaction[signum-1]; |
current | 110 | kernel/signal.c | (char *) (signum-1+current->sigaction)); |
current | 113 | kernel/signal.c | if (current->sigaction[signum-1].sa_flags & SA_NOMASK) |
current | 114 | kernel/signal.c | current->sigaction[signum-1].sa_mask = 0; |
current | 116 | kernel/signal.c | current->sigaction[signum-1].sa_mask |= (1<<(signum-1)); |
current | 140 | kernel/signal.c | struct sigaction * sa = current->sigaction + signr - 1; |
current | 147 | kernel/signal.c | current->pid, signr, eax, orig_eax, |
current | 179 | kernel/signal.c | current->state = TASK_STOPPED; |
current | 180 | kernel/signal.c | current->exit_code = signr; |
current | 181 | kernel/signal.c | if (!(current->p_pptr->sigaction[SIGCHLD-1].sa_flags & |
current | 183 | kernel/signal.c | send_sig(SIGCHLD, current->p_pptr, 1); |
current | 214 | kernel/signal.c | put_fs_long(current->blocked,tmp_esp++); |
current | 220 | 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 | 184 | kernel/sys.c | if ((current->gid == rgid) || |
current | 186 | kernel/sys.c | current->gid = rgid; |
current | 191 | kernel/sys.c | if ((current->gid == egid) || |
current | 192 | kernel/sys.c | (current->egid == egid) || |
current | 194 | kernel/sys.c | current->egid = egid; |
current | 195 | kernel/sys.c | current->sgid = egid; |
current | 208 | kernel/sys.c | current->gid = current->egid = current->sgid = gid; |
current | 209 | kernel/sys.c | else if ((gid == current->gid) || (gid == current->sgid)) |
current | 210 | kernel/sys.c | current->egid = gid; |
current | 268 | kernel/sys.c | int old_ruid = current->uid; |
current | 271 | kernel/sys.c | if ((current->euid==ruid) || |
current | 274 | kernel/sys.c | current->uid = ruid; |
current | 280 | kernel/sys.c | (current->euid == euid) || |
current | 282 | kernel/sys.c | current->euid = euid; |
current | 283 | kernel/sys.c | current->suid = euid; |
current | 285 | kernel/sys.c | current->uid = old_ruid; |
current | 306 | kernel/sys.c | current->uid = current->euid = current->suid = uid; |
current | 307 | kernel/sys.c | else if ((uid == current->uid) || (uid == current->suid)) |
current | 308 | kernel/sys.c | current->euid = uid; |
current | 327 | kernel/sys.c | put_fs_long(current->utime,(unsigned long *)&tbuf->tms_utime); |
current | 328 | kernel/sys.c | put_fs_long(current->stime,(unsigned long *)&tbuf->tms_stime); |
current | 329 | kernel/sys.c | put_fs_long(current->cutime,(unsigned long *)&tbuf->tms_cutime); |
current | 330 | kernel/sys.c | put_fs_long(current->cstime,(unsigned long *)&tbuf->tms_cstime); |
current | 337 | kernel/sys.c | if (end_data_seg >= current->end_code && |
current | 338 | kernel/sys.c | end_data_seg < current->start_stack - 16384) |
current | 339 | kernel/sys.c | current->brk = end_data_seg; |
current | 340 | kernel/sys.c | return current->brk; |
current | 357 | kernel/sys.c | pid = current->pid; |
current | 359 | kernel/sys.c | pgid = current->pid; |
current | 364 | kernel/sys.c | ((task[i]->p_pptr == current) || |
current | 365 | kernel/sys.c | (task[i] == current))) { |
current | 368 | kernel/sys.c | if ((task[i]->session != current->session) || |
current | 370 | kernel/sys.c | (session_of_pgrp(pgid) != current->session))) |
current | 380 | kernel/sys.c | return current->pgrp; |
current | 385 | kernel/sys.c | if (current->leader && !suser()) |
current | 387 | kernel/sys.c | current->leader = 1; |
current | 388 | kernel/sys.c | current->session = current->pgrp = current->pid; |
current | 389 | kernel/sys.c | current->tty = -1; |
current | 390 | kernel/sys.c | return current->pgrp; |
current | 403 | kernel/sys.c | for (i = 0; (i < NGROUPS) && (current->groups[i] != NOGROUP); |
current | 408 | kernel/sys.c | put_fs_word(current->groups[i], (short *) grouplist); |
current | 423 | kernel/sys.c | current->groups[i] = get_fs_word((unsigned short *) grouplist); |
current | 426 | kernel/sys.c | current->groups[i] = NOGROUP; |
current | 434 | kernel/sys.c | if (grp == current->egid) |
current | 438 | kernel/sys.c | if (current->groups[i] == NOGROUP) |
current | 440 | kernel/sys.c | if (current->groups[i] == grp) |
current | 488 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_cur, |
current | 490 | kernel/sys.c | put_fs_long(current->rlim[resource].rlim_max, |
current | 501 | kernel/sys.c | old = current->rlim + resource; |
current | 530 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(current->utime); |
current | 531 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(current->utime); |
current | 532 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(current->stime); |
current | 533 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(current->stime); |
current | 534 | kernel/sys.c | r.ru_minflt = current->min_flt; |
current | 535 | kernel/sys.c | r.ru_majflt = current->maj_flt; |
current | 537 | kernel/sys.c | r.ru_utime.tv_sec = CT_TO_SECS(current->cutime); |
current | 538 | kernel/sys.c | r.ru_utime.tv_usec = CT_TO_USECS(current->cutime); |
current | 539 | kernel/sys.c | r.ru_stime.tv_sec = CT_TO_SECS(current->cstime); |
current | 540 | kernel/sys.c | r.ru_stime.tv_usec = CT_TO_USECS(current->cstime); |
current | 541 | kernel/sys.c | r.ru_minflt = current->cmin_flt; |
current | 542 | kernel/sys.c | r.ru_majflt = current->cmaj_flt; |
current | 629 | kernel/sys.c | int old = current->umask; |
current | 631 | kernel/sys.c | current->umask = mask & 0777; |
current | 74 | kernel/traps.c | printk("base: %p, limit: %p\n",get_base(current->ldt[1]),get_limit(0x17)); |
current | 82 | kernel/traps.c | printk("Pid: %d, process nr: %d\n\r",current->pid,0xffff & i); |
current | 87 | kernel/traps.c | send_sig(SIGSEGV, current, 0); |
current | 114 | kernel/traps.c | send_sig(SIGTRAP, current, 0); |
current | 124 | kernel/traps.c | send_sig(SIGTRAP, current, 0); |
current | 169 | kernel/traps.c | if (last_task_used_math != current) |
current | 40 | mm/memory.c | current->start_code + current->end_code) |
current | 168 | mm/memory.c | ++current->rss; |
current | 226 | mm/memory.c | --current->rss; |
current | 305 | mm/memory.c | --current->rss; |
current | 322 | mm/memory.c | ++current->rss; |
current | 469 | mm/memory.c | if (address - current->start_code >= TASK_SIZE) { |
current | 473 | mm/memory.c | ++current->min_flt; |
current | 520 | mm/memory.c | to_page += ((current->start_code>>20) & 0xffc); |
current | 573 | mm/memory.c | if (current == *p) |
current | 629 | mm/memory.c | current->counter = 0; |
current | 681 | mm/memory.c | if (tsk != current) |
current | 690 | mm/memory.c | if (tsk == current) |
current | 795 | mm/memory.c | do_no_page(error_code, address, current, user_esp); |
current | 38 | mm/mmap.c | current->start_code + current->end_code) |
current | 103 | mm/mmap.c | if (fd >= NR_OPEN || fd < 0 || !(file = current->filp[fd])) |
current | 135 | mm/mmap.c | base = get_base(current->ldt[1]); /* cs */ |
current | 138 | mm/mmap.c | base = get_base(current->ldt[2]); /* ds */ |
current | 187 | mm/mmap.c | base = get_base(current->ldt[2]); /* map into ds */ |
current | 82 | net/socket.c | if (!current->filp[fd]) |
current | 86 | net/socket.c | current->close_on_exec &= ~(1 << fd); |
current | 92 | net/socket.c | current->filp[fd] = file; |
current | 110 | net/socket.c | current->filp[fd]->f_inode = NULL; /* safe from iput */ |
current | 130 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->filp[fd])) |
current | 178 | net/socket.c | if (current->signal & ~current->blocked) { |
current | 588 | net/socket.c | if (current->signal & ~current->blocked) { |
current | 268 | net/unix.c | old_euid = current->euid; |
current | 269 | net/unix.c | current->euid = 0; |
current | 271 | net/unix.c | current->euid = old_euid; |
current | 413 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 432 | net/unix.c | current->signal |= (1 << (SIGKILL-1)); |
current | 470 | net/unix.c | current->signal |= (1 << (SIGPIPE-1)); |
current | 482 | net/unix.c | if (current->signal & ~current->blocked) { |
current | 488 | net/unix.c | current->signal |= (1 << (SIGPIPE-1)); |
current | 502 | net/unix.c | current->signal |= (1 << (SIGKILL-1)); |
current | 511 | net/unix.c | current->signal |= (1 << (SIGPIPE-1)); |