Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-08 01:32:07 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-08 01:32:07 +0400
commit1ff9f4b9373620aa923412d7aa90b8d04d940199 (patch)
tree878c4a44487d2fe17137a6d6088a327ada14247b /winsup/cygwin/net.cc
parentb2d319cb3eaf0c1a139ee1586fa43d5250d5a058 (diff)
* cygheap.h (init_cygheap): Move heap pointers here.
* include/sys/cygwin.h (perprocess): Remove heap pointers. * dcrt0.cc (__cygwin_user_data): Reflect obsolete perprocess stuff. (_dll_crt0): Don't initialize heap pointers. (cygwin_dll_init): Ditto. (release_upto): Use heap pointers from cygheap. * heap.h: Ditto. * fork.cc (fork_parent): Ditto. Don't set heap pointers in ch. (fork_child): Remove obsolete sigproc_fixup_after_fork. * shared.cc (memory_init): Reorganize so that cygheap initialization is called prior to regular heap since regular heap uses cygheap now. * sigproc.cc (proc_subproc): Eliminate zombies allocation. (sigproc_init): Move zombies alloation here. Don't free up array on fork, just reuse it. (sigproc_fixup_after_fork): Eliminate. * sigproc.h: Ditto. * include/cygwin/version.h: Reflect change to perprocess structure.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 18ff29be5..9bb84b419 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -388,7 +388,7 @@ free_char_list (char **clist)
if (clist)
{
for (char **cl = clist; *cl; ++cl)
- free (*cl);
+ free (*cl);
free (clist);
}
}
@@ -416,7 +416,7 @@ dup_addr_list (char **src, unsigned int size)
{
char **dst;
int cnt = 0;
-
+
for (char **cl = src; *cl; ++cl)
++cnt;
if (!(dst = (char **) calloc (cnt + 1, sizeof *dst)))
@@ -424,7 +424,7 @@ dup_addr_list (char **src, unsigned int size)
while (cnt-- > 0)
{
if (!(dst[cnt] = (char *) malloc(size)))
- return NULL;
+ return NULL;
memcpy(dst[cnt], src[cnt], size);
}
return dst;
@@ -438,7 +438,7 @@ free_protoent_ptr (struct protoent *&p)
debug_printf ("protoent: %s", p->p_name);
if (p->p_name)
- free (p->p_name);
+ free (p->p_name);
free_char_list (p->p_aliases);
p = NULL;
}
@@ -878,7 +878,7 @@ cygwin_connect (int fd,
in_progress = TRUE;
}
else if (err == WSAEINVAL)
- WSASetLastError (WSAEISCONN);
+ WSASetLastError (WSAEISCONN);
}
set_winsock_errno ();
}
@@ -924,9 +924,9 @@ free_servent_ptr (struct servent *&p)
debug_printf ("servent: %s", p->s_name);
if (p->s_name)
- free (p->s_name);
+ free (p->s_name);
if (p->s_proto)
- free (p->s_proto);
+ free (p->s_proto);
free_char_list (p->s_aliases);
p = NULL;
}
@@ -1022,7 +1022,7 @@ free_hostent_ptr (struct hostent *&p)
debug_printf ("hostent: %s", p->h_name);
if (p->h_name)
- free ((void *)p->h_name);
+ free ((void *)p->h_name);
free_char_list (p->h_aliases);
free_addr_list (p->h_addr_list);
p = NULL;
@@ -1858,18 +1858,18 @@ get_nt_ifconf (struct ifconf *ifc, int what)
/*
* IFCONF Windows 95:
* HKLM/Enum/Network/MSTCP/"*"
- * -> Value "Driver" enthält Subkey relativ zu
- * HKLM/System/CurrentControlSet/Class/
- * -> In Subkey "Bindings" die Values aufzählen
- * -> Enthält Subkeys der Form "VREDIR\*"
- * Das * ist ein Subkey relativ zu
- * HKLM/System/CurrentControlSet/Class/Net/
+ * -> Value "Driver" enthält Subkey relativ zu
+ * HKLM/System/CurrentControlSet/Class/
+ * -> In Subkey "Bindings" die Values aufzählen
+ * -> Enthält Subkeys der Form "VREDIR\*"
+ * Das * ist ein Subkey relativ zu
+ * HKLM/System/CurrentControlSet/Class/Net/
* HKLM/System/CurrentControlSet/Class/"Driver"
- * -> Value "IPAddress"
- * -> Value "IPMask"
+ * -> Value "IPAddress"
+ * -> Value "IPMask"
* HKLM/System/CurrentControlSet/Class/Net/"*"(aus "VREDIR\*")
- * -> Wenn Value "AdapterName" == "MS$PPP" -> ppp interface
- * -> Value "DriverDesc" enthält den Namen
+ * -> Wenn Value "AdapterName" == "MS$PPP" -> ppp interface
+ * -> Value "DriverDesc" enthält den Namen
*
*/
static void