aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/net.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-08 03:12:13 +0000
committerChristopher Faylor <me@cgf.cx>2000-09-08 03:12:13 +0000
commit3b0d65eab953cb982db4015125d45e6b2ae32857 (patch)
tree0ff3cdf06c2e132690a7d7946617017342347a60 /winsup/cygwin/net.cc
parentf0338f545d769143f542338b4d61f771b5a87f93 (diff)
downloadnewlib-3b0d65eab953cb982db4015125d45e6b2ae32857.zip
newlib-3b0d65eab953cb982db4015125d45e6b2ae32857.tar.gz
newlib-3b0d65eab953cb982db4015125d45e6b2ae32857.tar.bz2
* sigproc.h (sigframe::set): Eliminate second argument. Default bp to current
frame pointer rather than using this within the function, which is unstable when this method is not inlined. * net.cc: Eliminate use of second argument to sigframe.set throughout. * select.cc (cygwin_select): Ditto. * sigproc.cc (sig_send): Ditto.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index f140bdc..932428b 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -428,7 +428,7 @@ cygwin_sendto (int fd,
{
fhandler_socket *h = (fhandler_socket *) fdtab[fd];
sockaddr_in sin;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
if (get_inet_addr (to, tolen, &sin, &tolen) == 0)
return -1;
@@ -454,7 +454,7 @@ cygwin_recvfrom (int fd,
int *fromlen)
{
fhandler_socket *h = (fhandler_socket *) fdtab[fd];
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
debug_printf ("recvfrom %d", h->get_socket ());
@@ -611,7 +611,7 @@ cygwin_connect (int fd,
int res;
fhandler_socket *sock = get (fd);
sockaddr_in sin;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
if (get_inet_addr (name, namelen, &sin, &namelen) == 0)
return -1;
@@ -724,7 +724,7 @@ int
cygwin_accept (int fd, struct sockaddr *peer, int *len)
{
int res = -1;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
fhandler_socket *sock = get (fd);
if (sock)
@@ -910,7 +910,7 @@ int
cygwin_shutdown (int fd, int how)
{
int res = -1;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
fhandler_socket *sock = get (fd);
if (sock)
@@ -953,7 +953,7 @@ int
cygwin_recv (int fd, void *buf, int len, unsigned int flags)
{
fhandler_socket *h = (fhandler_socket *) fdtab[fd];
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
int res = recv (h->get_socket (), (char *) buf, len, flags);
if (res == SOCKET_ERROR)
@@ -979,7 +979,7 @@ int
cygwin_send (int fd, const void *buf, int len, unsigned int flags)
{
fhandler_socket *h = (fhandler_socket *) fdtab[fd];
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
int res = send (h->get_socket (), (const char *) buf, len, flags);
if (res == SOCKET_ERROR)
@@ -1366,7 +1366,7 @@ cygwin_rcmd (char **ahost, unsigned short inport, char *locuser,
{
int res = -1;
SOCKET fd2s;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
int res_fd = fdtab.find_unused_handle ();
if (res_fd == -1)
@@ -1406,7 +1406,7 @@ int
cygwin_rresvport (int *port)
{
int res = -1;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
int res_fd = fdtab.find_unused_handle ();
if (res_fd == -1)
@@ -1435,7 +1435,7 @@ cygwin_rexec (char **ahost, unsigned short inport, char *locuser,
{
int res = -1;
SOCKET fd2s;
- sigframe thisframe (mainthread, 0);
+ sigframe thisframe (mainthread);
int res_fd = fdtab.find_unused_handle ();
if (res_fd == -1)