PHP_WINUTIL_API BOOL php_win32_console_fileno_is_console(zend_long fileno)
-{
+{/*{{{*/
BOOL result = FALSE;
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
}
}
return result;
-}
+}/*}}}*/
PHP_WINUTIL_API BOOL php_win32_console_fileno_has_vt100(zend_long fileno)
-{
+{/*{{{*/
BOOL result = FALSE;
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
}
}
return result;
-}
+}/*}}}*/
PHP_WINUTIL_API BOOL php_win32_console_fileno_set_vt100(zend_long fileno, BOOL enable)
-{
+{/*{{{*/
BOOL result = FALSE;
HANDLE handle = (HANDLE) _get_osfhandle(fileno);
}
}
return result;
-}
+}/*}}}*/
PHP_WINUTIL_API BOOL php_win32_console_is_own(void)
-{
+{/*{{{*/
CONSOLE_SCREEN_BUFFER_INFO csbi;
if (GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi) && !IsDebuggerPresent()) {
}
return FALSE;
-}
+}/*}}}*/
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
PHP_WINUTIL_API BOOL php_win32_console_is_own(void);
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
return 0;
}
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
return ret;
}
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
PHPAPI int fnmatch(const char *pattern, const char *string, int flags);
#endif /* !_FNMATCH_H_ */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
PHP_WIN32_IPC_API key_t
ftok(const char *pathname, int proj_id)
-{
+{/*{{{*/
HANDLE fh;
struct stat st;
BY_HANDLE_FILE_INFORMATION bhfi;
CloseHandle(fh);
return ret;
-}
+}/*}}}*/
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
PHPAPI void globfree(glob_t *);
END_EXTERN_C()
#endif /* !_GLOB_H_ */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif
void php_win32_core_globals_ctor(void *vg)
-{
+{/*{{{*/
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
memset(wg, 0, sizeof(*wg));
wg->mail_socket = INVALID_SOCKET;
wg->log_source = INVALID_HANDLE_VALUE;
-}
+}/*}}}*/
void php_win32_core_globals_dtor(void *vg)
-{
+{/*{{{*/
php_win32_core_globals *wg = (php_win32_core_globals*)vg;
if (wg->registry_key) {
closesocket(wg->mail_socket);
wg->mail_socket = INVALID_SOCKET;
}
-}
+}/*}}}*/
PHP_RSHUTDOWN_FUNCTION(win32_core_globals)
-{
+{/*{{{*/
php_win32_core_globals *wg =
#ifdef ZTS
ts_resource(php_win32_core_globals_id)
closelog();
return SUCCESS;
-}
+}/*}}}*/
/*
* Local variables:
int gr_gid;
char **gr_mem;
};
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#include <Winsock2.h>
PHPAPI int inet_aton(const char *cp, struct in_addr *inp);
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif /* PHP_WIN32_IPC_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#define MAXHOSTNAMELEN 64
#define howmany(x,y) (((x)+((y)-1))/(y))
#define roundup(x,y) ((((x)+((y)-1))/(y))*(y))
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#include <inttypes.h>
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
char *GetIniPathFromRegistry();
#endif /* PHP_REGISTRY_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
# define __bool_true_false_are_defined 1
# endif
#endif /* _STDBOOL_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#ifndef u_char
typedef unsigned __int8 u_char;
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif
DIR *opendir(const char *dir)
-{
+{/*{{{*/
DIR *dp;
wchar_t *filespecw, *resolvedw;
HANDLE handle;
free(resolvedw);
return dp;
-}
+}/*}}}*/
struct dirent *readdir(DIR *dp)
-{
+{/*{{{*/
char *_tmp;
size_t reclen;
dp->dent.d_off = dp->offset;
return &(dp->dent);
-}
+}/*}}}*/
int readdir_r(DIR *dp, struct dirent *entry, struct dirent **result)
-{
+{/*{{{*/
char *_tmp;
size_t reclen;
*result = &dp->dent;
return 0;
-}
+}/*}}}*/
int closedir(DIR *dp)
-{
+{/*{{{*/
if (!dp)
return 0;
/* It is valid to scan an empty directory but we have an invalid
free(dp);
return 0;
-}
+}/*}}}*/
int rewinddir(DIR *dp)
-{
+{/*{{{*/
/* Re-set to the beginning */
wchar_t *filespecw;
HANDLE handle;
dp->handle = handle;
return 0;
-}
+}/*}}}*/
#ifdef __cplusplus
}
#endif
#endif /* READDIR_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
};
static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
-{
+{/*{{{*/
const char **key_name = registry_keys;
if (sub_key) {
}
}
return 0;
-}
+}/*}}}*/
static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht)
-{
+{/*{{{*/
DWORD keys, values, max_key, max_name, max_value;
int ret = 0;
HashTable *ht = NULL;
}
}
return ret;
-}
+}/*}}}*/
static void delete_internal_hashtable(zval *zv)
-{
+{/*{{{*/
HashTable *ht = (HashTable *)Z_PTR_P(zv);
zend_hash_destroy(ht);
free(ht);
-}
+}/*}}}*/
#define RegNotifyFlags (REG_NOTIFY_CHANGE_NAME | REG_NOTIFY_CHANGE_ATTRIBUTES | REG_NOTIFY_CHANGE_LAST_SET)
void UpdateIniFromRegistry(char *path)
-{
+{/*{{{*/
char *p, *orig_path;
int path_len;
}
efree(orig_path);
-}
+}/*}}}*/
#define PHPRC_REGISTRY_NAME "IniFilePath"
char *GetIniPathFromRegistry()
-{
+{/*{{{*/
char *reg_location = NULL;
HKEY hKey;
RegCloseKey(hKey);
}
return reg_location;
-}
+}/*}}}*/
/*
* Local variables:
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#include "php_network.h"
PHPAPI int php_select(php_socket_t max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */
static unsigned long GetAddr(LPSTR szHost);
static int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString);
#endif /* sendmail_h */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#define SIGPROF 27 /* profiling time alarm */
#endif /* PHP_WIN32_SIGNAL_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
/* Code originally from ext/sockets */
PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]);
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#endif /* SYSLOG_H */
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#ifdef PHP_EXPORTS
static zend_always_inline MyGetSystemTimeAsFileTime get_time_func(void)
-{
+{/*{{{*/
MyGetSystemTimeAsFileTime timefunc = NULL;
HMODULE hMod = GetModuleHandle("kernel32.dll");
}
return timefunc;
-}
+}/*}}}*/
void php_win32_init_gettimeofday(void)
-{
+{/*{{{*/
timefunc = get_time_func();
-}
+}/*}}}*/
#endif
static zend_always_inline int getfilesystemtime(struct timeval *tv)
-{
+{/*{{{*/
FILETIME ft;
unsigned __int64 ff = 0;
ULARGE_INTEGER fft;
tv->tv_usec = (long)(ff % 1000000Ui64);
return 0;
-}
+}/*}}}*/
PHPAPI int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info)
-{
+{/*{{{*/
/* Get the time, if they want it */
if (time_Info != NULL) {
getfilesystemtime(time_Info);
}
/* And return */
return 0;
-}
+}/*}}}*/
PHPAPI int usleep(unsigned int useconds)
-{
+{/*{{{*/
HANDLE timer;
LARGE_INTEGER due;
WaitForSingleObject(timer, INFINITE);
CloseHandle(timer);
return 0;
-}
+}/*}}}*/
PHPAPI int nanosleep( const struct timespec * rqtp, struct timespec * rmtp )
-{
+{/*{{{*/
if (rqtp->tv_nsec > 999999999) {
/* The time interval specified 1,000,000 or more microseconds. */
errno = EINVAL;
return -1;
}
return usleep( rqtp->tv_sec * 1000000 + rqtp->tv_nsec / 1000 );
-}
+}/*}}}*/
/*
* Local variables:
#endif
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
#define _PHP_WIN32_UNISTD_H
PHPAPI int usleep(unsigned int useconds);
#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */
PHP_WINUTIL_API char *php_win32_get_username(void);
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: sw=4 ts=4 fdm=marker
+ * vim<600: sw=4 ts=4
+ */