Solaris has no err.h, so use CCAN replacement.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Sat Jun 9 12:07:15 CEST 2012 on sn-devel-104
if bld.env.DEVELOPER_MODE:
bld.SAMBA_LIBRARY('ccan-failtest',
source=bld.path.ant_glob('failtest/*.c'),
- deps='execinfo ccan ccan-err ccan-htable ccan-list ccan-read_write_all ccan-time',
+ deps='execinfo ccan ccan-htable ccan-list ccan-read_write_all ccan-time',
private_library=True)
bld.SAMBA_LIBRARY('ccan',
source='',
- deps='ccan-hash ccan-ilog ccan-likely ccan-tally',
+ deps='ccan-err ccan-hash ccan-ilog ccan-likely ccan-tally',
private_library=True)
* Example:
* #include <ccan/tdb2/tdb2.h>
* #include <ccan/str/str.h>
- * #include <err.h>
+ * #include <ccan/err/err.h>
* #include <stdio.h>
*
* static void usage(const char *argv0)
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
-#include <err.h>
#include <unistd.h>
#include "external-agent.h"
#include "logging.h"
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
-#include <err.h>
+#include <ccan/err/err.h>
#include <fcntl.h>
#include <stdlib.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
-#include <err.h>
+#include <ccan/err/err.h>
#include "logging.h"
struct tdb_layout *new_tdb_layout(void)
#include "tdb2-source.h"
#include "tap-interface.h"
-#include <err.h>
#include "logging.h"
static bool empty_freetable(struct tdb_context *tdb)
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
-#include <err.h>
#include "external-agent.h"
#include "logging.h"
#include <stdbool.h>
#include <stdarg.h>
-#include <err.h>
#include <setjmp.h>
#include "external-agent.h"
#include "logging.h"
#include "layout.h"
#include "failtest_helper.h"
#include <stdarg.h>
-#include <err.h>
static size_t len_of(bool breaks_check, bool breaks_write, bool breaks_open)
{
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
-#include <err.h>
+#include <ccan/err/err.h>
#include "external-agent.h"
#include "logging.h"
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
static int tdb1_expand_file_sparse(struct tdb_context *tdb,
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
static int check(TDB_DATA key, TDB_DATA data, void *private)
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
static uint64_t tdb1_dumb_hash(const void *key, size_t len, uint64_t seed,
void *unused)
#include "tap-interface.h"
#include <stdlib.h>
#include <stdbool.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#undef fcntl
#include <stdlib.h>
#include <stdbool.h>
-#include <err.h>
#include "tdb1-external-agent.h"
#include "logging.h"
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
#undef fcntl
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
static void log_fn(struct tdb_context *tdb, enum tdb_log_level level,
enum TDB_ERROR ecode, const char *message, void *priv)
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
int main(int argc, char *argv[])
{
#undef fcntl_with_lockcheck
#include <stdlib.h>
#include <stdbool.h>
-#include <err.h>
#include "tdb1-external-agent.h"
#include "logging.h"
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
static void log_fn(struct tdb_context *tdb, enum tdb_log_level level,
enum TDB_ERROR ecode, const char *message, void *priv)
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
#include "tdb2-source.h"
#include "tap-interface.h"
#include <stdlib.h>
-#include <err.h>
#include "logging.h"
int main(int argc, char *argv[])
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
-#include <err.h>
+#include <ccan/err/err.h>
#ifndef __location__
#define __TAP_STRING_LINE1__(s) #s
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
-#include <err.h>
#include <fcntl.h>
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
-#include <err.h>
+#include <ccan/err/err.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
-#include <err.h>
+#include <ccan/err/err.h>
int main(int argc, char *argv[])
{
/* Simple speed test for TDB */
-#include <err.h>
+#include <ccan/err/err.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "config.h"
#include "tdb2.h"
-#include <err.h>
+#include <ccan/err/err.h>
#ifdef HAVE_LIBREPLACE
#include <replace.h>
#else