mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
This particular batch was just for *.c and *.h file.
The changes were made with the following 2 commands:
find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'
find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o \( -name '*.[ch]' \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
35 lines
782 B
C
35 lines
782 B
C
/*
|
|
* $PostgreSQL: pgsql/src/interfaces/libpq/win32.h,v 1.29 2008/05/17 01:28:25 adunstan Exp $
|
|
*/
|
|
#ifndef __win32_h_included
|
|
#define __win32_h_included
|
|
|
|
/*
|
|
* Some compatibility functions
|
|
*/
|
|
#ifdef __BORLANDC__
|
|
#define _timeb timeb
|
|
#define _ftime(a) ftime(a)
|
|
#define _errno errno
|
|
#define popen(a,b) _popen(a,b)
|
|
#else
|
|
/* open provided elsewhere */
|
|
#define close(a) _close(a)
|
|
#define read(a,b,c) _read(a,b,c)
|
|
#define write(a,b,c) _write(a,b,c)
|
|
#endif
|
|
|
|
#undef EAGAIN /* doesn't apply on sockets */
|
|
#undef EINTR
|
|
#define EINTR WSAEINTR
|
|
#define EWOULDBLOCK WSAEWOULDBLOCK
|
|
#define ECONNRESET WSAECONNRESET
|
|
#define EINPROGRESS WSAEINPROGRESS
|
|
|
|
/*
|
|
* support for handling Windows Socket errors
|
|
*/
|
|
extern const char *winsock_strerror(int err, char *strerrbuf, size_t buflen);
|
|
|
|
#endif
|