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>2005-03-16 20:07:32 +0300
committerChristopher Faylor <me@cgf.cx>2005-03-16 20:07:32 +0300
commitfe8364707306c00fca9be80fb480908fc3f37e88 (patch)
tree47e0b6f41b807b308856ce6b2948c6548b097b21 /winsup/cygwin/cygtls.h
parenta53953b07060920e5e1b1ea077aae7eb703694ba (diff)
* cygtls.cc (free_local): New macro.
(_cygtls::remove): Use free_local to free known-malloced local variables. * cygtls.h: Mark some variables as "malloced". * net.cc (enum struct_type): Rename from is_* to t_* for clarity. (dump_protoent): Delete. (dup_ent): New macro. (__dup_ent): Renamed from dup_ent. Change arguments for convenience. Replace first argument with newly alloced value. Allocate a rounded number of bytes in an attempt to try to reuse space. Subsume "dump_protent". (cygwin_getprotobyname): Simplify using new dup_ent functionality. (cygwin_getprotobynumber): Ditto. (cygwin_getservbyname): Ditto. (cygwin_getservbyport): Ditto. (cygwin_gethostname): Ditto. (cygwin_gethostbyname): Ditto. * tlsoffsets.h: Regenerate. * syslog.cc (openlog): Use NULL rather than 0, for consistency with the rest of cygwin. (pass_handler::initialize): Use unbuffered I/O in pass one.
Diffstat (limited to 'winsup/cygwin/cygtls.h')
-rw-r--r--winsup/cygwin/cygtls.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/cygtls.h b/winsup/cygwin/cygtls.h
index deff10887..38fe531e3 100644
--- a/winsup/cygwin/cygtls.h
+++ b/winsup/cygwin/cygtls.h
@@ -73,7 +73,7 @@ struct _local_storage
char strerror_buf[20];
/* sysloc.cc */
- char *process_ident;
+ char *process_ident; // note: malloced
int process_logopt;
int process_facility;
int process_logmask;
@@ -86,10 +86,10 @@ struct _local_storage
char username[UNLEN + 1];
/* net.cc */
- char *ntoa_buf;
- struct protoent *protoent_buf;
- struct servent *servent_buf;
- struct hostent *hostent_buf;
+ char *ntoa_buf; // note: malloced
+ struct protoent *protoent_buf; // note: malloced
+ struct servent *servent_buf; // note: malloced
+ struct hostent *hostent_buf; // note: malloced
char signamebuf[sizeof ("Unknown signal 4294967295 ")];
};