[ Pobierz całość w formacie PDF ]
.ru_majflt = p->maj_flt + p->cmaj_flt;r.ru_nswap = p->nswap + p->cnswap;break;}memcpy_tofs(ru, &r, sizeof(r));return 0;}asmlinkage int sys_getrusage(int who, struct rusage *ru){if (who != RUSAGE_SELF && who != RUSAGE_CHILDREN)return -EINVAL;return getrusage(current, who, ru);}asmlinkage int sys_umask(int mask){int old = current->fs->umask;current->fs->umask = mask & S_IRWXUGO;return (old);}
[ Pobierz całość w formacie PDF ]