diff options
author | Bruce Momjian | 2006-01-05 03:01:38 +0000 |
---|---|---|
committer | Bruce Momjian | 2006-01-05 03:01:38 +0000 |
commit | 44f90212236bfb6fc1279e95dc8fa315104d964e (patch) | |
tree | 2f63a7547c3d27de26003be69d60d48fb03d855f /src/port/noblock.c | |
parent | 6f84b2da75d3c5d4d401c94f92c9ac184a6faf5a (diff) |
Remove BEOS port.
Diffstat (limited to 'src/port/noblock.c')
-rw-r--r-- | src/port/noblock.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/port/noblock.c b/src/port/noblock.c index ca11b344fa5..5b478320ee0 100644 --- a/src/port/noblock.c +++ b/src/port/noblock.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/port/noblock.c,v 1.8 2005/10/15 02:49:51 momjian Exp $ + * $PostgreSQL: pgsql/src/port/noblock.c,v 1.9 2006/01/05 03:01:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -20,26 +20,21 @@ bool pg_set_noblock(int sock) { -#if !defined(WIN32) && !defined(__BEOS__) +#if !defined(WIN32) return (fcntl(sock, F_SETFL, O_NONBLOCK) != -1); #else long ioctlsocket_ret = 1; /* Returns non-0 on failure, while fcntl() returns -1 on failure */ -#ifdef WIN32 return (ioctlsocket(sock, FIONBIO, &ioctlsocket_ret) == 0); #endif -#ifdef __BEOS__ - return (ioctl(sock, FIONBIO, &ioctlsocket_ret) == 0); -#endif -#endif } bool pg_set_block(int sock) { -#if !defined(WIN32) && !defined(__BEOS__) +#if !defined(WIN32) int flags; flags = fcntl(sock, F_GETFL); @@ -50,11 +45,6 @@ pg_set_block(int sock) long ioctlsocket_ret = 0; /* Returns non-0 on failure, while fcntl() returns -1 on failure */ -#ifdef WIN32 return (ioctlsocket(sock, FIONBIO, &ioctlsocket_ret) == 0); #endif -#ifdef __BEOS__ - return (ioctl(sock, FIONBIO, &ioctlsocket_ret) == 0); -#endif -#endif } |