port vim_mkdir, mch_rmdir and mch_remove to libuv

This commit is contained in:
Stefan Hoffmann
2014-04-08 20:46:42 +02:00
committed by Thiago de Arruda
parent 136e5e5b84
commit 445f31f076
6 changed files with 92 additions and 11 deletions

View File

@@ -30,14 +30,9 @@
# include <sys/param.h> /* defines BSD, if it's a BSD system */
#endif
/*
* Sun defines FILE on SunOS 4.x.x, Solaris has a typedef for FILE
*/
/* always use unlink() to remove files */
# define vim_mkdir(x, y) mkdir((char *)(x), y)
# define mch_rmdir(x) rmdir((char *)(x))
# define mch_remove(x) unlink((char *)(x))
#define vim_mkdir(x, y) os_mkdir((char *)(x), (y))
#define mch_rmdir(x) os_rmdir((char *)(x))
#define mch_remove(x) os_remove((char *)(x))
/* The number of arguments to a signal handler is configured here. */
/* It used to be a long list of almost all systems. Any system that doesn't