Back to index

php5  5.3.10
win95nt.h
Go to the documentation of this file.
00001 /*
00002   +----------------------------------------------------------------------+
00003   | PHP Version 5                                                        |
00004   +----------------------------------------------------------------------+
00005   | Copyright (c) 1997-2012 The PHP Group                                |
00006   +----------------------------------------------------------------------+
00007   | This source file is subject to version 3.01 of the PHP license,      |
00008   | that is bundled with this package in the file LICENSE, and is        |
00009   | available through the world-wide-web at the following url:           |
00010   | http://www.php.net/license/3_01.txt                                  |
00011   | If you did not receive a copy of the PHP license and are unable to   |
00012   | obtain it through the world-wide-web, please send a note to          |
00013   | license@php.net so we can mail you a copy immediately.               |
00014   +----------------------------------------------------------------------+
00015   | Author:                                                              |
00016   +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: win95nt.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 /* Defines and types for Windows 95/NT */
00022 #define HAVE_DECLARED_TIMEZONE
00023 #define WIN32_LEAN_AND_MEAN
00024 #include <io.h>
00025 #include <malloc.h>
00026 #include <direct.h>
00027 #include <stdlib.h>
00028 #include <stdio.h>
00029 #include <stdarg.h>
00030 #include <sys/types.h>
00031 #include <process.h>
00032 
00033 typedef int uid_t;
00034 typedef int gid_t;
00035 typedef char * caddr_t;
00036 #define lstat(x, y) php_sys_lstat(x, y)
00037 #define              _IFIFO 0010000       /* fifo */
00038 #define              _IFBLK 0060000       /* block special */
00039 #define              _IFLNK 0120000       /* symbolic link */
00040 #define S_IFIFO             _IFIFO
00041 #define S_IFBLK             _IFBLK
00042 #define       S_IFLNK              _IFLNK
00043 #ifndef S_ISREG 
00044 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
00045 #endif
00046 #define chdir(path) _chdir(path)
00047 #define mkdir(a, b)  _mkdir(a)
00048 #define rmdir(a)     _rmdir(a)
00049 #define getpid              _getpid
00050 #define php_sleep(t) SleepEx(t*1000, TRUE)
00051 #ifndef getcwd
00052 # define getcwd(a, b)              _getcwd(a, b)
00053 #endif
00054 #define off_t        _off_t
00055 typedef unsigned int uint;
00056 typedef unsigned long ulong;
00057 #if !NSAPI
00058 typedef long pid_t;
00059 #endif
00060 
00061 /* missing in vc5 math.h */
00062 #define M_PI             3.14159265358979323846
00063 #define M_TWOPI         (M_PI * 2.0)
00064 #define M_PI_2           1.57079632679489661923
00065 #ifndef M_PI_4
00066 #define M_PI_4           0.78539816339744830962
00067 #endif
00068 
00069 #if !defined(PHP_DEBUG)
00070 #ifdef inline
00071 #undef inline
00072 #endif
00073 #define inline  __inline
00074 #endif
00075 
00076 /* General Windows stuff */
00077 #ifndef WINDOWS
00078 # define WINDOWS 1
00079 #endif
00080 
00081 
00082 /* Prevent use of VC5 OpenFile function */
00083 #define NOOPENFILE
00084 
00085 /* sendmail is built-in */
00086 #ifdef PHP_PROG_SENDMAIL
00087 #undef PHP_PROG_SENDMAIL
00088 #define PHP_PROG_SENDMAIL "Built in mailer"
00089 #endif