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.
This commit is contained in:
parent
ff3741f519
commit
a76d60f014
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user