From 0fdbc4f1ffc649f55cb02ba8689ebaa1cb6166de Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Mon, 2 Aug 2010 11:08:32 +0200 Subject: [PATCH] {fetch,store}.9: Move casuword() from fetch(9) to store(9). --- share/man/man9/Makefile | 4 ++-- share/man/man9/fetch.9 | 17 +---------------- share/man/man9/store.9 | 19 +++++++++++++++++-- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 03dd883ef0..6dc8f9d6f5 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -410,7 +410,6 @@ MLINKS+=EVENTHANDLER.9 EVENTHANDLER_DECLARE.9 \ EVENTHANDLER.9 EVENTHANDLER_REGISTER.9 \ EVENTHANDLER.9 eventhandler_register.9 MLINKS+=fetch.9 fubyte.9 \ - fetch.9 casuword.9 \ fetch.9 fusword.9 \ fetch.9 fuword.9 MLINKS+=firmware.9 firmware_get.9 \ @@ -744,7 +743,8 @@ MLINKS+=spinlock.9 spin_init.9 \ spinlock.9 spin_unlock_rd_quick.9 \ spinlock.9 spin_unlock_wr.9 \ spinlock.9 spin_unlock_wr_quick.9 -MLINKS+=store.9 subyte.9 \ +MLINKS+=store.9 casuword.9 \ + store.9 subyte.9 \ store.9 susword.9 \ store.9 suword.9 MLINKS+=syscall.9 syscalls.master.5 diff --git a/share/man/man9/fetch.9 b/share/man/man9/fetch.9 index 488f164528..e0f4e72752 100644 --- a/share/man/man9/fetch.9 +++ b/share/man/man9/fetch.9 @@ -40,7 +40,6 @@ .Os .Sh NAME .Nm fetch , -.Nm casuword , .Nm fubyte , .Nm fusword , .Nm fuword @@ -50,8 +49,6 @@ .In sys/time.h .In sys/systm.h .In sys/resourcevar.h -.Ft u_long -.Fn casuword "u_long *base" "u_long oldval" "u_long newval" .Ft int .Fn fubyte "const void *base" .Ft int @@ -66,19 +63,7 @@ functions are designed to copy small amounts of data from user-space. The .Nm routines provide the following functionality: -.Bl -tag -width ".Fn casuword" -.It Fn casuword -Compares -.Fa oldval -with the word at -.Fa base , -and if equal, -.Fa base -is set to -.Fa newval . -The old value at -.Fa base -is then returned. +.Bl -tag -width ".Fn fusword" .It Fn fubyte Fetches a byte of data from the user-space address .Fa base . diff --git a/share/man/man9/store.9 b/share/man/man9/store.9 index 918aa24f74..5a968cc3b2 100644 --- a/share/man/man9/store.9 +++ b/share/man/man9/store.9 @@ -35,11 +35,12 @@ .\" $FreeBSD: src/share/man/man9/store.9,v 1.7.2.4 2001/12/17 11:30:19 ru Exp $ .\" $DragonFly: src/share/man/man9/store.9,v 1.4 2007/04/07 19:29:52 swildner Exp $ .\" -.Dd January 7, 1996 +.Dd August 2, 2010 .Dt STORE 9 .Os .Sh NAME .Nm store , +.Nm casuword , .Nm subyte , .Nm susword , .Nm suword @@ -49,6 +50,8 @@ .In sys/time.h .In sys/systm.h .In sys/resourcevar.h +.Ft u_long +.Fn casuword "u_long *base" "u_long oldval" "u_long newval" .Ft int .Fn subyte "void *base" "int byte" .Ft int @@ -63,7 +66,19 @@ functions are designed to copy small amounts of data to user-space. The .Nm routines provide the following functionality: -.Bl -tag -width ".Fn susword" +.Bl -tag -width ".Fn casuword" +.It Fn casuword +Compares +.Fa oldval +with the word at +.Fa base , +and if equal, +.Fa base +is set to +.Fa newval . +The old value at +.Fa base +is then returned. .It Fn subyte Stores a byte of data to the user-space address .Fa base . -- 2.41.0