Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > main-release > by-pkgid > a4c98df40e78f6c892308fd6841f950a > files > 414

lib64db4.2-devel-4.2.52-11mdv2007.0.x86_64.rpm

/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2002-2003
 *	Sleepycat Software.  All rights reserved.
 *
 * $Id: ex_apprec.src,v 1.4 2003/01/08 04:45:15 bostic Exp $
 */

PREFIX	ex_apprec

/*
 * This is the source file used to generate the application-specific recovery
 * functions used by the ex_apprec example.  It should be turned into usable
 * source code (including a template for the recovery function itself) by
 * invoking changing to the dist directory of the DB distribution and
 * running the gen_rec.awk script there as follows:
 *
 *     awk -f ./gen_rec.awk \
 *         -v source_file=../examples_c/ex_apprec/ex_apprec_auto.c         \
 *         -v header_file=../examples_c/ex_apprec/ex_apprec_auto.h         \
 *         -v template_file=../examples_c/ex_apprec/ex_apprec_template     \
 *         < ../examples_c/ex_apprec/ex_apprec.src

INCLUDE #include <ctype.h>
INCLUDE #include <errno.h>
INCLUDE #include <stdlib.h>
INCLUDE #include <string.h>
INCLUDE
INCLUDE #include <db.h>
INCLUDE
INCLUDE #include "ex_apprec.h"

/*
 * mkdir: used to create a directory
 *
 * dirname:	relative or absolute pathname of the directory to be created
 */
BEGIN mkdir	10000
DBT	dirname		DBT		s
END