summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-19 00:33:38 +0000
committerdes <des@FreeBSD.org>2003-03-19 00:33:38 +0000
commite97206db4c1aff2243069581f7f163b256145c38 (patch)
tree2de43701f1d4ab9a2a36aa49d0d4bc086034820f /sys/kern
parentce68d8fa2273a645135a8305c067ea2b9522f000 (diff)
downloadFreeBSD-src-e97206db4c1aff2243069581f7f163b256145c38.zip
FreeBSD-src-e97206db4c1aff2243069581f7f163b256145c38.tar.gz
Whitespace cleanup.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exit.c20
-rw-r--r--sys/kern/sys_process.c10
2 files changed, 15 insertions, 15 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 168900f..4dd360e 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -178,11 +178,11 @@ exit1(td, rv)
/*
* All other activity in this process is now stopped.
* Remove excess KSEs and KSEGRPS. XXXKSE (when we have them)
- * ...
+ * ...
* Turn off threading support.
*/
p->p_flag &= ~P_THREADED;
- thread_single_end(); /* Don't need this any more. */
+ thread_single_end(); /* Don't need this any more. */
}
/*
* With this state set:
@@ -208,7 +208,7 @@ exit1(td, rv)
PROC_UNLOCK(q);
q = q->p_peers;
}
- while (p->p_peers != NULL)
+ while (p->p_peers != NULL)
msleep(p, &ppeers_lock, PWAIT, "exit1", 0);
mtx_unlock(&ppeers_lock);
}
@@ -219,12 +219,12 @@ exit1(td, rv)
STOPEVENT(p, S_EXIT, rv);
wakeup(&p->p_stype); /* Wakeup anyone in procfs' PIOCWAIT */
- /*
+ /*
* Check if any loadable modules need anything done at process exit.
* e.g. SYSV IPC stuff
* XXX what if one of these generates an error?
*/
- TAILQ_FOREACH(ep, &exit_list, next)
+ TAILQ_FOREACH(ep, &exit_list, next)
(*ep->function)(p);
@@ -479,7 +479,7 @@ exit1(td, rv)
if (p->p_flag & P_KTHREAD)
wakeup(p);
PROC_UNLOCK(p);
-
+
/*
* Finally, call machine-dependent code to release the remaining
* resources including address space.
@@ -514,7 +514,7 @@ exit1(td, rv)
/*
* Make sure the scheduler takes this thread out of its tables etc.
* This will also release this thread's reference to the ucred.
- * Other thread parts to release include pcb bits and such.
+ * Other thread parts to release include pcb bits and such.
*/
thread_exit();
}
@@ -592,7 +592,7 @@ loop:
}
/*
- * This special case handles a kthread spawned by linux_clone
+ * This special case handles a kthread spawned by linux_clone
* (see linux_misc.c). The linux_wait4 and linux_waitpid
* functions need to be able to distinguish between waiting
* on a process and waiting on a thread. It is a thread if
@@ -824,7 +824,7 @@ proc_reparent(child, parent)
/*
* The next two functions are to handle adding/deleting items on the
* exit callout list
- *
+ *
* at_exit():
* Take the arguments given and put them onto the exit callout list,
* However first make sure that it's not already there.
@@ -839,7 +839,7 @@ at_exit(function)
#ifdef INVARIANTS
/* Be noisy if the programmer has lost track of things */
- if (rm_at_exit(function))
+ if (rm_at_exit(function))
printf("WARNING: exit callout entry (%p) already present\n",
function);
#endif
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index c3c5414..812193d 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -90,7 +90,7 @@
mtx_unlock_spin(&sched_lock); \
return (error); \
} while(0)
-
+
int
proc_read_regs(struct thread *td, struct reg *regs)
{
@@ -248,7 +248,7 @@ proc_rwmem(struct proc *p, struct uio *uio)
pindex += OFF_TO_IDX(object->backing_object_offset);
object = object->backing_object;
-
+
m = vm_page_lookup(object, pindex);
}
@@ -410,7 +410,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
default:
break;
}
-
+
write = 0;
if (req == PT_TRACE_ME) {
p = td->td_proc;
@@ -435,7 +435,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
error = EINVAL;
goto fail;
}
-
+
/*
* Permissions check
*/
@@ -607,7 +607,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
} else if (data)
psignal(p, data);
PROC_UNLOCK(p);
-
+
return (0);
case PT_WRITE_I:
OpenPOWER on IntegriCloud