diff options
author | Anatol Belski <ab@php.net> | 2016-08-23 00:27:17 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-08-23 00:27:17 +0200 |
commit | becc5cd11bbd7ffca365e28d48eeff450e141493 (patch) | |
tree | 93a56f4a2a66ff680a42417d40bada6f430f4a4e /TSRM/tsrm_win32.h | |
parent | 6790932eaa8c4dce21080c4094301829fd1f0053 (diff) | |
download | php-git-becc5cd11bbd7ffca365e28d48eeff450e141493.tar.gz |
sync shm* implementation signatures with POSIX
Diffstat (limited to 'TSRM/tsrm_win32.h')
-rw-r--r-- | TSRM/tsrm_win32.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/TSRM/tsrm_win32.h b/TSRM/tsrm_win32.h index fbeac07b01..ae0ea58c96 100644 --- a/TSRM/tsrm_win32.h +++ b/TSRM/tsrm_win32.h @@ -26,9 +26,10 @@ #if HAVE_UTIME # include <sys/utime.h> #endif +#include "win32/ipc.h" struct ipc_perm { - int key; + key_t key; unsigned short uid; unsigned short gid; unsigned short cuid; @@ -39,7 +40,7 @@ struct ipc_perm { struct shmid_ds { struct ipc_perm shm_perm; - int shm_segsz; + size_t shm_segsz; time_t shm_atime; time_t shm_dtime; time_t shm_ctime; @@ -105,7 +106,7 @@ 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(int key, int size, int flags); +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); |