/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#ifdef __solaris__
#include <thread.h>
#else
#include <pthread.h>
#endif
#include "socket_md.h"
#include "sysSocket.h"
int
}
int
return DBG_EINPROGRESS;
} else {
return rv;
}
}
int
if (rv == 0) {
return DBG_ETIMEOUT;
}
if (rv > 0) {
return 0;
}
return rv;
}
int
int rv;
for (;;) {
if (rv >= 0) {
return rv;
}
return rv;
}
}
}
int
int rv;
do {
return rv;
}
int
int rv;
do {
return rv;
}
int
int rv;
do {
return rv;
}
int
int rv;
do {
return rv;
}
struct hostent *
return gethostbyname(hostname);
}
unsigned short
}
int
}
int rv;
do {
return rv;
}
int
}
}
}
unsigned short
}
int
}
}
int
{
if (cmd == TCP_NODELAY) {
return SYS_ERR;
}
if(on) {
return SYS_ERR;
}
} else {
return SYS_ERR;
}
}
return SYS_ERR;
}
} else if (cmd == SO_REUSEADDR) {
return SYS_ERR;
}
} else {
return SYS_ERR;
}
return SYS_OK;
}
int
}
}
return 0;
}
int
int rv;
if (rd) {
}
if (wr) {
}
if (rv >= 0) {
rv = 0;
rv |= DBG_POLLIN;
}
rv |= DBG_POLLOUT;
}
}
return rv;
}
int
return 0;
}
#ifdef __solaris__
int
dbgsysTlsAlloc() {
perror("thr_keycreate");
exit(-1);
}
return (int)tk;
}
void
/* no-op */
}
void
}
void *
void* r = NULL;
return r;
}
#else
int
dbgsysTlsAlloc() {
perror("pthread_key_create");
exit(-1);
}
return (int)key;
}
void
}
void
}
void *
}
#endif
long
struct timeval t;
gettimeofday(&t, 0);
}