Commit 19a33080 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1307

Added more poison/deprecated calls.

git-svn-id: file:///svn/toku/tokudb.1032b@8266 c7de825b-a66e-492c-adef-691d508d4ae1
parent 160d6670
......@@ -70,11 +70,15 @@ extern "C" {
#define UU(x) x __attribute__((__unused__))
// Deprecated functions.
#if !defined(TOKU_ALLOW_DEPRECATED_FSTAT)
#if !defined(TOKU_ALLOW_DEPRECATED)
# if defined(__ICL) //Windows Intel Compiler
# pragma deprecated (fstat)
# pragma deprecated (fstat, getpid, syscall, sysconf, mkdir)
# else
int fstat() __attribute__((__deprecated__));
int fstat() __attribute__((__deprecated__));
int getpid() __attribute__((__deprecated__));
long int syscall(long int __sysno, ...) __attribute__((__deprecated__));
long int sysconf() __attribute__((__deprecated__));
int mkdir() __attribute__((__deprecated__));
# endif
#endif
......
......@@ -11,7 +11,7 @@ SRCS = $(wildcard *.c)
OBJS = $(patsubst %.c,%.$(OEXT),$(SRCS))
TARGET = libtokuportability.$(AEXT)
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED_FSTAT
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED
install: $(TARGET)
$(MAYBEATSIGN)cp $(TARGET) $(LIBPORTABILITY)
......
......@@ -13,7 +13,7 @@ DB *db;
void initialize (void) {
int r;
system("rm -rf " ENVDIR);
mkdir(ENVDIR, 0777);
toku_os_mkdir(ENVDIR, 0777);
// setup environment
{
......
......@@ -13,7 +13,7 @@ DB *db;
void initialize (void) {
int r;
system("rm -rf " ENVDIR);
mkdir(ENVDIR, 0777);
toku_os_mkdir(ENVDIR, 0777);
// setup environment
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment