vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Bored w/class cancelled for the evening, I took some time to go through and clean up some comments. - Bert Index: src/sys/kern/exec_elf.c ================================================== ================= RCS file: /cvs/src/sys/kern/exec_elf.c,v retrieving revision 1.54 diff -u -r1.54 exec_elf.c --- src/sys/kern/exec_elf.c 10 Jul 2006 20:00:08 -0000 1.54 +++ src/sys/kern/exec_elf.c 14 Nov 2006 03:01:28 -0000 @@ -639,7 +639,7 @@ switch (ph[i].p_type) { case PT_LOAD: /* - * Calcuates size of text and data segments + * Calculates size of text and data segments * by starting at first and going to end of last. * 'rwx' sections are treated as data. * this is correct for BSS_PLT, but may not be Index: src/sys/kern/exec_script.c ================================================== ================= RCS file: /cvs/src/sys/kern/exec_script.c,v retrieving revision 1.23 diff -u -r1.23 exec_script.c --- src/sys/kern/exec_script.c 12 Nov 2005 04:31:24 -0000 1.23 +++ src/sys/kern/exec_script.c 14 Nov 2006 03:07:11 -0000 @@ -60,7 +60,7 @@ * exec_script_makecmds(): Check if it's an executable shell script. * * Given a proc pointer and an exec package pointer, see if the referent - * of the epp is in shell script. If it is, then set thing up so that + * of the epp is in shell script. If it is, then set things up so that * the script can be run. This involves preparing the address space * and arguments for the shell which will run the script. * @@ -125,7 +125,7 @@ cp++) ; - /* collect the shell name; remember it's length for later */ + /* collect the shell name; remember its length for later */ shellname = cp; shellnamelen = 0; if (*cp == '\0') @@ -169,7 +169,7 @@ * if the script isn't readable, or it's set-id, then we've * gotta supply a "/dev/fd/..." for the shell to read. * Note that stupid shells (csh) do the wrong thing, and - * close all open fd's when the start. That kills this + * close all open fd's when they start. That kills this * method of implementing "safe" set-id and x-only scripts. */ vn_lock(scriptvp, LK_EXCLUSIVE|LK_RETRY, p); @@ -274,7 +274,7 @@ epp->ep_fa = shellargp; #ifdef SETUIDSCRIPTS /* - * set thing up so that set-id scripts will be + * set things up so that set-id scripts will be * handled appropriately */ epp->ep_vap->va_mode |= script_sbits; Index: src/sys/kern/init_main.c ================================================== ================= RCS file: /cvs/src/sys/kern/init_main.c,v retrieving revision 1.130 diff -u -r1.130 init_main.c --- src/sys/kern/init_main.c 6 May 2006 23:02:36 -0000 1.130 +++ src/sys/kern/init_main.c 14 Nov 2006 03:07:28 -0000 @@ -423,7 +423,7 @@ panic("fork init"); /* - * Create any kernel threads who's creation was deferred because + * Create any kernel threads whose creation was deferred because * initproc had not yet been created. */ kthread_run_deferred_queue(); Index: src/sys/kern/exec_subr.c ================================================== ================= RCS file: /cvs/src/sys/kern/exec_subr.c,v retrieving revision 1.27 diff -u -r1.27 exec_subr.c --- src/sys/kern/exec_subr.c 26 Jul 2006 19:11:01 -0000 1.27 +++ src/sys/kern/exec_subr.c 14 Nov 2006 03:13:16 -0000 @@ -170,7 +170,7 @@ struct exec_vmcmd *cmd; { /* - * note that if you're going to map part of an process as being + * note that if you're going to map part of a process as being * paged from a vnode, that vnode had damn well better be marked as * VTEXT. that's handled in the routine which sets up the vmcmd to * call this routine. Index: src/sys/kern/clock_subr.c ================================================== ================= RCS file: /cvs/src/sys/kern/clock_subr.c,v retrieving revision 1.1 diff -u -r1.1 clock_subr.c --- src/sys/kern/clock_subr.c 19 Jun 2006 15:13:35 -0000 1.1 +++ src/sys/kern/clock_subr.c 14 Nov 2006 03:14:37 -0000 @@ -92,7 +92,7 @@ year = dt->dt_year; /* - * Compute days since start of time + * Compute days since start of time. * First from years, then from months. */ days = 0; Index: src/sys/kern/kern_acct.c ================================================== ================= RCS file: /cvs/src/sys/kern/kern_acct.c,v retrieving revision 1.18 diff -u -r1.18 kern_acct.c --- src/sys/kern/kern_acct.c 5 Jan 2006 03:18:46 -0000 1.18 +++ src/sys/kern/kern_acct.c 14 Nov 2006 03:19:00 -0000 @@ -109,7 +109,7 @@ /* * If accounting is to be started to a file, open that file for - * writing and make sure it's a 'normal'. + * writing and make sure it's 'normal'. */ if (SCARG(uap, path) != NULL) { NDINIT(&nd, LOOKUP, NOFOLLOW, UIO_USERSPACE, SCARG(uap, path), Index: src/sys/kern/kern_descrip.c ================================================== ================= RCS file: /cvs/src/sys/kern/kern_descrip.c,v retrieving revision 1.74 diff -u -r1.74 kern_descrip.c --- src/sys/kern/kern_descrip.c 7 May 2006 20:12:41 -0000 1.74 +++ src/sys/kern/kern_descrip.c 14 Nov 2006 03:36:01 -0000 @@ -609,8 +609,10 @@ error = (*fp->f_ops->fo_stat)(fp, &ub, p); FRELE(fp); if (error == 0) { - /* Don't let non-root see generation numbers - (for NFS security) */ + /* + * Don't let non-root see generation numbers + * (for NFS security) + */ if (suser(p, 0)) ub.st_gen = 0; error = copyout((caddr_t)&ub, (caddr_t)SCARG(uap, sb), |