Annotation of embedaddon/php/main/win95nt.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:   +----------------------------------------------------------------------+
                      3:   | PHP Version 5                                                        |
                      4:   +----------------------------------------------------------------------+
                      5:   | Copyright (c) 1997-2012 The PHP Group                                |
                      6:   +----------------------------------------------------------------------+
                      7:   | This source file is subject to version 3.01 of the PHP license,      |
                      8:   | that is bundled with this package in the file LICENSE, and is        |
                      9:   | available through the world-wide-web at the following url:           |
                     10:   | http://www.php.net/license/3_01.txt                                  |
                     11:   | If you did not receive a copy of the PHP license and are unable to   |
                     12:   | obtain it through the world-wide-web, please send a note to          |
                     13:   | license@php.net so we can mail you a copy immediately.               |
                     14:   +----------------------------------------------------------------------+
                     15:   | Author:                                                              |
                     16:   +----------------------------------------------------------------------+
                     17: */
                     18: 
                     19: /* $Id: win95nt.h 321634 2012-01-01 13:15:04Z felipe $ */
                     20: 
                     21: /* Defines and types for Windows 95/NT */
                     22: #define HAVE_DECLARED_TIMEZONE
                     23: #define WIN32_LEAN_AND_MEAN
                     24: #include <io.h>
                     25: #include <malloc.h>
                     26: #include <direct.h>
                     27: #include <stdlib.h>
                     28: #include <stdio.h>
                     29: #include <stdarg.h>
                     30: #include <sys/types.h>
                     31: #include <process.h>
                     32: 
                     33: typedef int uid_t;
                     34: typedef int gid_t;
                     35: typedef char * caddr_t;
                     36: #define lstat(x, y) php_sys_lstat(x, y)
                     37: #define                _IFIFO  0010000 /* fifo */
                     38: #define                _IFBLK  0060000 /* block special */
                     39: #define                _IFLNK  0120000 /* symbolic link */
                     40: #define S_IFIFO                _IFIFO
                     41: #define S_IFBLK                _IFBLK
                     42: #define        S_IFLNK         _IFLNK
                     43: #ifndef S_ISREG 
                     44: #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
                     45: #endif
                     46: #define chdir(path) _chdir(path)
                     47: #define mkdir(a, b)    _mkdir(a)
                     48: #define rmdir(a)       _rmdir(a)
                     49: #define getpid         _getpid
                     50: #define php_sleep(t)   SleepEx(t*1000, TRUE)
                     51: #ifndef getcwd
                     52: # define getcwd(a, b)          _getcwd(a, b)
                     53: #endif
                     54: #define off_t          _off_t
                     55: typedef unsigned int uint;
                     56: typedef unsigned long ulong;
                     57: #if !NSAPI
                     58: typedef long pid_t;
                     59: #endif
                     60: 
                     61: /* missing in vc5 math.h */
                     62: #define M_PI             3.14159265358979323846
                     63: #define M_TWOPI         (M_PI * 2.0)
                     64: #define M_PI_2           1.57079632679489661923
                     65: #ifndef M_PI_4
                     66: #define M_PI_4           0.78539816339744830962
                     67: #endif
                     68: 
                     69: #if !defined(PHP_DEBUG)
                     70: #ifdef inline
                     71: #undef inline
                     72: #endif
                     73: #define inline  __inline
                     74: #endif
                     75: 
                     76: /* General Windows stuff */
                     77: #ifndef WINDOWS
                     78: # define WINDOWS 1
                     79: #endif
                     80: 
                     81: 
                     82: /* Prevent use of VC5 OpenFile function */
                     83: #define NOOPENFILE
                     84: 
                     85: /* sendmail is built-in */
                     86: #ifdef PHP_PROG_SENDMAIL
                     87: #undef PHP_PROG_SENDMAIL
                     88: #define PHP_PROG_SENDMAIL "Built in mailer"
                     89: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>