Download src/php/php-src/TSRM/tsrm_win32.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 3.08 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/TSRM/tsrm_win32.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/TSRM/tsrm_win32.h
-
curl -L -o tsrm_win32.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/TSRM/tsrm_win32.h
3.08 kB
| /* | |
| +----------------------------------------------------------------------+ | |
| | Copyright (c) The PHP Group | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 3.01 of the PHP license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | | |
| | https://www.php.net/license/3_01.txt | | |
| | If you did not receive a copy of the PHP license and are unable to | | |
| | obtain it through the world-wide-web, please send a note to | | |
| | license@php.net so we can mail you a copy immediately. | | |
| +----------------------------------------------------------------------+ | |
| | Authors: Daniel Beulshausen <daniel@php4win.de> | | |
| +----------------------------------------------------------------------+ | |
| */ | |
| struct ipc_perm { | |
| key_t key; | |
| unsigned short uid; | |
| unsigned short gid; | |
| unsigned short cuid; | |
| unsigned short cgid; | |
| unsigned short mode; | |
| unsigned short seq; | |
| }; | |
| struct shmid_ds { | |
| struct ipc_perm shm_perm; | |
| size_t shm_segsz; | |
| time_t shm_atime; | |
| time_t shm_dtime; | |
| time_t shm_ctime; | |
| unsigned short shm_cpid; | |
| unsigned short shm_lpid; | |
| short shm_nattch; | |
| }; | |
| typedef struct { | |
| FILE *stream; | |
| HANDLE prochnd; | |
| } process_pair; | |
| typedef struct { | |
| void *addr; | |
| HANDLE segment; | |
| struct shmid_ds *descriptor; | |
| } shm_pair; | |
| typedef struct { | |
| process_pair *process; | |
| shm_pair *shm; | |
| int process_size; | |
| int shm_size; | |
| char *comspec; | |
| HANDLE impersonation_token; | |
| PSID impersonation_token_sid; | |
| } tsrm_win32_globals; | |
| TSRMLS_CACHE_EXTERN() | |
| const char * tsrm_win32_get_path_sid_key(const char *pathname, size_t pathname_len, size_t *key_len); | |
| TSRM_API void tsrm_win32_startup(void); | |
| TSRM_API void tsrm_win32_shutdown(void); | |
| TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, const char *env); | |
| TSRM_API FILE *popen(const char *command, const char *type); | |
| TSRM_API int pclose(FILE *stream); | |
| TSRM_API int tsrm_win32_access(const char *pathname, int mode); | |
| TSRM_API int win32_utime(const char *filename, struct utimbuf *buf); | |
| TSRM_API int shmget(key_t key, size_t size, int flags); | |
| TSRM_API void *shmat(int key, const void *shmaddr, int flags); | |
| TSRM_API int shmdt(const void *shmaddr); | |
| TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf); | |