aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/net.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-05-04 21:02:15 +0000
committerChristopher Faylor <me@cgf.cx>2001-05-04 21:02:15 +0000
commit63b61cd19ff1ae741a8c3403c1c3fa12bea1c893 (patch)
treec6ca5e70cf2fce1f7793c55d141a732fc0e2d15f /winsup/cygwin/net.cc
parent17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (diff)
downloadnewlib-63b61cd19ff1ae741a8c3403c1c3fa12bea1c893.zip
newlib-63b61cd19ff1ae741a8c3403c1c3fa12bea1c893.tar.gz
newlib-63b61cd19ff1ae741a8c3403c1c3fa12bea1c893.tar.bz2
Revert much of previous erroneous checkin. Add ChangeLog entry.
* pinfo.h: Correctly set __SIGOFFSET. * path.cc (hash_path_name): Avoid calling library functions for simple copying of characters. * shortcut.c: Use WIN32_LEAN_AND_MEAN. * smallprint.c: Ditto. * environ.cc (getwinenv): Minor clarity fix. * localtime.c: No need to include windows.h * string.h: New file.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 235ea7e..5684887 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -1931,9 +1931,9 @@ wsock_init ()
static LONG NO_COPY here = -1L;
static int NO_COPY wsock_started = 0;
- while (ilockincr (&here))
+ while (InterlockedIncrement (&here))
{
- ilockdecr (&here);
+ InterlockedDecrement (&here);
Sleep (0);
}
if (!wsock_started && (wsock32_handle || ws2_32_handle))
@@ -1960,6 +1960,6 @@ wsock_init ()
wsock_started = 1;
}
}
- ilockdecr (&here);
+ InterlockedDecrement (&here);
}