newlib/winsup
Christopher Faylor 7905c4f158 * pwdgrp.h (etc): Move to path.h.
(pwdgrp::max_lines): New field.
(pwdgrp::curr_lines): New field.
(pwdgrp::pwdgrp_buf): Ditto.
(pwdgrp_buf_elem_size): Ditto.
(pwdgrp_parse): Ditto.
(pwdgrp::gets): Just declare here.
(pwdgrp::load): Ditto.  Just take one argument.
(pwdgrp::load): Define overloaded function accepting passwd buf.
(pwdgrp::load): Define overloaded function accepting group buf.
* grp.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_grp): Define as returning boolean.  Accept void * arg and line count.
Coerce first argument into __group32 buf reference.  Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to gr.load.
* passwd.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_passwd): Define as returning boolean.  Accept void * arg and line count.
Coerce first argument into passwd buf reference.  Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to pr.load.
* path.cc (etc::fn): Extend buffer size to allow index by 1 rather than zero.
(etc::last_modified): Ditto.
(etc::change_possible): Ditto.  Renamed from sawchange.  Change to signed char
since elements are now tri-state.
(etc::init): Assume "handle" is 1 based rather than 0.
(etc::test_file_change): New function.  Sets change_possible based on file date
comparison.
(etc::dir_changed): Check file states immediately after changed_h is
initialized to avoid a race.
(etc::file_changed): Use test_file_change to detect if file needs to be
updated.
* path.h (etc): Move class here from pwdgrp.h.
* uinfo.cc: Move etc:: functions to path.cc.  Move pwdgrp functions here.
(pwdgrp::gets): Eliminate buf checks.  Just check eptr and set lptr.
(pwdgrp::add_line): New function.
(pwdgrp::load): Call generic add_line function which will call correct parser.
2003-01-20 02:57:54 +00:00
..
bz2lib * Makefile.in: Use MINGW stuff from Makefile.common. 2002-07-07 00:44:08 +00:00
cygserver * cygserver_transport_pipes.cc (transport_layer_pipes::accept): 2002-09-30 18:31:56 +00:00
cygwin * pwdgrp.h (etc): Move to path.h. 2003-01-20 02:57:54 +00:00
doc update link for commercial inquiries 2003-01-13 22:17:01 +00:00
mingw * mingwex/math/llround.c: Correct function name and 2003-01-11 10:52:20 +00:00
subauth * Makefile.in: Comment out install for now. 2001-10-12 20:02:41 +00:00
testsuite Add winsup.api/pthread/cancel10.c 2003-01-14 20:22:20 +00:00
utils * mkgroup.c: Fix copyright date. 2003-01-15 10:08:37 +00:00
w32api * include/winnt.h (IMAGE_FILE_AGGRESIVE_WS_TRIM 2003-01-11 06:06:46 +00:00
CYGWIN_LICENSE Change location. 2003-01-13 21:11:19 +00:00
ChangeLog * Makefile.common: Don't attempt to pretty-print c++ errors. 2002-12-21 05:06:24 +00:00
MAINTAINERS Nuke 2001-12-31 23:24:10 +00:00
Makefile.common * Makefile.common: Don't attempt to pretty-print c++ errors. 2002-12-21 05:06:24 +00:00
Makefile.in * Makefile.in (check): Be more defensive when creating testsuite config.status. 2002-09-28 03:15:44 +00:00
configure * Makefile.common: Define MINGW_LDFLAGS. 2002-12-12 10:34:12 +00:00
configure.in * Makefile.common: Define MINGW_LDFLAGS. 2002-12-12 10:34:12 +00:00