From owner-svn-src-projects@freebsd.org Sat Aug 11 01:05:45 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 532311052115 for ; Sat, 11 Aug 2018 01:05:45 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAF3C837D6; Sat, 11 Aug 2018 01:05:44 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ACBC4100C7; Sat, 11 Aug 2018 01:05:44 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7B15iTB040553; Sat, 11 Aug 2018 01:05:44 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7B15i2k040552; Sat, 11 Aug 2018 01:05:44 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <201808110105.w7B15i2k040552@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Sat, 11 Aug 2018 01:05:44 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r337597 - projects/bectl/lib/libbe X-SVN-Group: projects X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: projects/bectl/lib/libbe X-SVN-Commit-Revision: 337597 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 01:05:46 -0000 Author: kevans Date: Sat Aug 11 01:05:44 2018 New Revision: 337597 URL: https://svnweb.freebsd.org/changeset/base/337597 Log: libbe(3): Bring man page back into reality Modified: projects/bectl/lib/libbe/libbe.3 Modified: projects/bectl/lib/libbe/libbe.3 ============================================================================== --- projects/bectl/lib/libbe/libbe.3 Sat Aug 11 01:02:27 2018 (r337596) +++ projects/bectl/lib/libbe/libbe.3 Sat Aug 11 01:05:44 2018 (r337597) @@ -32,7 +32,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 6, 2018 +.Dd August 10, 2018 .Dt LIBBE 3 .Os .Sh NAME @@ -75,20 +75,20 @@ of state to be retained, such as errors from previous .Fn libbe_handle_t "libbe_handle_t " ; .Pp .Ft int -.Fn be_create "libbe_handle_t *, char *" ; +.Fn be_create "libbe_handle_t *, const char *" ; .Pp .Ft int .Fn be_create_from_existing "libbe_handle_t *, const char *, const char *" ; .Pp .Ft int -.Fn be_rename "libbe_handle_t *, char *, char *" ; +.Fn be_rename "libbe_handle_t *, const char *, const char *" ; .Pp .\" TODO: Write up of destroy options .\" typedef enum { .\" BE_DESTROY_FORCE = 1 << 0, .\" } be_destroy_opt_t; .Ft int -.Fn be_destroy "libbe_handle_t *, char *, int" ; +.Fn be_destroy "libbe_handle_t *, const char *, int" ; .Pp .Ft void .Fn be_nicenum "uint64_t, char *, size_t" ; @@ -129,15 +129,12 @@ of state to be retained, such as errors from previous .Fn be_exists "libbe_handle_t *, char *" ; .Pp .Ft int -.Fn be_export "libbe_handle_t *, char *, int fd" ; +.Fn be_export "libbe_handle_t *, const char *, int fd" ; .Pp .Ft int -.Fn be_import "libbe_handle_t *, char *, int fd" ; +.Fn be_import "libbe_handle_t *, const char *, int fd" ; .Pp .Ft int -.Fn be_add_child "libbe_handle_t *, char *, bool" ; -.Pp -.Ft int .Fn be_prop_list_alloc "nvlist_t **" ; .Pp .Ft int @@ -151,36 +148,6 @@ of state to be retained, such as errors from previous .Pp .Ft void .Fn be_prop_list_free "nvlist_t *" ; -.\" .Ft void -.\" .Fn mp_mfree "MINT *mp" ; -.\" .Bd -ragged -offset indent -.\" .Fn mp_itom -.\" returns an -.\" .Vt MINT -.\" with the value of -.\" .Fa n . -.\" .Fn mp_xtom -.\" returns an -.\" .Vt MINT -.\" with the value of -.\" .Fa s , -.\" which is treated to be in hexadecimal. -.\" The return values from -.\" .Fn mp_itom -.\" and -.\" .Fn mp_xtom -.\" must be released with -.\" .Fn mp_mfree -.\" when they are no longer needed. -.\" .Fn mp_mtox -.\" returns a null-terminated hexadecimal string having the value of -.\" .Fa mp ; -.\" its return value must be released with -.\" .Fn free -.\" .Pq Xr free 3 -.\" when it is no longer needed. -.\" .Ed -.\" .Pp .Sh DIAGNOSTICS Upon error, one of the following values will be returned. .\" TODO: make each entry on its own line. @@ -202,6 +169,8 @@ BE_ERR_NOMOUNT, BE_ERR_ZFSOPEN, BE_ERR_ZFSCLONE, BE_ERR_IO, +BE_ERR_NOPOOL, +BE_ERR_NOMEM, BE_ERR_UNKNOWN .Ed .Sh SEE ALSO