Commit 91ae1efd 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 505fd0c5
...@@ -70,11 +70,15 @@ extern "C" { ...@@ -70,11 +70,15 @@ extern "C" {
#define UU(x) x __attribute__((__unused__)) #define UU(x) x __attribute__((__unused__))
// Deprecated functions. // Deprecated functions.
#if !defined(TOKU_ALLOW_DEPRECATED_FSTAT) #if !defined(TOKU_ALLOW_DEPRECATED)
# if defined(__ICL) //Windows Intel Compiler # if defined(__ICL) //Windows Intel Compiler
# pragma deprecated (fstat) # pragma deprecated (fstat, getpid, syscall, sysconf, mkdir)
# else # 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
#endif #endif
......
...@@ -11,7 +11,7 @@ SRCS = $(wildcard *.c) ...@@ -11,7 +11,7 @@ SRCS = $(wildcard *.c)
OBJS = $(patsubst %.c,%.$(OEXT),$(SRCS)) OBJS = $(patsubst %.c,%.$(OEXT),$(SRCS))
TARGET = libtokuportability.$(AEXT) TARGET = libtokuportability.$(AEXT)
$(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED_FSTAT $(OBJS): CFLAGS += -DTOKU_ALLOW_DEPRECATED
install: $(TARGET) install: $(TARGET)
$(MAYBEATSIGN)cp $(TARGET) $(LIBPORTABILITY) $(MAYBEATSIGN)cp $(TARGET) $(LIBPORTABILITY)
......
...@@ -13,7 +13,7 @@ DB *db; ...@@ -13,7 +13,7 @@ DB *db;
void initialize (void) { void initialize (void) {
int r; int r;
system("rm -rf " ENVDIR); system("rm -rf " ENVDIR);
mkdir(ENVDIR, 0777); toku_os_mkdir(ENVDIR, 0777);
// setup environment // setup environment
{ {
......
...@@ -13,7 +13,7 @@ DB *db; ...@@ -13,7 +13,7 @@ DB *db;
void initialize (void) { void initialize (void) {
int r; int r;
system("rm -rf " ENVDIR); system("rm -rf " ENVDIR);
mkdir(ENVDIR, 0777); toku_os_mkdir(ENVDIR, 0777);
// setup environment // 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