PostgreSQL Source Code
git master
|
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.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 | timezone |
struct | itimerval |
struct | stat |
Macros | |
#define | ENABLE_SSPI 1 |
#define | _WINSOCKAPI_ |
#define | fstat microsoft_native_fstat |
#define | stat microsoft_native_stat |
#define | mkdir(a, b) mkdir(a) |
#define | ftruncate(a, b) chsize(a,b) |
#define | fsync(fd) _commit(fd) |
#define | HAVE_FSYNC_WRITETHROUGH |
#define | FSYNC_WRITETHROUGH_IS_FSYNC |
#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 | SIG_DFL ((pqsigfunc)0) |
#define | SIG_ERR ((pqsigfunc)-1) |
#define | SIG_IGN ((pqsigfunc)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) _pgstat64(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 | O_DSYNC 0x0080 |
#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 | 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 | wcstombs_l _wcstombs_l |
#define | mbstowcs_l _mbstowcs_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 | 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) |
int | pgsymlink (const char *oldpath, const char *newpath) |
int | pgreadlink (const char *path, char *buf, size_t size) |
bool | pgwin32_is_junction (const char *path) |
int | _pgfstat64 (int fileno, struct stat *buf) |
int | _pgstat64 (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 | _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) |
Variables | |
PGDLLIMPORT volatile int | pg_signal_queue |
PGDLLIMPORT int | pg_signal_mask |
HANDLE | pgwin32_signal_event |
HANDLE | pgwin32_initial_signal_pipe |
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 462 of file win32_port.h.
Referenced by readMessageFromPipe(), and StreamConnection().
#define bind | ( | s, | |
addr, | |||
addrlen | |||
) | pgwin32_bind(s, addr, addrlen) |
Definition at line 460 of file win32_port.h.
Referenced by ident_inet(), PerformRadiusTransaction(), pgstat_init(), pgwin32_bind(), readMessageFromPipe(), and StreamServerPort().
#define connect | ( | s, | |
name, | |||
namelen | |||
) | pgwin32_connect(s, name, namelen) |
Definition at line 463 of file win32_port.h.
Referenced by CreateSubscription(), ident_inet(), internal_cancel(), parse_subscription_options(), pgstat_init(), PQconnectPoll(), and readMessageFromPipe().
#define EACCESS 2048 |
Definition at line 93 of file win32_port.h.
#define EADDRINUSE WSAEADDRINUSE |
Definition at line 369 of file win32_port.h.
Referenced by get_errno_symbol(), StreamServerPort(), and TranslateSocketError().
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL |
Definition at line 371 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
Definition at line 347 of file win32_port.h.
Referenced by get_errno_symbol(), pg_inet_cidr_ntop(), pg_inet_net_ntop(), pg_inet_net_pton(), and TranslateSocketError().
#define EAGAIN WSAEWOULDBLOCK |
Definition at line 341 of file win32_port.h.
Referenced by get_errno_symbol(), GetNumRegisteredWaitEvents(), gss_read(), internal_flush(), my_sock_read(), my_sock_write(), PGSemaphoreReset(), PGSemaphoreTryLock(), PgstatCollectorMain(), PostmasterIsAliveInternal(), pq_getbyte_if_available(), pqReadData(), pqsecure_open_gss(), pqsecure_raw_read(), pqsecure_raw_write(), pqSendSome(), read_or_wait(), secure_open_gssapi(), secure_read(), and secure_write().
#define ECONNABORTED WSAECONNABORTED |
Definition at line 351 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ECONNREFUSED WSAECONNREFUSED |
Definition at line 363 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ECONNRESET WSAECONNRESET |
Definition at line 353 of file win32_port.h.
Referenced by be_gssapi_read(), be_gssapi_write(), be_tls_read(), be_tls_write(), get_errno_symbol(), pgtls_read(), pgtls_write(), pqsecure_raw_read(), pqsecure_raw_write(), and TranslateSocketError().
#define EHOSTDOWN WSAEHOSTDOWN |
Definition at line 373 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EHOSTUNREACH WSAEHOSTUNREACH |
Definition at line 375 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EIDRM 4096 |
Definition at line 95 of file win32_port.h.
Referenced by get_errno_symbol(), InternalIpcMemoryCreate(), InternalIpcSemaphoreCreate(), and PGSharedMemoryAttach().
#define EINPROGRESS WSAEINPROGRESS |
Definition at line 355 of file win32_port.h.
Referenced by get_errno_symbol(), PQconnectPoll(), and TranslateSocketError().
#define EINTR WSAEINTR |
Definition at line 343 of file win32_port.h.
Referenced by CopyStreamPoll(), dsm_impl_op(), FileRead(), FileWrite(), get_errno_symbol(), GetNumRegisteredWaitEvents(), gss_read(), ident_inet(), internal_cancel(), internal_flush(), my_sock_read(), my_sock_write(), PerformRadiusTransaction(), pg_strong_random(), pg_usleep(), PGSemaphoreLock(), PGSemaphoreReset(), PGSemaphoreTryLock(), PGSemaphoreUnlock(), pgstat_init(), pgstat_send(), PgstatCollectorMain(), pgwin32_poll_signals(), pgwin32_select(), pgwin32_waitforsinglesocket(), pq_getbyte_if_available(), pq_recvbuf(), PQconnectPoll(), pqReadData(), pqsecure_open_gss(), pqsecure_raw_read(), pqsecure_raw_write(), pqSendSome(), pqSocketCheck(), ProcessStartupPacket(), read_or_wait(), report_fork_failure_to_client(), secure_open_gssapi(), select_loop(), ServerLoop(), StreamLogicalLog(), SysLoggerMain(), threadRun(), TranslateSocketError(), try_complete_step(), WaitEventSetWait(), and XLogWrite().
#define EISCONN WSAEISCONN |
Definition at line 357 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EMSGSIZE WSAEMSGSIZE |
Definition at line 345 of file win32_port.h.
Referenced by get_errno_symbol(), inet_cidr_ntop_ipv4(), inet_cidr_ntop_ipv6(), inet_cidr_pton_ipv4(), inet_cidr_pton_ipv6(), inet_net_ntop_ipv4(), inet_net_ntop_ipv6(), inet_net_pton_ipv4(), and TranslateSocketError().
#define ENABLE_SSPI 1 |
Definition at line 23 of file win32_port.h.
#define ENETDOWN WSAENETDOWN |
Definition at line 377 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ENETRESET WSAENETRESET |
Definition at line 379 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ENETUNREACH WSAENETUNREACH |
Definition at line 381 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ENOBUFS WSAENOBUFS |
Definition at line 359 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ENOTCONN WSAENOTCONN |
Definition at line 383 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define ENOTSOCK WSAENOTSOCK |
Definition at line 365 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EOPNOTSUPP WSAEOPNOTSUPP |
Definition at line 367 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT |
Definition at line 361 of file win32_port.h.
Referenced by get_errno_symbol(), and TranslateSocketError().
#define EWOULDBLOCK WSAEWOULDBLOCK |
Definition at line 349 of file win32_port.h.
Referenced by be_gssapi_read(), be_tls_read(), be_tls_write(), get_errno_symbol(), GetNumRegisteredWaitEvents(), gss_read(), internal_flush(), my_sock_read(), my_sock_write(), pg_GSS_read(), PGSemaphoreTryLock(), PgstatCollectorMain(), pgwin32_recv(), pgwin32_send(), pgwin32_waitforsinglesocket(), PostmasterIsAliveInternal(), pq_getbyte_if_available(), PQconnectPoll(), pqReadData(), pqsecure_open_gss(), pqsecure_raw_read(), pqsecure_raw_write(), pqSendSome(), read_or_wait(), secure_open_gssapi(), secure_read(), secure_write(), ServerLoop(), and TranslateSocketError().
#define fseeko | ( | stream, | |
offset, | |||
origin | |||
) | fseeko64(stream, offset, origin) |
Definition at line 207 of file win32_port.h.
Referenced by _CloseArchive(), _PrepParallelRestore(), _PrintTocData(), _ReopenArchive(), _skipData(), _tarAddFile(), checkSeek(), and read_binary_file().
#define fstat microsoft_native_fstat |
Definition at line 274 of file win32_port.h.
Referenced by BeginCopyFrom(), BeginCopyTo(), do_copy(), dsm_impl_mmap(), dsm_impl_op(), ImportSnapshot(), parse_manifest_file(), perform_base_backup(), pg_fsync(), pgstat_send_funcstats(), pgstat_write_db_statsfile(), qtext_load_file(), readfile(), ReadTwoPhaseFile(), rewriteVisibilityMap(), slurpFile(), and StreamLogicalLog().
#define fstat | ( | fileno, | |
sb | |||
) | _pgfstat64(fileno, sb) |
Definition at line 274 of file win32_port.h.
Definition at line 68 of file win32_port.h.
Referenced by dir_sync(), OutputFsync(), pg_fdatasync(), pg_fsync_no_writethrough(), tar_finish(), tar_sync(), test_file_descriptor_sync(), test_open(), test_sync(), update_controlfile(), and WriteEmptyXLOG().
#define FSYNC_WRITETHROUGH_IS_FSYNC |
Definition at line 76 of file win32_port.h.
#define ftello | ( | stream | ) | ftello64(stream) |
Definition at line 210 of file win32_port.h.
Referenced by _CloseArchive(), _getFilePos(), _PrepParallelRestore(), _ReopenArchive(), _tarAddFile(), _tarGetHeader(), and checkSeek().
#define ftruncate | ( | a, | |
b | |||
) | chsize(a,b) |
Definition at line 65 of file win32_port.h.
Referenced by dsm_impl_op(), entry_reset(), FileTruncate(), gc_qtexts(), heap_xlog_logical_rewrite(), pg_truncate(), tar_close(), and truncate_target_file().
#define GETNCNT 16384 |
Definition at line 99 of file win32_port.h.
#define GETPID 262144 |
Definition at line 102 of file win32_port.h.
Referenced by IpcSemaphoreGetLastPID().
#define GETVAL 65536 |
Definition at line 100 of file win32_port.h.
Referenced by IpcSemaphoreGetValue().
#define HAVE_FSYNC_WRITETHROUGH |
Definition at line 75 of file win32_port.h.
#define HAVE_UNION_SEMUN 1 |
Definition at line 84 of file win32_port.h.
#define IPC_CREAT 512 |
Definition at line 87 of file win32_port.h.
Referenced by dsm_impl_sysv(), InternalIpcMemoryCreate(), and InternalIpcSemaphoreCreate().
#define IPC_EXCL 1024 |
Definition at line 88 of file win32_port.h.
Referenced by dsm_impl_sysv(), InternalIpcMemoryCreate(), and InternalIpcSemaphoreCreate().
#define IPC_NOWAIT 2048 |
Definition at line 90 of file win32_port.h.
Referenced by PGSemaphoreTryLock().
#define IPC_PRIVATE 234564 |
Definition at line 89 of file win32_port.h.
Referenced by dsm_impl_sysv().
#define IPC_RMID 256 |
Definition at line 86 of file win32_port.h.
Referenced by dsm_impl_sysv(), InternalIpcMemoryCreate(), IpcMemoryDelete(), IpcSemaphoreCreate(), IpcSemaphoreKill(), and PGSharedMemoryCreate().
#define IPC_STAT 4096 |
Definition at line 91 of file win32_port.h.
Referenced by dsm_impl_sysv(), and PGSharedMemoryAttach().
#define isalnum_l _isalnum_l |
Definition at line 400 of file win32_port.h.
Referenced by pg_wc_isalnum(), and str_initcap().
#define isalpha_l _isalpha_l |
Definition at line 398 of file win32_port.h.
Referenced by pattern_char_isalpha(), and pg_wc_isalpha().
#define isdigit_l _isdigit_l |
Definition at line 396 of file win32_port.h.
Referenced by pg_wc_isdigit().
#define isgraph_l _isgraph_l |
Definition at line 406 of file win32_port.h.
Referenced by pg_wc_isgraph().
#define islower_l _islower_l |
Definition at line 404 of file win32_port.h.
Referenced by pg_wc_islower().
#define isprint_l _isprint_l |
Definition at line 408 of file win32_port.h.
Referenced by pg_wc_isprint().
#define ispunct_l _ispunct_l |
Definition at line 410 of file win32_port.h.
Referenced by pg_wc_ispunct().
#define isspace_l _isspace_l |
Definition at line 412 of file win32_port.h.
Referenced by pg_wc_isspace().
#define isupper_l _isupper_l |
Definition at line 402 of file win32_port.h.
Referenced by pg_wc_isupper().
#define iswalnum_l _iswalnum_l |
Definition at line 401 of file win32_port.h.
Referenced by pg_wc_isalnum(), and str_initcap().
#define iswalpha_l _iswalpha_l |
Definition at line 399 of file win32_port.h.
Referenced by pg_wc_isalpha().
#define iswdigit_l _iswdigit_l |
Definition at line 397 of file win32_port.h.
Referenced by pg_wc_isdigit().
#define iswgraph_l _iswgraph_l |
Definition at line 407 of file win32_port.h.
Referenced by pg_wc_isgraph().
#define iswlower_l _iswlower_l |
Definition at line 405 of file win32_port.h.
Referenced by pg_wc_islower().
#define iswprint_l _iswprint_l |
Definition at line 409 of file win32_port.h.
Referenced by pg_wc_isprint().
#define iswpunct_l _iswpunct_l |
Definition at line 411 of file win32_port.h.
Referenced by pg_wc_ispunct().
#define iswspace_l _iswspace_l |
Definition at line 413 of file win32_port.h.
Referenced by pg_wc_isspace().
#define iswupper_l _iswupper_l |
Definition at line 403 of file win32_port.h.
Referenced by pg_wc_isupper().
#define ITIMER_REAL 0 |
Definition at line 187 of file win32_port.h.
Referenced by schedule_alarm(), and setitimer().
Definition at line 454 of file win32_port.h.
Referenced by ApplyLauncherWakeup(), AutoVacWorkerMain(), BackgroundWorkerStateChange(), CountOtherDBBackends(), CreateLockFile(), do_kill(), do_logrotate(), do_promote(), do_reload(), do_restart(), do_stop(), EmitProcSignalBarrier(), ForgetUnstartedBackgroundWorkers(), HandleWalSndInitStopping(), InvalidateObsoleteReplicationSlots(), IpcSemaphoreCreate(), kill_bgchild_atexit(), LockTimeoutHandler(), logicalrep_worker_stop(), maybe_start_bgworkers(), pg_promote(), pg_reload_conf(), pg_signal_backend(), pg_spinlock_barrier(), pg_wait_until_termination(), postmaster_is_alive(), ProcKill(), ProcSleep(), regression_main(), ReportBackgroundWorkerExit(), ReportBackgroundWorkerPID(), RequestCheckpoint(), SendPostmasterSignal(), SendProcSignal(), ServerLoop(), SetLatch(), ShutdownWalRcv(), ShutdownWorkersHard(), signal_child(), sigTermHandler(), StatementTimeoutHandler(), TerminateOtherDBBackends(), trap_sigint_during_startup(), and wait_pid().
#define listen | ( | s, | |
backlog | |||
) | pgwin32_listen(s, backlog) |
Definition at line 461 of file win32_port.h.
Referenced by pgwin32_listen(), readMessageFromPipe(), and StreamServerPort().
#define locale_t _locale_t |
Definition at line 391 of file win32_port.h.
Referenced by char2wchar(), ecpg_do_epilogue(), ecpg_do_prologue(), ECPGget_desc(), get_collation_actual_version(), pg_newlocale_from_collation(), and wchar2char().
#define lstat | ( | path, | |
sb | |||
) | _pgstat64(path, sb) |
Definition at line 276 of file win32_port.h.
Referenced by check_db_file_conflict(), CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), copydir(), destroy_tablespace_directories(), get_dirent_type(), GETTEMP(), perform_base_backup(), recurse_dir(), remove_dbtablespaces(), remove_tablespace_symlink(), RemovePgTempFilesInDir(), RemoveXlogFile(), ReorderBufferCleanupSerializedTXNs(), resolve_symlinks(), rmtree(), scan_directory(), sendDir(), sendTablespace(), StartupReplicationSlots(), and SyncDataDirectory().
#define mbstowcs_l _mbstowcs_l |
Definition at line 418 of file win32_port.h.
Referenced by char2wchar().
#define mkdir | ( | a, | |
b | |||
) | mkdir(a) |
Definition at line 63 of file win32_port.h.
Referenced by create_target_dir(), create_xlog_or_symlink(), GETTEMP(), InitArchiveFmt_Directory(), initialize_data_directory(), make_directory(), MakePGDirectory(), mkdirs(), pg_mkdir_p(), proc_exit(), and ReceiveTarAndUnpackCopyChunk().
#define O_DSYNC 0x0080 |
Definition at line 328 of file win32_port.h.
Referenced by test_sync().
#define PG_SIGNAL_COUNT 32 |
Definition at line 446 of file win32_port.h.
Referenced by pg_queue_signal(), pgwin32_dispatch_queued_signals(), pgwin32_signal_initialize(), and pqsignal().
#define pgoff_t __int64 |
Definition at line 200 of file win32_port.h.
Referenced by _allocAH(), _CloseArchive(), _getFilePos(), _PrepParallelRestore(), _PrintTocData(), _ReopenArchive(), _tarAddFile(), _tarGetHeader(), _WorkerJobRestoreCustom(), checkSeek(), perform_base_backup(), ReadOffset(), sendFile(), and WriteOffset().
#define putenv | ( | x | ) | pgwin32_putenv(x) |
Definition at line 496 of file win32_port.h.
Referenced by setenv(), and unsetenv().
#define readlink | ( | path, | |
buf, | |||
size | |||
) | pgreadlink(path, buf, size) |
Definition at line 228 of file win32_port.h.
Referenced by check_system_link_file(), do_pg_start_backup(), itssymlink(), pg_tablespace_location(), recurse_dir(), resolve_symlinks(), and sendDir().
#define recv | ( | s, | |
buf, | |||
len, | |||
flags | |||
) | pgwin32_recv(s, buf, len, flags) |
Definition at line 465 of file win32_port.h.
Referenced by ident_inet(), internal_cancel(), pgstat_init(), PgstatCollectorMain(), pqsecure_raw_read(), and secure_raw_read().
#define S_IRGRP 0 |
Definition at line 292 of file win32_port.h.
Referenced by be_lo_export(), and PostmasterMain().
#define S_IROTH 0 |
Definition at line 304 of file win32_port.h.
Referenced by be_lo_export(), and PostmasterMain().
#define S_IRUSR _S_IREAD |
Definition at line 280 of file win32_port.h.
Referenced by be_lo_export(), PostmasterMain(), readRecoverySignalFile(), StreamLogicalLog(), tar_open_for_write(), tarOpen(), test_open(), validate_exec(), and verify_directories().
#define S_IRWXG 0 |
Definition at line 301 of file win32_port.h.
Referenced by check_ssl_key_file_permissions(), initialize_SSL(), logfile_open(), make_directory(), passwordFromFile(), pg_mkdir_p(), proc_exit(), and tarOpen().
#define S_IRWXO 0 |
Definition at line 313 of file win32_port.h.
Referenced by check_ssl_key_file_permissions(), initialize_SSL(), logfile_open(), make_directory(), passwordFromFile(), pg_mkdir_p(), proc_exit(), and tarOpen().
Definition at line 289 of file win32_port.h.
Referenced by create_script_for_old_cluster_deletion(), logfile_open(), make_directory(), pg_mkdir_p(), and proc_exit().
#define S_ISDIR | ( | m | ) | (((m) & S_IFMT) == S_IFDIR) |
Definition at line 316 of file win32_port.h.
Referenced by _discoverArchiveFormat(), BeginCopyFrom(), BeginCopyTo(), calculate_tablespace_size(), check_bin_dir(), check_single_dir(), checkDataDir(), copydir(), create_tablespace_directories(), createdb(), CreateSlotOnDisk(), dbase_redo(), destroy_tablespace_directories(), directory_exists(), do_copy(), file_exists(), get_dirent_type(), get_tablespace_paths(), GETTEMP(), InitArchiveFmt_Directory(), Initialize(), itsdir(), pg_file_sync(), pg_fsync(), pg_mkdir_p(), pg_stat_file(), pg_tzenumerate_next(), recurse_dir(), remove_dbtablespaces(), remove_tablespace_symlink(), RemovePgTempFilesInDir(), ReorderBufferCleanupSerializedTXNs(), rmtree(), scan_available_timezones(), scan_directory(), sendDir(), StartupReplicationSlots(), TablespaceCreateDbspace(), tarCreateHeader(), ValidateXLOGDirectoryStructure(), and verify_backup_file().
#define S_ISREG | ( | m | ) | (((m) & S_IFMT) == S_IFREG) |
Definition at line 319 of file win32_port.h.
Referenced by _discoverArchiveFormat(), check_input(), check_ssl_key_file_permissions(), CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), copydir(), get_dirent_type(), initialize_SSL(), passwordFromFile(), pg_ls_dir_files(), recurse_dir(), RemoveXlogFile(), scan_directory(), sendDir(), StreamLogicalLog(), validate_exec(), and verify_backup_file().
#define S_IWGRP 0 |
Definition at line 295 of file win32_port.h.
Referenced by be_lo_export(), BeginCopyTo(), check_ssl_key_file_permissions(), and main().
#define S_IWOTH 0 |
Definition at line 307 of file win32_port.h.
Referenced by be_lo_export(), BeginCopyTo(), and main().
#define S_IWUSR _S_IWRITE |
Definition at line 283 of file win32_port.h.
Referenced by be_lo_export(), logfile_open(), pg_mkdir_p(), PostmasterMain(), readRecoverySignalFile(), StreamLogicalLog(), tar_open_for_write(), tarOpen(), test_open(), and verify_directories().
#define S_IXGRP 0 |
Definition at line 298 of file win32_port.h.
Referenced by check_ssl_key_file_permissions().
#define S_IXOTH 0 |
Definition at line 310 of file win32_port.h.
#define S_IXUSR _S_IEXEC |
Definition at line 286 of file win32_port.h.
Referenced by pg_mkdir_p(), and validate_exec().
#define select | ( | n, | |
r, | |||
w, | |||
e, | |||
timeout | |||
) | pgwin32_select(n, r, w, e, timeout) |
Definition at line 464 of file win32_port.h.
Referenced by CopyStreamPoll(), DoCopy(), getMessageFromWorker(), main(), PerformRadiusTransaction(), pg_usleep(), pgstat_init(), pqSocketPoll(), reached_end_position(), select_loop(), ServerLoop(), StreamLogicalLog(), test_pipelined_insert(), try_complete_step(), and wait_on_socket_set().
#define send | ( | s, | |
buf, | |||
len, | |||
flags | |||
) | pgwin32_send(s, buf, len, flags) |
Definition at line 466 of file win32_port.h.
Referenced by ident_inet(), internal_cancel(), pgstat_init(), pgstat_send(), pqsecure_raw_write(), ProcessStartupPacket(), report_fork_failure_to_client(), and secure_raw_write().
#define SETALL 8192 |
Definition at line 98 of file win32_port.h.
#define setenv | ( | x, | |
y, | |||
z | |||
) | pgwin32_setenv(x,y,z) |
Definition at line 497 of file win32_port.h.
Referenced by CheckSCRAMAuth(), do_start(), ecpg_start_test(), exec_command_setenv(), get_control_data(), get_restricted_token(), initialize_environment(), isolation_start_test(), main(), parseCommandLine(), pg_perm_setlocale(), psql_start_test(), regress_setenv(), regression_main(), secure_open_gssapi(), set_pglocale_pgservice(), and setup_pgdata().
#define setlocale | ( | a, | |
b | |||
) | pgwin32_setlocale(a,b) |
Definition at line 436 of file win32_port.h.
Referenced by cache_locale_time(), check_locale(), check_locale_name(), check_strxfrm_bug(), ecpg_do_epilogue(), ecpg_do_prologue(), ECPGget_desc(), get_canonical_locale_name(), lc_collate_is_c(), lc_ctype_is_c(), locale_date_order(), main(), pg_perm_setlocale(), PGLC_localeconv(), pgwin32_setlocale(), plperl_init_interp(), plperl_inline_callback(), set_pglocale_pgservice(), and SetMessageEncoding().
#define SETVAL 131072 |
Definition at line 101 of file win32_port.h.
Referenced by IpcSemaphoreInitialize().
#define SIG_DFL ((pqsigfunc)0) |
Definition at line 154 of file win32_port.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), bootstrap_signals(), CheckpointerMain(), OpenPipeStream(), pg_crc32c_armv8_available(), PgArchiverMain(), PgstatCollectorMain(), pgwin32_dispatch_queued_signals(), pgwin32_signal_initialize(), PostgresMain(), pqsignal_pm(), restore_sigpipe_trap(), StartBackgroundWorker(), StartupProcessMain(), stop_postmaster(), SysLoggerMain(), trap_sigint_during_startup(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
#define SIG_ERR ((pqsigfunc)-1) |
Definition at line 155 of file win32_port.h.
Referenced by pgwin32_dispatch_queued_signals(), pqsignal(), and pqsignal_pm().
#define SIG_IGN ((pqsigfunc)1) |
Definition at line 156 of file win32_port.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), disable_sigpipe_trap(), InitializeLatchSupport(), OpenPipeStream(), ParallelBackupStart(), PgArchiverMain(), PgstatCollectorMain(), pgwin32_dispatch_queued_signals(), pgwin32_signal_initialize(), PostgresMain(), PostmasterMain(), PQprint(), pqsignal_pm(), restore_sigpipe_trap(), setup_signals(), ShutdownLatchSupport(), sigTermHandler(), StartBackgroundWorker(), StartupProcessMain(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
Definition at line 162 of file win32_port.h.
Referenced by pqinitmask(), and set_sig().
#define SIGALRM 14 |
Definition at line 165 of file win32_port.h.
Referenced by BackgroundWriterMain(), CheckpointerMain(), InitializeTimeouts(), main(), pg_timer_thread(), PgArchiverMain(), PgstatCollectorMain(), PostmasterMain(), pqinitmask(), pqsignal(), setalarm(), SysLoggerMain(), WalReceiverMain(), and WalWriterMain().
#define SIGCHLD 20 |
Definition at line 169 of file win32_port.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), PgArchiverMain(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), PostmasterMarkPIDForWorkerNotify(), pqsignal(), pqsignal_pm(), StartBackgroundWorker(), StartupProcessMain(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
#define SIGCONT 19 |
Definition at line 168 of file win32_port.h.
Referenced by pqinitmask().
#define SIGHUP 1 |
Definition at line 159 of file win32_port.h.
Referenced by ApplyLauncherMain(), ApplyWorkerMain(), autoprewarm_main(), AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), bootstrap_signals(), CheckpointerMain(), do_kill(), initialize_worker_spi(), main(), pg_reload_conf(), PgArchiverMain(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), set_sig(), setup_signals(), SIGHUP_handler(), StartBackgroundWorker(), StartupProcessMain(), stop_postmaster(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
#define SIGKILL 9 |
Definition at line 163 of file win32_port.h.
Referenced by regression_main(), ServerLoop(), set_sig(), signal_child(), and TerminateChildren().
Definition at line 148 of file win32_port.h.
Referenced by pg_queue_signal(), and pgwin32_dispatch_queued_signals().
#define SIGPIPE 13 |
Definition at line 164 of file win32_port.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), ClosePipeFromProgram(), disable_sigpipe_trap(), OpenPipeStream(), ParallelBackupStart(), PgArchiverMain(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), PQgssEncInUse(), PQprint(), restore_sigpipe_trap(), setup_signals(), StartBackgroundWorker(), StartupProcessMain(), stop_postmaster(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
#define SIGQUIT 3 |
Definition at line 160 of file win32_port.h.
Referenced by bootstrap_signals(), HandleChildCrash(), InitPostmasterChild(), PgstatCollectorMain(), pmdie(), PostgresMain(), PostmasterMain(), PostmasterStateMachine(), pqinitmask(), quickdie(), reaper(), ServerLoop(), set_mode(), set_sig(), setup_cancel_handler(), setup_signals(), signal_child(), sigTermHandler(), SysLoggerMain(), and TerminateChildren().
#define SIGSTOP 17 |
Definition at line 166 of file win32_port.h.
Referenced by HandleChildCrash(), and signal_child().
#define SIGTRAP 5 |
Definition at line 161 of file win32_port.h.
Referenced by pqinitmask().
#define SIGTSTP 18 |
Definition at line 167 of file win32_port.h.
#define SIGUSR1 30 |
Definition at line 171 of file win32_port.h.
Referenced by ApplyLauncherWakeup(), autoprewarm_main(), AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWorkerStateChange(), BackgroundWriterMain(), CheckpointerMain(), do_logrotate(), do_promote(), EmitProcSignalBarrier(), ForgetUnstartedBackgroundWorkers(), maybe_start_bgworkers(), pg_promote(), PgArchiverMain(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), ReportBackgroundWorkerExit(), ReportBackgroundWorkerPID(), SendPostmasterSignal(), SendProcSignal(), set_sig(), sigusr1_handler(), StartBackgroundWorker(), StartupProcessMain(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
#define SIGUSR2 31 |
Definition at line 172 of file win32_port.h.
Referenced by AutoVacLauncherMain(), AutoVacWorkerMain(), BackgroundWriterMain(), CheckpointerMain(), PgArchiverMain(), PgstatCollectorMain(), PostgresMain(), PostmasterMain(), PostmasterStateMachine(), ProcKill(), reaper(), ServerLoop(), set_sig(), sigusr1_handler(), StartBackgroundWorker(), StartupProcessMain(), SysLoggerMain(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
#define SIGWINCH 28 |
Definition at line 170 of file win32_port.h.
#define socket | ( | af, | |
type, | |||
protocol | |||
) | pgwin32_socket(af, type, protocol) |
Definition at line 459 of file win32_port.h.
Referenced by ident_inet(), internal_cancel(), PerformRadiusTransaction(), pgstat_init(), PQconnectPoll(), readMessageFromPipe(), run_ifaddr_callback(), and StreamServerPort().
#define stat microsoft_native_stat |
Definition at line 275 of file win32_port.h.
Referenced by _discoverArchiveFormat(), _PrepParallelRestore(), AlterSystemSetConfigFile(), BackupInProgress(), bt_page_stats_internal(), calculate_relation_size(), calculate_tablespace_size(), CancelBackup(), check_bin_dir(), check_for_new_tablespace_dir(), check_input(), check_single_dir(), check_ssl_key_file_permissions(), checkDataDir(), CheckForStandbyTrigger(), CheckLogrotateSignal(), CheckPromoteSignal(), cmp_abs(), create_tablespace_directories(), createdb(), CreateExtensionInternal(), CreateSlotOnDisk(), db_dir_size(), dbase_redo(), dir_get_file_size(), directory_exists(), do_edit(), do_pg_start_backup(), do_pg_stop_backup(), do_restart(), do_stop(), file_exists(), fileAnalyzeForeignTable(), FileClose(), fileExplainForeignScan(), FindStreamingStart(), get_dirent_type(), get_pgpid(), get_tablespace_paths(), GETTEMP(), hash_page_stats(), InitArchiveFmt_Directory(), Initialize(), initialize_SSL(), InstallXLogFileSegment(), internal_load_library(), internal_unload_library(), itsdir(), KeepFileRestoredFromArchive(), parseServiceInfo(), passwordFromFile(), PathNameDeleteTemporaryDir(), PathNameDeleteTemporaryFile(), pg_file_sync(), pg_file_write_internal(), pg_ls_dir_files(), pg_mkdir_p(), pg_stat_file(), pg_tzenumerate_next(), pgarch_ArchiverCopyLoop(), PGReserveSemaphores(), PGSharedMemoryAttach(), PGSharedMemoryCreate(), PutMemoryContextsStatsTupleStore(), read_whole_file(), readRecoverySignalFile(), RestoreArchivedFile(), scan_available_timezones(), SelectConfigFiles(), SetDataDirectoryCreatePerm(), SnapBuildSerialize(), sqrt_var(), StartupXLOG(), statext_mcv_clauselist_selectivity(), TablespaceCreateDbspace(), transfer_relfile(), ts_accum(), ts_stat1(), ts_stat2(), ts_stat_sql(), validate_exec(), ValidateXLOGDirectoryStructure(), verify_backup_file(), XLogArchiveCheckDone(), XLogArchiveForceDone(), XLogArchiveIsBusy(), XLogArchiveIsReady(), and XLogArchiveIsReadyOrDone().
Definition at line 275 of file win32_port.h.
#define strcoll_l _strcoll_l |
Definition at line 414 of file win32_port.h.
Referenced by varstr_cmp(), and varstrfastcmp_locale().
#define strxfrm_l _strxfrm_l |
Definition at line 415 of file win32_port.h.
Referenced by varstr_abbrev_convert().
#define symlink | ( | oldpath, | |
newpath | |||
) | pgsymlink(oldpath, newpath) |
Definition at line 227 of file win32_port.h.
Referenced by create_tablespace_directories(), create_target_symlink(), create_xlog_or_symlink(), dolink(), main(), ReceiveTarAndUnpackCopyChunk(), and StartupXLOG().
#define tolower_l _tolower_l |
Definition at line 392 of file win32_port.h.
Referenced by pg_wc_tolower(), SB_lower_char(), str_initcap(), and str_tolower().
#define toupper_l _toupper_l |
Definition at line 393 of file win32_port.h.
Referenced by pg_wc_toupper(), str_initcap(), and str_toupper().
#define towlower_l _towlower_l |
Definition at line 394 of file win32_port.h.
Referenced by pg_wc_tolower(), str_initcap(), and str_tolower().
#define towupper_l _towupper_l |
Definition at line 395 of file win32_port.h.
Referenced by pg_wc_toupper(), str_initcap(), and str_toupper().
#define UNBLOCKED_SIGNAL_QUEUE | ( | ) | (pg_signal_queue & ~pg_signal_mask) |
Definition at line 445 of file win32_port.h.
Referenced by pgwin32_dispatch_queued_signals(), and pgwin32_poll_signals().
#define unsetenv | ( | x | ) | pgwin32_unsetenv(x) |
Definition at line 498 of file win32_port.h.
Referenced by bootstrap_template1(), ecpg_start_test(), exec_command_setenv(), get_control_data(), initialize_environment(), isolation_start_test(), main(), and psql_start_test().
#define USES_WINSOCK |
Definition at line 78 of file win32_port.h.
#define wcscoll_l _wcscoll_l |
Definition at line 416 of file win32_port.h.
Referenced by varstr_cmp().
#define wcstombs_l _wcstombs_l |
Definition at line 417 of file win32_port.h.
Referenced by wchar2char().
#define WEXITSTATUS | ( | w | ) | (w) |
Definition at line 145 of file win32_port.h.
Referenced by log_child_failure(), LogChildExit(), pgarch_archiveXlog(), run_diff(), wait_result_is_any_signal(), wait_result_is_signal(), and wait_result_to_str().
#define WIFEXITED | ( | w | ) | (((w) & 0XFFFFFF00) == 0) |
Definition at line 143 of file win32_port.h.
Referenced by log_child_failure(), LogChildExit(), pgarch_archiveXlog(), run_diff(), wait_result_is_any_signal(), wait_result_is_signal(), and wait_result_to_str().
#define WIFSIGNALED | ( | w | ) | (!WIFEXITED(w)) |
Definition at line 144 of file win32_port.h.
Referenced by log_child_failure(), LogChildExit(), pgarch_archiveXlog(), wait_result_is_any_signal(), wait_result_is_signal(), and wait_result_to_str().
#define WTERMSIG | ( | w | ) | (w) |
Definition at line 146 of file win32_port.h.
Referenced by log_child_failure(), LogChildExit(), pgarch_archiveXlog(), wait_result_is_signal(), and wait_result_to_str().
typedef int gid_t |
Definition at line 237 of file win32_port.h.
typedef long key_t |
Definition at line 239 of file win32_port.h.
typedef int uid_t |
Definition at line 236 of file win32_port.h.
void _dosmaperr | ( | unsigned | long | ) |
Definition at line 171 of file win32error.c.
References DEBUG5, doserr, doserrors, ereport, errmsg_internal(), fprintf, i, lengthof, LOG, and winerr.
Referenced by BaseBackup(), copyFile(), dsm_impl_pin_segment(), dsm_impl_sysv(), dsm_impl_unpin_segment(), FileRead(), FileWrite(), getrusage(), mkdirs(), pg_pread(), pg_pwrite(), readdir(), and write_syslogger_file().
int _pgfstat64 | ( | int | fileno, |
struct stat * | buf | ||
) |
int _pgstat64 | ( | const char * | name, |
struct stat * | buf | ||
) |
BOOL AddUserToTokenDacl | ( | HANDLE | hToken | ) |
Referenced by do_kill(), and set_pglocale_pgservice().
void pg_queue_signal | ( | int | signum | ) |
Definition at line 215 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(), pg_timer_thread(), and PostmasterMarkPIDForWorkerNotify().
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 331 of file socket.c.
References pgwin32_poll_signals(), and TranslateSocketError().
int pgwin32_bind | ( | SOCKET | s, |
struct sockaddr * | addr, | ||
int | addrlen | ||
) |
int pgwin32_connect | ( | SOCKET | s, |
const struct sockaddr * | name, | ||
int | namelen | ||
) |
Definition at line 353 of file socket.c.
References pgwin32_waitforsinglesocket(), and TranslateSocketError().
HANDLE pgwin32_create_signal_listener | ( | pid_t | pid | ) |
void pgwin32_dispatch_queued_signals | ( | void | ) |
Definition at line 108 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, SIG_DFL, SIG_ERR, SIG_IGN, sigmask, and UNBLOCKED_SIGNAL_QUEUE.
Referenced by pg_usleep(), PGSemaphoreLock(), pgwin32_poll_signals(), pgwin32_select(), pgwin32_waitforsinglesocket(), pqsigsetmask(), and WaitEventSetWait().
void pgwin32_install_crashdump_handler | ( | void | ) |
Definition at line 180 of file crashdump.c.
References crashDumpHandler().
Referenced by main().
int pgwin32_is_admin | ( | void | ) |
bool pgwin32_is_junction | ( | const char * | path | ) |
Referenced by _tarWriteDir(), recurse_dir(), scan_directory(), sendDir(), and SyncDataDirectory().
int pgwin32_is_service | ( | void | ) |
Definition at line 117 of file win32security.c.
References fprintf.
Referenced by send_message_to_server_log(), and write_stderr().
int pgwin32_listen | ( | SOCKET | s, |
int | backlog | ||
) |
int pgwin32_putenv | ( | const char * | ) |
int pgwin32_recv | ( | SOCKET | s, |
char * | buf, | ||
int | len, | ||
int | flags | ||
) |
Definition at line 376 of file socket.c.
References buf, ereport, errmsg_internal(), EWOULDBLOCK, NOTICE, pg_usleep(), pgwin32_noblock, pgwin32_poll_signals(), pgwin32_waitforsinglesocket(), and TranslateSocketError().
int pgwin32_ReserveSharedMemoryRegion | ( | HANDLE | ) |
Definition at line 554 of file win32_shmem.c.
References Assert, elog, LOG, PROTECTIVE_REGION_SIZE, ShmemProtectiveRegion, UsedShmemSegAddr, and UsedShmemSegSize.
Referenced by BackendRun().
int pgwin32_select | ( | int | nfds, |
fd_set * | readfds, | ||
fd_set * | writefds, | ||
fd_set * | exceptfds, | ||
const struct timeval * | timeout | ||
) |
Definition at line 511 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 453 of file socket.c.
References EWOULDBLOCK, 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, pgwin32_putenv(), and sprintf.
char* pgwin32_setlocale | ( | int | category, |
const char * | locale | ||
) |
Definition at line 172 of file win32setlocale.c.
References map_locale(), setlocale, and unconstify.
void pgwin32_signal_initialize | ( | void | ) |
Definition at line 69 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(), pgwin32_signal_event, SIG_DFL, and SIG_IGN.
Referenced by BackendRun(), and main().
SOCKET pgwin32_socket | ( | int | af, |
int | type, | ||
int | protocol | ||
) |
int pgwin32_unsetenv | ( | const char * | name | ) |
int pgwin32_waitforsinglesocket | ( | SOCKET | s, |
int | what, | ||
int | timeout | ||
) |
Definition at line 176 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, itimerval::it_interval, ITIMER_REAL, MemSet, pg_timer_thread(), timerThreadHandle, and timerCA::value.
Referenced by fork_process(), and schedule_alarm().
PGDLLIMPORT int pg_signal_mask |
Definition at line 25 of file signal.c.
Referenced by pgwin32_signal_initialize(), and pqsigsetmask().
PGDLLIMPORT volatile int pg_signal_queue |
Definition at line 24 of file signal.c.
Referenced by pg_queue_signal(), pgwin32_dispatch_queued_signals(), and pgwin32_signal_initialize().
HANDLE pgwin32_initial_signal_pipe |
Definition at line 28 of file signal.c.
Referenced by pg_signal_thread(), and PostmasterMarkPIDForWorkerNotify().
int pgwin32_noblock |
Definition at line 28 of file socket.c.
Referenced by PgstatCollectorMain(), pgwin32_recv(), pgwin32_send(), secure_raw_read(), and secure_raw_write().
HANDLE pgwin32_signal_event |
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().