diff options
author | Thomas Pfaff <tpfaff@gmx.net> | 2003-04-17 20:05:15 +0000 |
---|---|---|
committer | Thomas Pfaff <tpfaff@gmx.net> | 2003-04-17 20:05:15 +0000 |
commit | f3c1c540516337d9742e06db9ea831018a4a0576 (patch) | |
tree | 96584ddbf91f00283cf98333d48c839a712ffa74 /winsup/cygwin/grp.cc | |
parent | a4cea44072f03808fae271d1a4075225ae166d86 (diff) | |
download | cygnal-f3c1c540516337d9742e06db9ea831018a4a0576.tar.gz cygnal-f3c1c540516337d9742e06db9ea831018a4a0576.tar.bz2 cygnal-f3c1c540516337d9742e06db9ea831018a4a0576.zip |
* 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.cc | 16 |
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) { |