From 4633ceccafbba8f91993bee2d4b4948d6851e521 Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Fri, 30 Nov 2012 09:39:22 +0100 Subject: [PATCH 1/2] lib/tdb: Rename manpages/ to man/. Trying to be more consistent. Karolin --- lib/tdb/{manpages => man}/tdbbackup.8.xml | 6 +++--- lib/tdb/{manpages => man}/tdbdump.8.xml | 8 ++++---- lib/tdb/{manpages => man}/tdbrestore.8.xml | 0 lib/tdb/{manpages => man}/tdbtool.8.xml | 2 +- lib/tdb/wscript | 8 ++++---- 5 files changed, 12 insertions(+), 12 deletions(-) rename lib/tdb/{manpages => man}/tdbbackup.8.xml (97%) rename lib/tdb/{manpages => man}/tdbdump.8.xml (98%) rename lib/tdb/{manpages => man}/tdbrestore.8.xml (100%) rename lib/tdb/{manpages => man}/tdbtool.8.xml (99%) diff --git a/lib/tdb/manpages/tdbbackup.8.xml b/lib/tdb/man/tdbbackup.8.xml similarity index 97% rename from lib/tdb/manpages/tdbbackup.8.xml rename to lib/tdb/man/tdbbackup.8.xml index 78fe32e..02936cf 100644 --- a/lib/tdb/manpages/tdbbackup.8.xml +++ b/lib/tdb/man/tdbbackup.8.xml @@ -33,8 +33,8 @@ tdbbackup is a tool that may be used to backup samba .tdb files. This tool may also be used to verify the integrity of the .tdb files prior - to samba startup or during normal operation. If it finds file damage and it finds - a prior backup the backup file will be restored. + to samba startup or during normal operation. If it finds file damage and it finds + a prior backup the backup file will be restored. @@ -128,7 +128,7 @@ The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. - + The tdbbackup man page was written by John H Terpstra. diff --git a/lib/tdb/manpages/tdbdump.8.xml b/lib/tdb/man/tdbdump.8.xml similarity index 98% rename from lib/tdb/manpages/tdbdump.8.xml rename to lib/tdb/man/tdbdump.8.xml index 3420193..25fd432 100644 --- a/lib/tdb/manpages/tdbdump.8.xml +++ b/lib/tdb/man/tdbdump.8.xml @@ -32,12 +32,12 @@ This tool is part of the samba 1 suite. - tdbdump is a very simple utility that 'dumps' the - contents of a TDB (Trivial DataBase) file to standard output in a + tdbdump is a very simple utility that 'dumps' the + contents of a TDB (Trivial DataBase) file to standard output in a human-readable format. - This tool can be used when debugging problems with TDB files. It is + This tool can be used when debugging problems with TDB files. It is intended for those who are somewhat familiar with Samba internals. @@ -84,7 +84,7 @@ The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. - + The tdbdump man page was written by Jelmer Vernooij. diff --git a/lib/tdb/manpages/tdbrestore.8.xml b/lib/tdb/man/tdbrestore.8.xml similarity index 100% rename from lib/tdb/manpages/tdbrestore.8.xml rename to lib/tdb/man/tdbrestore.8.xml diff --git a/lib/tdb/manpages/tdbtool.8.xml b/lib/tdb/man/tdbtool.8.xml similarity index 99% rename from lib/tdb/manpages/tdbtool.8.xml rename to lib/tdb/man/tdbtool.8.xml index c143b5c..bc5c001 100644 --- a/lib/tdb/manpages/tdbtool.8.xml +++ b/lib/tdb/man/tdbtool.8.xml @@ -122,7 +122,7 @@ KEY TDBFILE - Move a record from the + Move a record from the current database into TDBFILE. diff --git a/lib/tdb/wscript b/lib/tdb/wscript index 9d309a0..7a3d0fa 100644 --- a/lib/tdb/wscript +++ b/lib/tdb/wscript @@ -94,20 +94,20 @@ def build(bld): bld.SAMBA_BINARY('tdbrestore', 'tools/tdbrestore.c', - 'tdb', manpages='manpages/tdbrestore.8') + 'tdb', manpages='man/tdbrestore.8') bld.SAMBA_BINARY('tdbdump', 'tools/tdbdump.c', - 'tdb', manpages='manpages/tdbdump.8') + 'tdb', manpages='man/tdbdump.8') bld.SAMBA_BINARY('tdbbackup', 'tools/tdbbackup.c', 'tdb', - manpages='manpages/tdbbackup.8') + manpages='man/tdbbackup.8') bld.SAMBA_BINARY('tdbtool', 'tools/tdbtool.c', - 'tdb', manpages='manpages/tdbtool.8') + 'tdb', manpages='man/tdbtool.8') # FIXME: This hardcoded list is stupid, stupid, stupid. bld.SAMBA_SUBSYSTEM('tdb-test-helpers', -- 1.7.7 From 11566b096ea75cd4d82ac8b9937ac15e23e462f5 Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Fri, 30 Nov 2012 09:43:33 +0100 Subject: [PATCH 2/2] lib/talloc: Move manpage to man/. Trying to be more consistent. Karolin --- lib/talloc/{ => man}/talloc.3.xml | 24 ++++++++++++------------ lib/talloc/wscript | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) rename lib/talloc/{ => man}/talloc.3.xml (99%) diff --git a/lib/talloc/talloc.3.xml b/lib/talloc/man/talloc.3.xml similarity index 99% rename from lib/talloc/talloc.3.xml rename to lib/talloc/man/talloc.3.xml index 85cd6c4..553eaec 100644 --- a/lib/talloc/talloc.3.xml +++ b/lib/talloc/man/talloc.3.xml @@ -28,7 +28,7 @@ Perhaps the biggest change from Samba3 is that there is no distinction between a "talloc context" and a "talloc pointer". Any - pointer returned from talloc() is itself a valid talloc context. + pointer returned from talloc() is itself a valid talloc context. This means you can do this: @@ -153,8 +153,8 @@ ERROR: talloc_free with references at some_dir/source/foo.c:123 - reference at some_dir/source/other.c:325 - reference at some_dir/source/third.c:121 + reference at some_dir/source/other.c:325 + reference at some_dir/source/third.c:121 @@ -188,7 +188,7 @@ - you can talloc_free() any parent of the original pointer. + you can talloc_free() any parent of the original pointer. That will reduce the number of parents of this pointer by 1, and will cause this pointer to be freed if it runs out of parents. @@ -218,7 +218,7 @@ Note that if the parent has already been removed using - talloc_free() then this function will fail and will return -1. + talloc_free() then this function will fail and will return -1. Likewise, if ptr is NULL, then the function will make no modifications and return -1. @@ -373,7 +373,7 @@ talloc_set_name_const(ptr, name); (<emphasis role="italic">type</emphasis> *)talloc_realloc(const void *<emphasis role="italic">ctx</emphasis>, void *<emphasis role="italic">ptr</emphasis>, <emphasis role="italic">type</emphasis>, <emphasis role="italic">count</emphasis>); - The talloc_realloc() macro changes the size of a talloc pointer. + The talloc_realloc() macro changes the size of a talloc pointer. It has the following equivalences: talloc_realloc(ctx, NULL, type, 1) ==> talloc(ctx, type); @@ -384,7 +384,7 @@ talloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr); it is ignored. - talloc_realloc() returns the new pointer, or NULL on failure. + talloc_realloc() returns the new pointer, or NULL on failure. The call will fail either due to a lack of memory, or because the pointer has more than one parent (see talloc_reference()). @@ -423,8 +423,8 @@ talloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr); WARNING: talloc_steal with references at some_dir/source/foo.c:123 - reference at some_dir/source/other.c:325 - reference at some_dir/source/third.c:121 + reference at some_dir/source/other.c:325 + reference at some_dir/source/third.c:121 @@ -432,7 +432,7 @@ talloc_realloc(ctx, ptr, type, 0) ==> talloc_free(ptr); the function talloc_reparent(). See the talloc_set_log_fn() documentation for more information - on talloc logging. + on talloc logging. TYPE *talloc_reparent(const void *<emphasis role="italic">old_parent</emphasis>, const void *<emphasis role="italic">new_parent</emphasis>, const TYPE *<emphasis role="italic">ptr</emphasis>); @@ -776,7 +776,7 @@ if (ptr) memcpy(ptr, p, strlen(p)+1); SEE ALSO - malloc(3), strndup(3), vasprintf(3), asprintf(3), + malloc(3), strndup(3), vasprintf(3), asprintf(3), @@ -795,7 +795,7 @@ if (ptr) memcpy(ptr, p, strlen(p)+1); This program is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as + it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. diff --git a/lib/talloc/wscript b/lib/talloc/wscript index 8d3246b..bd7708e 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -108,7 +108,7 @@ def build(bld): pc_files='talloc.pc', public_headers_install=not private_library, private_library=private_library, - manpages='talloc.3') + manpages='man/talloc.3') if not bld.CONFIG_SET('USING_SYSTEM_PYTALLOC_UTIL') and not bld.env.disable_python: bld.SAMBA_LIBRARY('pytalloc-util', -- 1.7.7