aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2002-02-16 05:38:07 +0000
committerBruce Evans <bde@FreeBSD.org>2002-02-16 05:38:07 +0000
commita76d60f014296465942ba2f0e4796f6a35c43012 (patch)
treecc8858392cf6b097ffb05647089d25d4ee672960 /sys/fs/procfs
parentff3741f519dc71a621e9bc625fa40e1725e67dc7 (diff)
downloadsrc-a76d60f014296465942ba2f0e4796f6a35c43012.tar.gz
src-a76d60f014296465942ba2f0e4796f6a35c43012.zip
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.
Notes
Notes: svn path=/head/; revision=90716
Diffstat (limited to 'sys/fs/procfs')
-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 eb1991d83cd8..e5fc59e00f6f 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 f1ba6f6d880e..8501d9a91ff8 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 62a0bc0bb0df..77cd84778319 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);