mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7091417: recvfrom's 6th input should be of type socklen_t
Revamp class os's socket method formal args to match socket.h, insert casts in appropriate places, and copyin-copyout int*'s that s/b socklen_t*'s in jvm.cpp. Co-authored-by: Rickard Backman <rickard.backman@oracle.com> Co-authored-by: Nils Loodin <nils.loodin@oracle.com> Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com> Reviewed-by: coleenp, dholmes
This commit is contained in:
parent
577403d2ca
commit
5657eb0c6c
12 changed files with 159 additions and 164 deletions
|
@ -584,28 +584,28 @@ class os: AllStatic {
|
|||
static int socket(int domain, int type, int protocol);
|
||||
static int socket_close(int fd);
|
||||
static int socket_shutdown(int fd, int howto);
|
||||
static int recv(int fd, char *buf, int nBytes, int flags);
|
||||
static int send(int fd, char *buf, int nBytes, int flags);
|
||||
static int raw_send(int fd, char *buf, int nBytes, int flags);
|
||||
static int recv(int fd, char* buf, size_t nBytes, uint flags);
|
||||
static int send(int fd, char* buf, size_t nBytes, uint flags);
|
||||
static int raw_send(int fd, char* buf, size_t nBytes, uint flags);
|
||||
static int timeout(int fd, long timeout);
|
||||
static int listen(int fd, int count);
|
||||
static int connect(int fd, struct sockaddr *him, int len);
|
||||
static int bind(int fd, struct sockaddr *him, int len);
|
||||
static int accept(int fd, struct sockaddr *him, int *len);
|
||||
static int recvfrom(int fd, char *buf, int nbytes, int flags,
|
||||
struct sockaddr *from, int *fromlen);
|
||||
static int get_sock_name(int fd, struct sockaddr *him, int *len);
|
||||
static int sendto(int fd, char *buf, int len, int flags,
|
||||
struct sockaddr *to, int tolen);
|
||||
static int socket_available(int fd, jint *pbytes);
|
||||
static int connect(int fd, struct sockaddr* him, socklen_t len);
|
||||
static int bind(int fd, struct sockaddr* him, socklen_t len);
|
||||
static int accept(int fd, struct sockaddr* him, socklen_t* len);
|
||||
static int recvfrom(int fd, char* buf, size_t nbytes, uint flags,
|
||||
struct sockaddr* from, socklen_t* fromlen);
|
||||
static int get_sock_name(int fd, struct sockaddr* him, socklen_t* len);
|
||||
static int sendto(int fd, char* buf, size_t len, uint flags,
|
||||
struct sockaddr* to, socklen_t tolen);
|
||||
static int socket_available(int fd, jint* pbytes);
|
||||
|
||||
static int get_sock_opt(int fd, int level, int optname,
|
||||
char *optval, int* optlen);
|
||||
char* optval, socklen_t* optlen);
|
||||
static int set_sock_opt(int fd, int level, int optname,
|
||||
const char *optval, int optlen);
|
||||
const char* optval, socklen_t optlen);
|
||||
static int get_host_name(char* name, int namelen);
|
||||
|
||||
static struct hostent* get_host_by_name(char* name);
|
||||
static struct hostent* get_host_by_name(char* name);
|
||||
|
||||
// Printing 64 bit integers
|
||||
static const char* jlong_format_specifier();
|
||||
|
@ -715,7 +715,6 @@ class os: AllStatic {
|
|||
# include "os_bsd_zero.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
// debugging support (mostly used by debug.cpp but also fatal error handler)
|
||||
static bool find(address pc, outputStream* st = tty); // OS specific function to make sense out of an address
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue