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:
authorThomas Pfaff <tpfaff@gmx.net>2003-04-18 00:05:15 +0400
committerThomas Pfaff <tpfaff@gmx.net>2003-04-18 00:05:15 +0400
commitf3c1c540516337d9742e06db9ea831018a4a0576 (patch)
tree96584ddbf91f00283cf98333d48c839a712ffa74 /winsup/cygwin/grp.cc
parenta4cea44072f03808fae271d1a4075225ae166d86 (diff)
* Makefile.in: Add finline-functions optimization to CXXFLAGS.
* autoload.cc (LoadDLLprime): Rename std_dll_init to _std_dll_init. (std_dll_init): Remove name mangling prototype. Add attributes used and noinline. (wsock_init): Ditto. Change wsock_init to _wsock_init in wsock32 and ws2_32 LoadDLLprime. * exceptions.cc (unused_sig_wrapper): Remove prototype. Add attributes used and noinline. * pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code. (pwdgrp (__group32 *&)): Ditto. * grp.cc (pwdgrp (passwd *&)): Outline constructor. (pwdgrp (__group32 *&)): Ditto.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index a0d73ae26..73a2b89a5 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -108,6 +108,22 @@ pwdgrp::read_group ()
return;
}
+pwdgrp::pwdgrp (passwd *&pbuf) :
+ pwdgrp_buf_elem_size (sizeof (*pbuf)), passwd_buf (&pbuf)
+{
+ read = &pwdgrp::read_passwd;
+ parse = &pwdgrp::parse_passwd;
+ new_muto (pglock);
+}
+
+pwdgrp::pwdgrp (__group32 *&gbuf) :
+ pwdgrp_buf_elem_size (sizeof (*gbuf)), group_buf (&gbuf)
+{
+ read = &pwdgrp::read_group;
+ parse = &pwdgrp::parse_group;
+ new_muto (pglock);
+}
+
struct __group32 *
internal_getgrsid (cygpsid &sid)
{