3 * @brief Make windows a bit more unix like
6 * Copyright (c) Mbedthis Software LLC, 2003-2006. All Rights Reserved.
8 * This software is distributed under commercial and open source licenses.
9 * You may use the GPL open source license described below or you may acquire
10 * a commercial license from Mbedthis Software. You agree to be fully bound
11 * by the terms of either license. Consult the LICENSE.TXT distributed with
12 * this software for full details.
14 * This software is open source; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License as published by the
16 * Free Software Foundation; either version 2 of the License, or (at your
17 * option) any later version. See the GNU General Public License for more
18 * details at: http://www.mbedthis.com/downloads/gplLicense.html
20 * This program is distributed WITHOUT ANY WARRANTY; without even the
21 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 * This GPL license does NOT permit incorporating this software into
24 * proprietary programs. If you are unable to comply with the GPL, you must
25 * acquire a commercial license to use this software. Commercial licenses
26 * for this software and support services are available from Mbedthis
27 * Software at http://www.mbedthis.com
32 /******************************* Documentation ********************************/
35 * This header is part of the Mbedthis Portable Runtime and aims to include
36 * all necessary O/S headers and to unify the constants and declarations
37 * required by Mbedthis products. It can be included by C or C++ programs.
40 /******************************************************************************/
45 /******************************************************************************/
51 * Define BLD_NO_POSIX_REMAP if these defines mess with your app
53 #if WIN && !BLD_NO_POSIX_REMAP
55 * MOB -- clashes with ATL
57 #define access _access
59 #define fileno _fileno
61 #define getpid _getpid
63 #define putenv _putenv
67 #define unlink _unlink
69 #define strdup _strdup
71 #define getcwd _getcwd
74 #define mkdir(a,b) _mkdir(a)
75 #define rmdir(a) _rmdir(a)
81 extern void srand48(long);
82 extern long lrand48(void);
83 extern long ulimit(int, ...);
84 extern long nap(long);
85 extern int getuid(void);
86 extern int geteuid(void);
90 /******************************************************************************/
95 #endif /* _h_MPR_UNIX */
103 * vim600: sw=4 ts=4 fdm=marker