MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/share/doc/db4-devel-4.3.29/examples_c/ex_apprec/ex_apprec.src
/*-
 * See the file LICENSE for redistribution information.
 *
 * Copyright (c) 2002-2004
 *	Sleepycat Software.  All rights reserved.
 *
 * $Id: ex_apprec.src,v 1.5 2004/01/28 03:36:03 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