PostgreSQL Source Code git master
|
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <ntstatus.h>
#include <winternl.h>
#include <process.h>
#include <signal.h>
#include <direct.h>
#include <sys/stat.h>
Go to the source code of this file.
Data Structures | |
struct | itimerval |
struct | stat |
Macros | |
#define | ENABLE_SSPI 1 |
#define | _WINSOCKAPI_ |
#define | WIN32_LEAN_AND_MEAN |
#define | UMDF_USING_NTSTATUS |
#define | fstat microsoft_native_fstat |
#define | stat microsoft_native_stat |
#define | mkdir(a, b) mkdir(a) |
#define | fsync(fd) _commit(fd) |
#define | USES_WINSOCK |
#define | HAVE_UNION_SEMUN 1 |
#define | IPC_RMID 256 |
#define | IPC_CREAT 512 |
#define | IPC_EXCL 1024 |
#define | IPC_PRIVATE 234564 |
#define | IPC_NOWAIT 2048 |
#define | IPC_STAT 4096 |
#define | EACCESS 2048 |
#define | EIDRM 4096 |
#define | SETALL 8192 |
#define | GETNCNT 16384 |
#define | GETVAL 65536 |
#define | SETVAL 131072 |
#define | GETPID 262144 |
#define | WIFEXITED(w) (((w) & 0XFFFFFF00) == 0) |
#define | WIFSIGNALED(w) (!WIFEXITED(w)) |
#define | WEXITSTATUS(w) (w) |
#define | WTERMSIG(w) (w) |
#define | sigmask(sig) ( 1 << ((sig)-1) ) |
#define | SIGHUP 1 |
#define | SIGQUIT 3 |
#define | SIGTRAP 5 |
#define | SIGABRT 22 /* Set to match W32 value -- not UNIX value */ |
#define | SIGKILL 9 |
#define | SIGPIPE 13 |
#define | SIGALRM 14 |
#define | SIGSTOP 17 |
#define | SIGTSTP 18 |
#define | SIGCONT 19 |
#define | SIGCHLD 20 |
#define | SIGWINCH 28 |
#define | SIGUSR1 30 |
#define | SIGUSR2 31 |
#define | ITIMER_REAL 0 |
#define | pgoff_t __int64 |
#define | fseeko(stream, offset, origin) fseeko64(stream, offset, origin) |
#define | ftello(stream) ftello64(stream) |
#define | symlink(oldpath, newpath) pgsymlink(oldpath, newpath) |
#define | readlink(path, buf, size) pgreadlink(path, buf, size) |
#define | fstat(fileno, sb) _pgfstat64(fileno, sb) |
#define | stat(path, sb) _pgstat64(path, sb) |
#define | lstat(path, sb) _pglstat64(path, sb) |
#define | S_IRUSR _S_IREAD |
#define | S_IWUSR _S_IWRITE |
#define | S_IXUSR _S_IEXEC |
#define | S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR) |
#define | S_IRGRP 0 |
#define | S_IWGRP 0 |
#define | S_IXGRP 0 |
#define | S_IRWXG 0 |
#define | S_IROTH 0 |
#define | S_IWOTH 0 |
#define | S_IXOTH 0 |
#define | S_IRWXO 0 |
#define | S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) |
#define | S_ISREG(m) (((m) & S_IFMT) == S_IFREG) |
#define | S_IFLNK S_IFCHR |
#define | S_ISLNK(m) (((m) & S_IFLNK) == S_IFLNK) |
#define | O_DSYNC 0x0080 |
#define | O_CLOEXEC 0 |
#define | EAGAIN WSAEWOULDBLOCK |
#define | EINTR WSAEINTR |
#define | EMSGSIZE WSAEMSGSIZE |
#define | EAFNOSUPPORT WSAEAFNOSUPPORT |
#define | EWOULDBLOCK WSAEWOULDBLOCK |
#define | ECONNABORTED WSAECONNABORTED |
#define | ECONNRESET WSAECONNRESET |
#define | EINPROGRESS WSAEINPROGRESS |
#define | EISCONN WSAEISCONN |
#define | ENOBUFS WSAENOBUFS |
#define | EPROTONOSUPPORT WSAEPROTONOSUPPORT |
#define | ECONNREFUSED WSAECONNREFUSED |
#define | ENOTSOCK WSAENOTSOCK |
#define | EOPNOTSUPP WSAEOPNOTSUPP |
#define | EADDRINUSE WSAEADDRINUSE |
#define | EADDRNOTAVAIL WSAEADDRNOTAVAIL |
#define | EHOSTDOWN WSAEHOSTDOWN |
#define | EHOSTUNREACH WSAEHOSTUNREACH |
#define | ENETDOWN WSAENETDOWN |
#define | ENETRESET WSAENETRESET |
#define | ENETUNREACH WSAENETUNREACH |
#define | ENOTCONN WSAENOTCONN |
#define | ETIMEDOUT WSAETIMEDOUT |
#define | strtok_r strtok_s |
#define | locale_t _locale_t |
#define | tolower_l _tolower_l |
#define | toupper_l _toupper_l |
#define | towlower_l _towlower_l |
#define | towupper_l _towupper_l |
#define | isdigit_l _isdigit_l |
#define | iswdigit_l _iswdigit_l |
#define | isalpha_l _isalpha_l |
#define | iswalpha_l _iswalpha_l |
#define | isalnum_l _isalnum_l |
#define | iswalnum_l _iswalnum_l |
#define | isupper_l _isupper_l |
#define | iswupper_l _iswupper_l |
#define | islower_l _islower_l |
#define | iswlower_l _iswlower_l |
#define | isgraph_l _isgraph_l |
#define | iswgraph_l _iswgraph_l |
#define | isprint_l _isprint_l |
#define | iswprint_l _iswprint_l |
#define | ispunct_l _ispunct_l |
#define | iswpunct_l _iswpunct_l |
#define | isspace_l _isspace_l |
#define | iswspace_l _iswspace_l |
#define | strcoll_l _strcoll_l |
#define | strxfrm_l _strxfrm_l |
#define | wcscoll_l _wcscoll_l |
#define | setlocale(a, b) pgwin32_setlocale(a,b) |
#define | UNBLOCKED_SIGNAL_QUEUE() (pg_signal_queue & ~pg_signal_mask) |
#define | PG_SIGNAL_COUNT 32 |
#define | kill(pid, sig) pgkill(pid,sig) |
#define | socket(af, type, protocol) pgwin32_socket(af, type, protocol) |
#define | bind(s, addr, addrlen) pgwin32_bind(s, addr, addrlen) |
#define | listen(s, backlog) pgwin32_listen(s, backlog) |
#define | accept(s, addr, addrlen) pgwin32_accept(s, addr, addrlen) |
#define | connect(s, name, namelen) pgwin32_connect(s, name, namelen) |
#define | select(n, r, w, e, timeout) pgwin32_select(n, r, w, e, timeout) |
#define | recv(s, buf, len, flags) pgwin32_recv(s, buf, len, flags) |
#define | send(s, buf, len, flags) pgwin32_send(s, buf, len, flags) |
#define | RTLD_NOW 1 |
#define | RTLD_GLOBAL 0 |
#define | putenv(x) pgwin32_putenv(x) |
#define | setenv(x, y, z) pgwin32_setenv(x,y,z) |
#define | unsetenv(x) pgwin32_unsetenv(x) |
Typedefs | |
typedef int | uid_t |
typedef int | gid_t |
typedef long | key_t |
Functions | |
int | setitimer (int which, const struct itimerval *value, struct itimerval *ovalue) |
DWORD | pgwin32_get_file_type (HANDLE hFile) |
int | pgsymlink (const char *oldpath, const char *newpath) |
int | pgreadlink (const char *path, char *buf, size_t size) |
int | _pgfstat64 (int fileno, struct stat *buf) |
int | _pgstat64 (const char *name, struct stat *buf) |
int | _pglstat64 (const char *name, struct stat *buf) |
char * | pgwin32_setlocale (int category, const char *locale) |
void | pgwin32_signal_initialize (void) |
HANDLE | pgwin32_create_signal_listener (pid_t pid) |
void | pgwin32_dispatch_queued_signals (void) |
void | pg_queue_signal (int signum) |
int | pgkill (int pid, int sig) |
SOCKET | pgwin32_socket (int af, int type, int protocol) |
int | pgwin32_bind (SOCKET s, struct sockaddr *addr, int addrlen) |
int | pgwin32_listen (SOCKET s, int backlog) |
SOCKET | pgwin32_accept (SOCKET s, struct sockaddr *addr, int *addrlen) |
int | pgwin32_connect (SOCKET s, const struct sockaddr *name, int namelen) |
int | pgwin32_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval *timeout) |
int | pgwin32_recv (SOCKET s, char *buf, int len, int flags) |
int | pgwin32_send (SOCKET s, const void *buf, int len, int flags) |
int | pgwin32_waitforsinglesocket (SOCKET s, int what, int timeout) |
int | pgwin32_ReserveSharedMemoryRegion (HANDLE) |
void | pgwin32_install_crashdump_handler (void) |
void * | dlopen (const char *file, int mode) |
void * | dlsym (void *handle, const char *symbol) |
int | dlclose (void *handle) |
char * | dlerror (void) |
void | _dosmaperr (unsigned long) |
int | pgwin32_putenv (const char *) |
int | pgwin32_setenv (const char *name, const char *value, int overwrite) |
int | pgwin32_unsetenv (const char *name) |
int | pgwin32_is_service (void) |
int | pgwin32_is_admin (void) |
BOOL | AddUserToTokenDacl (HANDLE hToken) |
ssize_t | pg_pread (int fd, void *buf, size_t nbyte, off_t offset) |
ssize_t | pg_pwrite (int fd, const void *buf, size_t nbyte, off_t offset) |
Variables | |
PGDLLIMPORT volatile int | pg_signal_queue |
PGDLLIMPORT int | pg_signal_mask |
PGDLLIMPORT HANDLE | pgwin32_signal_event |
PGDLLIMPORT HANDLE | pgwin32_initial_signal_pipe |
PGDLLIMPORT int | pgwin32_noblock |
#define _WINSOCKAPI_ |
Definition at line 43 of file win32_port.h.
#define accept | ( | s, | |
addr, | |||
addrlen | |||
) | pgwin32_accept(s, addr, addrlen) |
Definition at line 501 of file win32_port.h.
#define bind | ( | s, | |
addr, | |||
addrlen | |||
) | pgwin32_bind(s, addr, addrlen) |
Definition at line 499 of file win32_port.h.
#define connect | ( | s, | |
name, | |||
namelen | |||
) | pgwin32_connect(s, name, namelen) |
Definition at line 502 of file win32_port.h.
#define EACCESS 2048 |
Definition at line 100 of file win32_port.h.
#define EADDRINUSE WSAEADDRINUSE |
Definition at line 390 of file win32_port.h.
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL |
Definition at line 392 of file win32_port.h.
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
Definition at line 368 of file win32_port.h.
#define EAGAIN WSAEWOULDBLOCK |
Definition at line 362 of file win32_port.h.
#define ECONNABORTED WSAECONNABORTED |
Definition at line 372 of file win32_port.h.
#define ECONNREFUSED WSAECONNREFUSED |
Definition at line 384 of file win32_port.h.
#define ECONNRESET WSAECONNRESET |
Definition at line 374 of file win32_port.h.
#define EHOSTDOWN WSAEHOSTDOWN |
Definition at line 394 of file win32_port.h.
#define EHOSTUNREACH WSAEHOSTUNREACH |
Definition at line 396 of file win32_port.h.
#define EIDRM 4096 |
Definition at line 102 of file win32_port.h.
#define EINPROGRESS WSAEINPROGRESS |
Definition at line 376 of file win32_port.h.
#define EINTR WSAEINTR |
Definition at line 364 of file win32_port.h.
#define EISCONN WSAEISCONN |
Definition at line 378 of file win32_port.h.
#define EMSGSIZE WSAEMSGSIZE |
Definition at line 366 of file win32_port.h.
#define ENABLE_SSPI 1 |
Definition at line 23 of file win32_port.h.
#define ENETDOWN WSAENETDOWN |
Definition at line 398 of file win32_port.h.
#define ENETRESET WSAENETRESET |
Definition at line 400 of file win32_port.h.
#define ENETUNREACH WSAENETUNREACH |
Definition at line 402 of file win32_port.h.
#define ENOBUFS WSAENOBUFS |
Definition at line 380 of file win32_port.h.
#define ENOTCONN WSAENOTCONN |
Definition at line 404 of file win32_port.h.
#define ENOTSOCK WSAENOTSOCK |
Definition at line 386 of file win32_port.h.
#define EOPNOTSUPP WSAEOPNOTSUPP |
Definition at line 388 of file win32_port.h.
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT |
Definition at line 382 of file win32_port.h.
#define ETIMEDOUT WSAETIMEDOUT |
Definition at line 406 of file win32_port.h.
#define EWOULDBLOCK WSAEWOULDBLOCK |
Definition at line 370 of file win32_port.h.
#define fseeko | ( | stream, | |
offset, | |||
origin | |||
) | fseeko64(stream, offset, origin) |
Definition at line 206 of file win32_port.h.
#define fstat microsoft_native_fstat |
Definition at line 273 of file win32_port.h.
#define fstat | ( | fileno, | |
sb | |||
) | _pgfstat64(fileno, sb) |
Definition at line 273 of file win32_port.h.
Definition at line 83 of file win32_port.h.
#define ftello | ( | stream | ) | ftello64(stream) |
Definition at line 209 of file win32_port.h.
#define GETNCNT 16384 |
Definition at line 106 of file win32_port.h.
#define GETPID 262144 |
Definition at line 109 of file win32_port.h.
#define GETVAL 65536 |
Definition at line 107 of file win32_port.h.
#define HAVE_UNION_SEMUN 1 |
Definition at line 91 of file win32_port.h.
#define IPC_CREAT 512 |
Definition at line 94 of file win32_port.h.
#define IPC_EXCL 1024 |
Definition at line 95 of file win32_port.h.
#define IPC_NOWAIT 2048 |
Definition at line 97 of file win32_port.h.
#define IPC_PRIVATE 234564 |
Definition at line 96 of file win32_port.h.
#define IPC_RMID 256 |
Definition at line 93 of file win32_port.h.
#define IPC_STAT 4096 |
Definition at line 98 of file win32_port.h.
#define isalnum_l _isalnum_l |
Definition at line 441 of file win32_port.h.
#define isalpha_l _isalpha_l |
Definition at line 439 of file win32_port.h.
#define isdigit_l _isdigit_l |
Definition at line 437 of file win32_port.h.
#define isgraph_l _isgraph_l |
Definition at line 447 of file win32_port.h.
#define islower_l _islower_l |
Definition at line 445 of file win32_port.h.
#define isprint_l _isprint_l |
Definition at line 449 of file win32_port.h.
#define ispunct_l _ispunct_l |
Definition at line 451 of file win32_port.h.
#define isspace_l _isspace_l |
Definition at line 453 of file win32_port.h.
#define isupper_l _isupper_l |
Definition at line 443 of file win32_port.h.
#define iswalnum_l _iswalnum_l |
Definition at line 442 of file win32_port.h.
#define iswalpha_l _iswalpha_l |
Definition at line 440 of file win32_port.h.
#define iswdigit_l _iswdigit_l |
Definition at line 438 of file win32_port.h.
#define iswgraph_l _iswgraph_l |
Definition at line 448 of file win32_port.h.
#define iswlower_l _iswlower_l |
Definition at line 446 of file win32_port.h.
#define iswprint_l _iswprint_l |
Definition at line 450 of file win32_port.h.
#define iswpunct_l _iswpunct_l |
Definition at line 452 of file win32_port.h.
#define iswspace_l _iswspace_l |
Definition at line 454 of file win32_port.h.
#define iswupper_l _iswupper_l |
Definition at line 444 of file win32_port.h.
#define ITIMER_REAL 0 |
Definition at line 180 of file win32_port.h.
Definition at line 493 of file win32_port.h.
#define listen | ( | s, | |
backlog | |||
) | pgwin32_listen(s, backlog) |
Definition at line 500 of file win32_port.h.
#define locale_t _locale_t |
Definition at line 432 of file win32_port.h.
#define lstat | ( | path, | |
sb | |||
) | _pglstat64(path, sb) |
Definition at line 275 of file win32_port.h.
Definition at line 80 of file win32_port.h.
#define O_CLOEXEC 0 |
Definition at line 349 of file win32_port.h.
#define O_DSYNC 0x0080 |
Definition at line 342 of file win32_port.h.
#define PG_SIGNAL_COUNT 32 |
Definition at line 485 of file win32_port.h.
#define pgoff_t __int64 |
Definition at line 197 of file win32_port.h.
#define putenv | ( | x | ) | pgwin32_putenv(x) |
Definition at line 544 of file win32_port.h.
#define readlink | ( | path, | |
buf, | |||
size | |||
) | pgreadlink(path, buf, size) |
Definition at line 226 of file win32_port.h.
#define recv | ( | s, | |
buf, | |||
len, | |||
flags | |||
) | pgwin32_recv(s, buf, len, flags) |
Definition at line 504 of file win32_port.h.
#define RTLD_GLOBAL 0 |
Definition at line 534 of file win32_port.h.
#define RTLD_NOW 1 |
Definition at line 533 of file win32_port.h.
#define S_IFLNK S_IFCHR |
Definition at line 333 of file win32_port.h.
#define S_IRGRP 0 |
Definition at line 291 of file win32_port.h.
#define S_IROTH 0 |
Definition at line 303 of file win32_port.h.
#define S_IRUSR _S_IREAD |
Definition at line 279 of file win32_port.h.
#define S_IRWXG 0 |
Definition at line 300 of file win32_port.h.
#define S_IRWXO 0 |
Definition at line 312 of file win32_port.h.
Definition at line 288 of file win32_port.h.
#define S_ISDIR | ( | m | ) | (((m) & S_IFMT) == S_IFDIR) |
Definition at line 315 of file win32_port.h.
Definition at line 334 of file win32_port.h.
#define S_ISREG | ( | m | ) | (((m) & S_IFMT) == S_IFREG) |
Definition at line 318 of file win32_port.h.
#define S_IWGRP 0 |
Definition at line 294 of file win32_port.h.
#define S_IWOTH 0 |
Definition at line 306 of file win32_port.h.
#define S_IWUSR _S_IWRITE |
Definition at line 282 of file win32_port.h.
#define S_IXGRP 0 |
Definition at line 297 of file win32_port.h.
#define S_IXOTH 0 |
Definition at line 309 of file win32_port.h.
#define S_IXUSR _S_IEXEC |
Definition at line 285 of file win32_port.h.
#define select | ( | n, | |
r, | |||
w, | |||
e, | |||
timeout | |||
) | pgwin32_select(n, r, w, e, timeout) |
Definition at line 503 of file win32_port.h.
#define send | ( | s, | |
buf, | |||
len, | |||
flags | |||
) | pgwin32_send(s, buf, len, flags) |
Definition at line 505 of file win32_port.h.
#define SETALL 8192 |
Definition at line 105 of file win32_port.h.
#define setenv | ( | x, | |
y, | |||
z | |||
) | pgwin32_setenv(x,y,z) |
Definition at line 545 of file win32_port.h.
#define setlocale | ( | a, | |
b | |||
) | pgwin32_setlocale(a,b) |
Definition at line 475 of file win32_port.h.
#define SETVAL 131072 |
Definition at line 108 of file win32_port.h.
Definition at line 161 of file win32_port.h.
#define SIGALRM 14 |
Definition at line 164 of file win32_port.h.
#define SIGCHLD 20 |
Definition at line 168 of file win32_port.h.
#define SIGCONT 19 |
Definition at line 167 of file win32_port.h.
#define SIGHUP 1 |
Definition at line 158 of file win32_port.h.
#define SIGKILL 9 |
Definition at line 162 of file win32_port.h.
Definition at line 155 of file win32_port.h.
#define SIGPIPE 13 |
Definition at line 163 of file win32_port.h.
#define SIGQUIT 3 |
Definition at line 159 of file win32_port.h.
#define SIGSTOP 17 |
Definition at line 165 of file win32_port.h.
#define SIGTRAP 5 |
Definition at line 160 of file win32_port.h.
#define SIGTSTP 18 |
Definition at line 166 of file win32_port.h.
#define SIGUSR1 30 |
Definition at line 170 of file win32_port.h.
#define SIGUSR2 31 |
Definition at line 171 of file win32_port.h.
#define SIGWINCH 28 |
Definition at line 169 of file win32_port.h.
#define socket | ( | af, | |
type, | |||
protocol | |||
) | pgwin32_socket(af, type, protocol) |
Definition at line 498 of file win32_port.h.
#define stat microsoft_native_stat |
Definition at line 274 of file win32_port.h.
Definition at line 274 of file win32_port.h.
#define strcoll_l _strcoll_l |
Definition at line 455 of file win32_port.h.
#define strtok_r strtok_s |
Definition at line 411 of file win32_port.h.
#define strxfrm_l _strxfrm_l |
Definition at line 456 of file win32_port.h.
#define symlink | ( | oldpath, | |
newpath | |||
) | pgsymlink(oldpath, newpath) |
Definition at line 225 of file win32_port.h.
#define tolower_l _tolower_l |
Definition at line 433 of file win32_port.h.
#define toupper_l _toupper_l |
Definition at line 434 of file win32_port.h.
#define towlower_l _towlower_l |
Definition at line 435 of file win32_port.h.
#define towupper_l _towupper_l |
Definition at line 436 of file win32_port.h.
#define UMDF_USING_NTSTATUS |
Definition at line 58 of file win32_port.h.
#define UNBLOCKED_SIGNAL_QUEUE | ( | ) | (pg_signal_queue & ~pg_signal_mask) |
Definition at line 484 of file win32_port.h.
#define unsetenv | ( | x | ) | pgwin32_unsetenv(x) |
Definition at line 546 of file win32_port.h.
#define USES_WINSOCK |
Definition at line 85 of file win32_port.h.
#define wcscoll_l _wcscoll_l |
Definition at line 457 of file win32_port.h.
#define WEXITSTATUS | ( | w | ) | (w) |
Definition at line 152 of file win32_port.h.
#define WIFEXITED | ( | w | ) | (((w) & 0XFFFFFF00) == 0) |
Definition at line 150 of file win32_port.h.
#define WIFSIGNALED | ( | w | ) | (!WIFEXITED(w)) |
Definition at line 151 of file win32_port.h.
#define WIN32_LEAN_AND_MEAN |
Definition at line 57 of file win32_port.h.
#define WTERMSIG | ( | w | ) | (w) |
Definition at line 153 of file win32_port.h.
typedef int gid_t |
Definition at line 235 of file win32_port.h.
typedef long key_t |
Definition at line 237 of file win32_port.h.
typedef int uid_t |
Definition at line 234 of file win32_port.h.
void _dosmaperr | ( | unsigned long | e | ) |
Definition at line 177 of file win32error.c.
References DEBUG5, doserr, doserrors, ereport, errmsg_internal(), fprintf, i, lengthof, LOG, and winerr.
Referenced by BaseBackup(), cache_locale_time(), copyFile(), dsm_impl_pin_segment(), dsm_impl_unpin_segment(), fdatasync(), fileinfo_to_stat(), FileReadV(), FileWriteV(), getrusage(), initialize_ntdll(), link(), pg_import_system_collations(), pg_pread(), pg_pwrite(), pgwin32_get_file_type(), and readdir().
int _pgfstat64 | ( | int | fileno, |
struct stat * | buf | ||
) |
Definition at line 255 of file win32stat.c.
References buf, fileinfo_to_stat(), and pgwin32_get_file_type().
int _pglstat64 | ( | const char * | name, |
struct stat * | buf | ||
) |
Definition at line 113 of file win32stat.c.
References buf, fileinfo_to_stat(), MAXPGPATH, name, next, pg_RtlGetLastNtStatus, readlink, S_IFLNK, and S_ISDIR.
Referenced by _pgstat64().
int _pgstat64 | ( | const char * | name, |
struct stat * | buf | ||
) |
Definition at line 198 of file win32stat.c.
References _pglstat64(), buf, MAXPGPATH, name, next, pg_RtlGetLastNtStatus, readlink, S_ISLNK, and strlcpy().
BOOL AddUserToTokenDacl | ( | HANDLE | hToken | ) |
int dlclose | ( | void * | handle | ) |
Definition at line 49 of file win32dlopen.c.
References last_dyn_error, and set_dl_error().
Referenced by internal_load_library().
char * dlerror | ( | void | ) |
Definition at line 40 of file win32dlopen.c.
References last_dyn_error.
Referenced by internal_load_library().
void * dlopen | ( | const char * | file, |
int | mode | ||
) |
Definition at line 76 of file win32dlopen.c.
References last_dyn_error, and set_dl_error().
Referenced by internal_load_library().
void * dlsym | ( | void * | handle, |
const char * | symbol | ||
) |
Definition at line 61 of file win32dlopen.c.
References last_dyn_error, and set_dl_error().
Referenced by internal_load_library(), load_external_function(), and lookup_external_function().
ssize_t pg_pread | ( | int | fd, |
void * | buf, | ||
size_t | nbyte, | ||
off_t | offset | ||
) |
Definition at line 20 of file win32pread.c.
References _dosmaperr(), buf, fd(), and Min.
ssize_t pg_pwrite | ( | int | fd, |
const void * | buf, | ||
size_t | nbyte, | ||
off_t | offset | ||
) |
Definition at line 20 of file win32pwrite.c.
References _dosmaperr(), buf, fd(), and Min.
void pg_queue_signal | ( | int | signum | ) |
Definition at line 259 of file signal.c.
References Assert(), PG_SIGNAL_COUNT, pg_signal_crit_sec, pg_signal_queue, pgwin32_signal_event, and sigmask.
Referenced by pg_console_handler(), pg_signal_thread(), and pg_timer_thread().
int pgkill | ( | int | pid, |
int | sig | ||
) |
int pgreadlink | ( | const char * | path, |
char * | buf, | ||
size_t | size | ||
) |
int pgsymlink | ( | const char * | oldpath, |
const char * | newpath | ||
) |
SOCKET pgwin32_accept | ( | SOCKET | s, |
struct sockaddr * | addr, | ||
int * | addrlen | ||
) |
Definition at line 337 of file socket.c.
References pgwin32_poll_signals(), and TranslateSocketError().
int pgwin32_bind | ( | SOCKET | s, |
struct sockaddr * | addr, | ||
int | addrlen | ||
) |
Definition at line 315 of file socket.c.
References bind, and TranslateSocketError().
int pgwin32_connect | ( | SOCKET | s, |
const struct sockaddr * | name, | ||
int | namelen | ||
) |
Definition at line 359 of file socket.c.
References pgwin32_waitforsinglesocket(), and TranslateSocketError().
HANDLE pgwin32_create_signal_listener | ( | pid_t | pid | ) |
Definition at line 227 of file signal.c.
void pgwin32_dispatch_queued_signals | ( | void | ) |
Definition at line 120 of file signal.c.
References Assert(), i, pg_signal_array, PG_SIGNAL_COUNT, pg_signal_crit_sec, pg_signal_defaults, pg_signal_queue, pgwin32_signal_event, sig, sigmask, and UNBLOCKED_SIGNAL_QUEUE.
Referenced by pg_usleep(), PGSemaphoreLock(), pgwin32_poll_signals(), pgwin32_select(), pgwin32_waitforsinglesocket(), pqsigprocmask(), and WaitEventSetWait().
DWORD pgwin32_get_file_type | ( | HANDLE | hFile | ) |
Definition at line 31 of file win32common.c.
References _dosmaperr().
Referenced by _pgfstat64().
void pgwin32_install_crashdump_handler | ( | void | ) |
Definition at line 178 of file crashdump.c.
References crashDumpHandler().
Referenced by main().
int pgwin32_is_admin | ( | void | ) |
Definition at line 49 of file win32security.c.
References _, and log_error().
Referenced by check_root().
int pgwin32_is_service | ( | void | ) |
Definition at line 120 of file win32security.c.
References fprintf.
Referenced by send_message_to_server_log(), and write_stderr().
int pgwin32_listen | ( | SOCKET | s, |
int | backlog | ||
) |
Definition at line 326 of file socket.c.
References listen, and TranslateSocketError().
int pgwin32_putenv | ( | const char * | envval | ) |
Definition at line 27 of file win32env.c.
Referenced by pgwin32_setenv(), and pgwin32_unsetenv().
int pgwin32_recv | ( | SOCKET | s, |
char * | buf, | ||
int | len, | ||
int | flags | ||
) |
Definition at line 382 of file socket.c.
References b, buf, ereport, errmsg_internal(), EWOULDBLOCK, len, NOTICE, pg_usleep(), pgwin32_noblock, pgwin32_poll_signals(), pgwin32_waitforsinglesocket(), and TranslateSocketError().
int pgwin32_ReserveSharedMemoryRegion | ( | HANDLE | hChild | ) |
Definition at line 573 of file win32_shmem.c.
References Assert(), elog, LOG, PROTECTIVE_REGION_SIZE, ShmemProtectiveRegion, UsedShmemSegAddr, and UsedShmemSegSize.
int pgwin32_select | ( | int | nfds, |
fd_set * | readfds, | ||
fd_set * | writefds, | ||
fd_set * | exceptfds, | ||
const struct timeval * | timeout | ||
) |
Definition at line 517 of file socket.c.
References Assert(), buf, EINTR, elog, ERROR, i, pgwin32_dispatch_queued_signals(), pgwin32_poll_signals(), pgwin32_signal_event, and TranslateSocketError().
int pgwin32_send | ( | SOCKET | s, |
const void * | buf, | ||
int | len, | ||
int | flags | ||
) |
Definition at line 459 of file socket.c.
References b, buf, EWOULDBLOCK, len, pgwin32_noblock, pgwin32_poll_signals(), pgwin32_waitforsinglesocket(), and TranslateSocketError().
int pgwin32_setenv | ( | const char * | name, |
const char * | value, | ||
int | overwrite | ||
) |
Definition at line 121 of file win32env.c.
References free, malloc, name, overwrite(), pgwin32_putenv(), sprintf, and value.
char * pgwin32_setlocale | ( | int | category, |
const char * | locale | ||
) |
Definition at line 172 of file win32setlocale.c.
References locale, locale_map_argument, locale_map_result, map_locale(), setlocale, and unconstify.
void pgwin32_signal_initialize | ( | void | ) |
Definition at line 79 of file signal.c.
References ereport, errmsg_internal(), FATAL, i, pg_console_handler(), pg_signal_array, PG_SIGNAL_COUNT, pg_signal_crit_sec, pg_signal_defaults, pg_signal_mask, pg_signal_queue, pg_signal_thread(), and pgwin32_signal_event.
Referenced by InitPostmasterChild(), InitStandaloneProcess(), and PostmasterMain().
SOCKET pgwin32_socket | ( | int | af, |
int | type, | ||
int | protocol | ||
) |
Definition at line 291 of file socket.c.
References closesocket, TranslateSocketError(), and type.
int pgwin32_unsetenv | ( | const char * | name | ) |
Definition at line 150 of file win32env.c.
References free, malloc, name, pgwin32_putenv(), and sprintf.
int pgwin32_waitforsinglesocket | ( | SOCKET | s, |
int | what, | ||
int | timeout | ||
) |
Definition at line 181 of file socket.c.
References buf, EINTR, ereport, errmsg_internal(), ERROR, EWOULDBLOCK, isDataGram(), pgwin32_dispatch_queued_signals(), pgwin32_signal_event, and TranslateSocketError().
Referenced by pgwin32_connect(), pgwin32_recv(), and pgwin32_send().
Definition at line 86 of file timer.c.
References Assert(), timerCA::crit_sec, ereport, errmsg_internal(), timerCA::event, FATAL, ITIMER_REAL, MemSet, pg_timer_thread(), timerCommArea, timerThreadHandle, timerCA::value, and value.
Referenced by do_watch(), fork_process(), and schedule_alarm().
|
extern |
Definition at line 25 of file signal.c.
Referenced by pgwin32_signal_initialize(), and pqsigprocmask().
|
extern |
Definition at line 24 of file signal.c.
Referenced by pg_queue_signal(), pgwin32_dispatch_queued_signals(), and pgwin32_signal_initialize().
|
extern |
Definition at line 28 of file signal.c.
Referenced by pg_signal_thread().
|
extern |
Definition at line 28 of file socket.c.
Referenced by pgwin32_recv(), pgwin32_send(), secure_raw_read(), and secure_raw_write().
|
extern |
Definition at line 27 of file signal.c.
Referenced by CreateWaitEventSet(), pg_queue_signal(), pg_usleep(), PGSemaphoreLock(), pgwin32_dispatch_queued_signals(), pgwin32_select(), pgwin32_signal_initialize(), and pgwin32_waitforsinglesocket().