From ea234afcbdf52752a6c2d2db8720a386e656a0d1 Mon Sep 17 00:00:00 2001 From: pjd Date: Fri, 13 Feb 2004 08:42:10 +0000 Subject: [PATCH] Update manual pages: the name of function g_access_rel() has changed to g_access(). Approved by: scottl (mentor) --- share/man/man9/g_attach.9 | 6 +++--- share/man/man9/g_consumer.9 | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/share/man/man9/g_attach.9 b/share/man/man9/g_attach.9 index 9ed77f0043a9..d7b5300957b1 100644 --- a/share/man/man9/g_attach.9 +++ b/share/man/man9/g_attach.9 @@ -42,7 +42,7 @@ The .Fn g_attach function attaches given consumer to given provider. For real provider access (ie. I/O operations), one still need to call the -.Fn g_access_rel +.Fn g_access function on consumer to gain access to attached provider. .Pp The @@ -101,7 +101,7 @@ some_function(struct g_geom *mygeom, struct g_provider *pp) return; } /* Open provider for reading through our consumer. */ - if (g_access_rel(cp, 1, 0, 0) != 0) { + if (g_access(cp, 1, 0, 0) != 0) { g_detach(cp); g_destroy_consumer(cp); return; @@ -114,7 +114,7 @@ some_function(struct g_geom *mygeom, struct g_provider *pp) g_topology_lock(); /* Disconnect from provider (release access count). */ - g_access_rel(cp, -1, 0, 0); + g_access(cp, -1, 0, 0); /* Detach from provider. */ g_detach(cp); /* Destroy consumer. */ diff --git a/share/man/man9/g_consumer.9 b/share/man/man9/g_consumer.9 index 17b6c118110a..63094cebb83d 100644 --- a/share/man/man9/g_consumer.9 +++ b/share/man/man9/g_consumer.9 @@ -104,7 +104,7 @@ some_function(struct g_geom *mygeom, struct g_provider *pp) return; } /* Open provider for reading through our consumer. */ - if (g_access_rel(cp, 1, 0, 0) != 0) { + if (g_access(cp, 1, 0, 0) != 0) { g_detach(cp); g_destroy_consumer(cp); return; @@ -117,7 +117,7 @@ some_function(struct g_geom *mygeom, struct g_provider *pp) g_topology_lock(); /* Disconnect from provider (release access count). */ - g_access_rel(cp, -1, 0, 0); + g_access(cp, -1, 0, 0); /* Detach from provider. */ g_detach(cp); /* Destroy consumer. */