summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-16 05:38:07 +0000
committerbde <bde@FreeBSD.org>2002-02-16 05:38:07 +0000
commit9d93d68752713124d352c46f5c3578f93f301c4d (patch)
treecc8858392cf6b097ffb05647089d25d4ee672960 /sys/fs
parentd4bcf41e4a9c4c3dd762331c5084a6b7fedc9158 (diff)
downloadFreeBSD-src-9d93d68752713124d352c46f5c3578f93f301c4d.zip
FreeBSD-src-9d93d68752713124d352c46f5c3578f93f301c4d.tar.gz
FIxed the following style bugs:
- clobbering of jsp's $Id$ by FreeBSD's old $Id$. - lost Berkeley id in procfs_dbregs.c - long lines in recent KSE changes. - various gratuitous differences between procfs_*regs.c.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/procfs/procfs_dbregs.c12
-rw-r--r--sys/fs/procfs/procfs_fpregs.c8
-rw-r--r--sys/fs/procfs/procfs_regs.c12
3 files changed, 21 insertions, 11 deletions
diff --git a/sys/fs/procfs/procfs_dbregs.c b/sys/fs/procfs/procfs_dbregs.c
index eb1991d..e5fc59e 100644
--- a/sys/fs/procfs/procfs_dbregs.c
+++ b/sys/fs/procfs/procfs_dbregs.c
@@ -40,6 +40,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * From: @(#)procfs_regs.c 8.4 (Berkeley) 6/15/94
+ *
+ * From:
+ * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
* $FreeBSD$
*/
@@ -64,7 +68,7 @@ procfs_doprocdbregs(PFS_FILL_ARGS)
char *kv;
int kl;
- if (p_candebug(td->td_proc, p) != 0)
+ if (p_candebug(td->td_proc, p))
return (EPERM);
kl = sizeof(r);
kv = (char *) &r;
@@ -78,14 +82,16 @@ procfs_doprocdbregs(PFS_FILL_ARGS)
if (kl < 0)
error = EINVAL;
else
- error = proc_read_dbregs(FIRST_THREAD_IN_PROC(p), &r); /* XXXKSE */
+ /* XXXKSE: */
+ error = proc_read_dbregs(FIRST_THREAD_IN_PROC(p), &r);
if (error == 0)
error = uiomove(kv, kl, uio);
if (error == 0 && uio->uio_rw == UIO_WRITE) {
if (p->p_stat != SSTOP)
error = EBUSY;
else
- error = proc_write_dbregs(FIRST_THREAD_IN_PROC(p), &r); /* XXXKSE */
+ /* XXXKSE: */
+ error = proc_write_dbregs(FIRST_THREAD_IN_PROC(p), &r);
}
PRELE(p);
diff --git a/sys/fs/procfs/procfs_fpregs.c b/sys/fs/procfs/procfs_fpregs.c
index f1ba6f6..8501d9a 100644
--- a/sys/fs/procfs/procfs_fpregs.c
+++ b/sys/fs/procfs/procfs_fpregs.c
@@ -1,4 +1,4 @@
-/*
+/*-
* Copyright (c) 1993 Jan-Simon Pendry
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -37,6 +37,7 @@
* @(#)procfs_fpregs.c 8.2 (Berkeley) 6/15/94
*
* From:
+ * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
* $FreeBSD$
*/
@@ -62,7 +63,7 @@ procfs_doprocfpregs(PFS_FILL_ARGS)
int kl;
if (p_candebug(td->td_proc, p))
- return EPERM;
+ return (EPERM);
kl = sizeof(r);
kv = (char *) &r;
@@ -72,10 +73,10 @@ procfs_doprocfpregs(PFS_FILL_ARGS)
kl = uio->uio_resid;
PHOLD(p);
-
if (kl < 0)
error = EINVAL;
else
+ /* XXXKSE: */
error = proc_read_fpregs(FIRST_THREAD_IN_PROC(p), &r);
if (error == 0)
error = uiomove(kv, kl, uio);
@@ -83,6 +84,7 @@ procfs_doprocfpregs(PFS_FILL_ARGS)
if (p->p_stat != SSTOP)
error = EBUSY;
else
+ /* XXXKSE: */
error = proc_write_fpregs(FIRST_THREAD_IN_PROC(p), &r);
}
PRELE(p);
diff --git a/sys/fs/procfs/procfs_regs.c b/sys/fs/procfs/procfs_regs.c
index 62a0bc0..77cd847 100644
--- a/sys/fs/procfs/procfs_regs.c
+++ b/sys/fs/procfs/procfs_regs.c
@@ -1,4 +1,4 @@
-/*
+/*-
* Copyright (c) 1993 Jan-Simon Pendry
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -37,6 +37,7 @@
* @(#)procfs_regs.c 8.4 (Berkeley) 6/15/94
*
* From:
+ * $Id: procfs_regs.c,v 3.2 1993/12/15 09:40:17 jsp Exp $
* $FreeBSD$
*/
@@ -62,7 +63,7 @@ procfs_doprocregs(PFS_FILL_ARGS)
int kl;
if (p_candebug(td->td_proc, p))
- return EPERM;
+ return (EPERM);
kl = sizeof(r);
kv = (char *) &r;
@@ -72,18 +73,19 @@ procfs_doprocregs(PFS_FILL_ARGS)
kl = uio->uio_resid;
PHOLD(p);
-
if (kl < 0)
error = EINVAL;
else
- error = proc_read_regs(FIRST_THREAD_IN_PROC(p), &r); /* XXXKSE */
+ /* XXXKSE: */
+ error = proc_read_regs(FIRST_THREAD_IN_PROC(p), &r);
if (error == 0)
error = uiomove(kv, kl, uio);
if (error == 0 && uio->uio_rw == UIO_WRITE) {
if (p->p_stat != SSTOP)
error = EBUSY;
else
- error = proc_write_regs(FIRST_THREAD_IN_PROC(p), &r); /* XXXKSE */
+ /* XXXKSE: */
+ error = proc_write_regs(FIRST_THREAD_IN_PROC(p), &r);
}
PRELE(p);
OpenPOWER on IntegriCloud