hotspot/src/os/windows/vm/hpi_windows.hpp

Print this page
rev 611 : Merge
   1 #ifdef USE_PRAGMA_IDENT_HDR
   2 #pragma ident "@(#)hpi_windows.hpp      1.17 07/05/05 17:04:44 JVM"
   3 #endif
   4 /*
   5  * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
   6  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   7  *
   8  * This code is free software; you can redistribute it and/or modify it
   9  * under the terms of the GNU General Public License version 2 only, as
  10  * published by the Free Software Foundation.
  11  *
  12  * This code is distributed in the hope that it will be useful, but WITHOUT
  13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  15  * version 2 for more details (a copy is included in the LICENSE file that
  16  * accompanied this code).
  17  *
  18  * You should have received a copy of the GNU General Public License version
  19  * 2 along with this work; if not, write to the Free Software Foundation,
  20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  21  *
  22  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  23  * CA 95054 USA or visit www.sun.com if you need additional information or


  88     
  89 HPIDECL(recvfrom, "recvfrom", _socket, RecvFrom, int, "%d",
  90         (int fd, char *buf, int nbytes, int flags,
  91          struct sockaddr *from, int *fromlen),
  92         ("fd = %d, buf = %p, len = %d, flags = %d, frm = %p, frmlen = %d",
  93          fd, buf, nbytes, flags, from, fromlen),
  94         (fd, buf, nbytes, flags, from, fromlen));
  95     
  96 HPIDECL(recv, "recv", _socket, Recv, int, "%d",
  97         (int fd, char *buf, int nBytes, int flags),
  98         ("fd = %d, buf = %p, nBytes = %d, flags = %d",
  99          fd, buf, nBytes, flags),
 100         (fd, buf, nBytes, flags));
 101 
 102 HPIDECL(send, "send", _socket, Send, int, "%d",
 103         (int fd, char *buf, int nBytes, int flags),
 104         ("fd = %d, buf = %p, nBytes = %d, flags = %d",
 105          fd, buf, nBytes, flags),
 106         (fd, buf, nBytes, flags));
 107 




 108 HPIDECL(timeout, "timeout", _socket, Timeout, int, "%d",
 109         (int fd, long timeout),
 110         ("fd = %d, timeout = %ld", fd, timeout),
 111         (fd, timeout));
 112 
 113 HPIDECL(get_host_by_name, "get_host_by_name", _socket, GetHostByName,
 114         struct hostent *, "(struct hostent *)%p",
 115         (char *name),
 116         ("%s", name),
 117         (name));
 118 
 119 HPIDECL(socket_shutdown, "socket_shutdown", _socket, SocketShutdown, 
 120         int, "%d",
 121         (int fd, int howto),
 122         ("fd = %d, howto = %d", fd, howto),
 123         (fd, howto));
 124 
 125 HPIDECL(bind, "bind", _socket, Bind, 
 126         int, "%d",
 127         (int fd, struct sockaddr *him, int len),


 150         (name, len, type));
 151 
 152 HPIDECL(get_sock_opt, "get_sock_opt", _socket, SocketGetOption, int, "%d",
 153         (int fd, int level, int optname, char *optval, int* optlen),
 154         ("fd = %d, level = %d, optname = %d, optval = %p, optlen = %p",
 155          fd, level, optname, optval, optlen),
 156         (fd, level, optname, optval, optlen));
 157 
 158 HPIDECL(set_sock_opt, "set_sock_opt", _socket, SocketSetOption, int, "%d",
 159         (int fd, int level, int optname, const char *optval, int optlen),
 160         ("fd = %d, level = %d, optname = %d, optval = %p, optlen = %d",
 161          fd, level, optname, optval, optlen),
 162         (fd, level, optname, optval, optlen));
 163 
 164 HPIDECL(get_proto_by_name, "get_proto_by_name", _socket, GetProtoByName, 
 165         struct protoent *, "(struct protoent *)%p",
 166         (char* name),
 167         ("name = %p",
 168          name),
 169         (name));
 170 



   1 /*
   2  * Copyright 1998-2005 Sun Microsystems, Inc.  All Rights Reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or


  85 
  86 HPIDECL(recvfrom, "recvfrom", _socket, RecvFrom, int, "%d",
  87         (int fd, char *buf, int nbytes, int flags,
  88          struct sockaddr *from, int *fromlen),
  89         ("fd = %d, buf = %p, len = %d, flags = %d, frm = %p, frmlen = %d",
  90          fd, buf, nbytes, flags, from, fromlen),
  91         (fd, buf, nbytes, flags, from, fromlen));
  92 
  93 HPIDECL(recv, "recv", _socket, Recv, int, "%d",
  94         (int fd, char *buf, int nBytes, int flags),
  95         ("fd = %d, buf = %p, nBytes = %d, flags = %d",
  96          fd, buf, nBytes, flags),
  97         (fd, buf, nBytes, flags));
  98 
  99 HPIDECL(send, "send", _socket, Send, int, "%d",
 100         (int fd, char *buf, int nBytes, int flags),
 101         ("fd = %d, buf = %p, nBytes = %d, flags = %d",
 102          fd, buf, nBytes, flags),
 103         (fd, buf, nBytes, flags));
 104 
 105 inline int hpi::raw_send(int fd, char *buf, int nBytes, int flags) {
 106   return send(fd, buf, nBytes, flags);
 107 }
 108 
 109 HPIDECL(timeout, "timeout", _socket, Timeout, int, "%d",
 110         (int fd, long timeout),
 111         ("fd = %d, timeout = %ld", fd, timeout),
 112         (fd, timeout));
 113 
 114 HPIDECL(get_host_by_name, "get_host_by_name", _socket, GetHostByName,
 115         struct hostent *, "(struct hostent *)%p",
 116         (char *name),
 117         ("%s", name),
 118         (name));
 119 
 120 HPIDECL(socket_shutdown, "socket_shutdown", _socket, SocketShutdown,
 121         int, "%d",
 122         (int fd, int howto),
 123         ("fd = %d, howto = %d", fd, howto),
 124         (fd, howto));
 125 
 126 HPIDECL(bind, "bind", _socket, Bind,
 127         int, "%d",
 128         (int fd, struct sockaddr *him, int len),


 151         (name, len, type));
 152 
 153 HPIDECL(get_sock_opt, "get_sock_opt", _socket, SocketGetOption, int, "%d",
 154         (int fd, int level, int optname, char *optval, int* optlen),
 155         ("fd = %d, level = %d, optname = %d, optval = %p, optlen = %p",
 156          fd, level, optname, optval, optlen),
 157         (fd, level, optname, optval, optlen));
 158 
 159 HPIDECL(set_sock_opt, "set_sock_opt", _socket, SocketSetOption, int, "%d",
 160         (int fd, int level, int optname, const char *optval, int optlen),
 161         ("fd = %d, level = %d, optname = %d, optval = %p, optlen = %d",
 162          fd, level, optname, optval, optlen),
 163         (fd, level, optname, optval, optlen));
 164 
 165 HPIDECL(get_proto_by_name, "get_proto_by_name", _socket, GetProtoByName,
 166         struct protoent *, "(struct protoent *)%p",
 167         (char* name),
 168         ("name = %p",
 169          name),
 170         (name));