Corinna Vinschen
38170b13ea
* sec_acl.cc (getacl): Check ace_sid == well_known_world_sid
...
before owner_sid and group_sid so that well_known_world_sid
means "other" even when owner_sid and/or group_sid are Everyone.
* security.cc (get_attribute_from_acl): Created from code common
to get_nt_attribute() and get_nt_object_attribute(), with same
reordering as in getacl() above.
(get_nt_attribute): Call get_attribute_from_acl().
(get_nt_object_attribute): Ditto.
2002-08-26 09:56:06 +00:00
Christopher Faylor
7200557403
* Makefile.in (cygcheck.exe): Make a -mno-cygwin program.
...
* cygrun.c (main): Export CYGWIN=ntsec unless otherwise set.
* shared.cc (shared_name): Only add build date to shared name when
*testing*.
2002-08-26 04:30:11 +00:00
Christopher Faylor
9d89f63486
* Makefile.in (RUNTEST): Use Makefile's srcdir and bupdir* macros, where
...
appropriate.
* winsup.api/winsup.exp: Use -nodefaultlibs when linking executable to avoid
potentially linking installed dll.
2002-08-26 02:53:24 +00:00
Christopher Faylor
f77cd63642
* Makefile.in (DLL_IMPORTS): Move libuuid.a and libshell32.a to list rather
...
than referring to them via -l. Add DLL imports last in link line for
new-cygwin.dll and cygrun.exe.
2002-08-25 00:07:10 +00:00
Christopher Faylor
02eb4ad4d4
output some newlines.
2002-08-23 15:46:00 +00:00
Christopher Faylor
1c5dcf3b0a
* dll.sgml: Remove indirect reference to older gccs.
2002-08-21 16:02:17 +00:00
Christopher Faylor
d3106bef0a
* dll.sgml: Refine dll build instructions.
...
* ntsec.html: Correct some typos.
2002-08-21 15:45:04 +00:00
Christopher Faylor
62012a3f31
fix some glitches
2002-08-21 15:42:18 +00:00
Earnie Boyd
69f710846f
* include/sys/param.h: New File.
2002-08-21 12:49:56 +00:00
Earnie Boyd
811b5b0ae4
* include/_mingw.h: Increment version to 2.2.
...
Makefile.in: Ditto.
2002-08-21 12:18:28 +00:00
Earnie Boyd
39d3651cad
* include/commctrl.h (NMCUSTOMDRAW): Fix lItemlParam.
...
Thanks to: "Phil Dempster" <p_dempster@yahoo.co.uk>.
2002-08-21 12:07:51 +00:00
Danny Smith
cfb5d4db12
* include/math.h (asm): Change to __asm__ throughout.
...
Expose ISO C99 functions if __GLIBCPP__.
(hypotf): Use hypot, not _hypot in stub..
2002-08-20 23:26:11 +00:00
Danny Smith
aabc7d585a
* include/tchar.h: Ansi-fy another comment.
2002-08-20 23:08:14 +00:00
Danny Smith
b9b4e3ca9d
* include/tchar.h: Ansi-fy comment.
2002-08-20 23:01:42 +00:00
Danny Smith
02d46a6f8a
* test_headers.c : New file.
...
* Makefile.in (test_headers): New target, using it,
(SRCDIST_FILES): Distribute it.
2002-08-20 22:56:59 +00:00
Danny Smith
9a5498d08b
* include/ws2spi.h: Modify comment about being part of
...
mingw32 package.
(winsock2.h): Change "" to <>.
2002-08-20 00:59:23 +00:00
Danny Smith
73078ed64d
2002-08-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/ws2spi.h: New file.
* lib/test.c: Include ws2spi.h.
2002-08-20 00:48:23 +00:00
Danny Smith
c79f8453b0
* include/winsock2.h (WSAIsBlocking,WSAUnhookBlockingHook,
...
WSASetBlockingHook,WSACancelBlockingCall): Expose deprecated
functions.
2002-08-20 00:36:09 +00:00
Christopher Faylor
3bacc423cf
* pinfo.h (pinfo::remember): Arrange for destructor call if proc_subproc
...
returns error.
* sigproc.cc (zombies): Store 1 + total zombies since proc_subproc uses
NZOMBIES element.
2002-08-19 14:59:27 +00:00
Corinna Vinschen
34f7289475
* pwdgrp.h (pwdgrp_read::pwdgrp_read): Remove.
...
(pwdgrp_read::~pwdgrp_read): Ditto.
(pwdgrp_read::open): Reset fh to NULL instead of INVALID_HANDLE_VALUE.
(pwdgrp_read::close): Ditto.
2002-08-19 11:27:18 +00:00
Christopher Faylor
c060edba34
* fhandler.h (fhandler_console::send_winch_maybe): New method.
...
* fhandler_console.cc (set_console_state_for_spawn): Remove if 0'ed code.
(fhandler_console::send_winch_maybe): Define new method.
(fhandler_console::read): Use send_winch_maybe where appropriate.
(fhandler_console::init): Just call all tcsetattr rather than output_tcsetattr.
* select.cc (peek_console): Reorganize so that send_winch_maybe is called for
everything but keyboard input.
2002-08-19 04:43:58 +00:00
Christopher Faylor
8dca9e2302
* perthread.h (vfork_save): Add ctty, sid, pgid, exitval fields.
...
(vfork_save::restore_pid): New method.
(vfork_save::restore_exit): New method.
* fork.cc (vfork): Save ctty, sid, pgid and restore them when returning to
"parent". Use exitval field if exiting but never created a new process.
* syscalls.cc (setsid): Detect when in "vfork" and force an actual fork so that
pid will be allocated (UGLY!).
(getsid): New function.
* dcrt0.cc (do_exit): Use vfork_save::restore_exit method for returning from a
vfork.
* spawn.cc (spawnve): Use vfork_save::{restore_pid,restore_exit} methods for
returning from vfork.
* cygwin.din: Export getsid.
* include/cygwin/version.h: Bump api minor number.
* malloc.cc: #ifdef sYSTRIm for when MORECORE_CANNOT_TRIM is true.
2002-08-18 05:49:26 +00:00
Christopher Faylor
d17ba05c1c
* cygmalloc.h (MORECORE_CANNOT_TRIM): Define.
2002-08-18 04:14:59 +00:00
Christopher Faylor
0428827b0e
* sigproc.cc (sigCONT): Define.
...
* sigproc.h (sigCONT): Declare.
(wait_sig): Create sigCONT event here.
* exceptions.cc (sig_handle_tty_stop): Wait for sigCONT event rather than
stopping thread.
(sig_handle): Set sigCONT event as appropriate on SIGCONT rather than calling
ResumeThread.
2002-08-18 04:13:57 +00:00
Christopher Faylor
a80add95d9
* malloc.cc: Update to 2.7.2.
...
* malloc_wrapper.cc (malloc_init): Call user level mallocs to determine if the
malloc has been wrapped.
2002-08-18 03:28:52 +00:00
Christopher Faylor
aaac1d9e19
* Makefile.in: Change COMPILE_C* definitions.
2002-08-17 17:12:24 +00:00
Danny Smith
894d685ff7
* include/winuser.h (CURSOR_SHOWING) Add define.
2002-08-17 09:41:52 +00:00
Danny Smith
9e0f101fa9
* include/winerror.h: Cast OLE error codes to HRESULT.
2002-08-17 04:42:25 +00:00
Christopher Faylor
0763513767
fix typo
2002-08-17 02:16:25 +00:00
Christopher Faylor
b3c12fb401
* Makefile.in: Change COMPILE_C* definitions.
2002-08-17 02:15:05 +00:00
Christopher Faylor
e0f61e607c
Missed this commit in last checkin.
2002-08-16 19:50:22 +00:00
Christopher Faylor
98c9c4569b
* winsup.h: Remove malloc_*lock functions.
2002-08-16 19:49:54 +00:00
Christopher Faylor
c7e2187a60
* Makefile.in: Add support for new malloc.o and renamed malloc_wrapper.o. Use
...
-fomit-frame-pointer for malloc.o compilation.
* malloc_wrapper.cc: New file. Rename from malloc.cc. Add support for more
malloc functions. Eliminate export_* calls. Just use straight malloc names.
Remove unused argument from malloc lock functions.
* cygwin.din: Just export straight malloc names. Add malloc_stats,
malloc_trim, malloc_usable_size, mallopt, memalign, valloc.
* dcrt0.cc (__cygwin_user): Eliminate export_* malloc entries.
* fork.cc (fork_parent): Remove unused argument from malloc_lock argument.
* malloc.cc: New file. Doug Lea's malloc v2.7.1.
* cygmalloc.h: New file.
* include/cygwin/version.h: Bump API_MINOR.
* sync.h (muto::acquire): Use appropriate number for regparm attribute.
(muto::reset): Ditto.
(muto::release): Ditto.
2002-08-16 19:41:39 +00:00
Christopher Faylor
775275aac7
* exceptions.cc (interrupt_setup): Ensure that the previous signal mask is
...
properly saved.
2002-08-16 19:07:28 +00:00
Christopher Faylor
a54ad580fc
* dcrt0.cc: Modify define for CYGWIN_GUARD.
...
(alloc_stack_hard_way): Just use CYGWIN_GUARD in VirtualAlloc call.
2002-08-15 20:34:49 +00:00
Christopher Faylor
bb55ce4cc1
present tense
2002-08-15 20:24:16 +00:00
Christopher Faylor
052e90e9a9
make comment more accurate.
2002-08-15 15:46:27 +00:00
Danny Smith
e893abd3c6
* include/wincrypt.h (ALG_*): Add defines.
...
(CALG_*): Ditto.
(CRYPT_*): Ditto.
(PP_*): Ditto.
(PROV_*): Ditto.
(PRIVATEKEYBLOB): Add define.
2002-08-14 23:47:46 +00:00
Earnie Boyd
2c3ef6355b
* include/unistd.h: Add include of process.h.
2002-08-14 21:08:43 +00:00
Earnie Boyd
99a3b239eb
* include/shlobj.h (SHGetFolderPath): Add define.
...
* lib/shell32.def (SHGetSpecialFolderPath): Add export.
(SHGetFolderPath): Ditto.
2002-08-14 16:43:40 +00:00
Christopher Faylor
403985a498
* regtool.cc (find_key): Add support for custom key separator.
...
(usage): Document it.
2002-08-13 15:37:32 +00:00
Danny Smith
3317419d1a
* include/commdlg.h: Don't include COM headers if __OBJC__.
2002-08-12 23:33:10 +00:00
Danny Smith
03a0a275b5
* include/wincrypt.h (CryptDuplicateHash, CryptDuplicateKey):
...
Add prototypes.
2002-08-12 23:10:16 +00:00
Danny Smith
d6f9ca7959
2002-08-12 Andriy Palamarchuk <apa3a@yahoo.com>
...
* include/shellapi.h (FOF_NOERRORUI): Add define.
2002-08-12 22:24:28 +00:00
Conrad Scott
e120995086
* fhandler.h (fhandler_socket::recv): Remove method.
...
(fhandler_socket::send): Ditto.
* fhandler_socket.cc (fhandler_socket::recv): Ditto.
(fhandler_socket::send): Ditto.
(fhandler_socket::read): Delegate to fhandler_socket::recvfrom.
(fhandler_socket::write): Delegate to fhandler_socket::sendto.
(fhandler_socket::sendto): Check for null `to' address.
* net.cc (cygwin_sendto): Check for zero request length.
(cygwin_recvfrom): Ditto. Fix signature, use void *buf.
(cygwin_recv): Delegate to cygwin_recvfrom.
(cygwin_send): Delegate to cygwin_sendto.
2002-08-12 13:54:12 +00:00
Danny Smith
a814828d06
* include/objidl.h (IEnumMoniker): Put 'interface' back.
2002-08-11 21:16:30 +00:00
Christopher Faylor
5ffec1d16d
* cygthread.cc (cygthread::cygthread): Close another race.
2002-08-11 19:31:24 +00:00
Christopher Faylor
3cb62bd614
* assert.cc (__assert): Call debugger on assertion failure if debugging.
...
* dcrt0.cc (dll_crt0_1): Just wait for signal thread to go live rather than
going through the overhead of invoking it.
* fork.cc (fork_child): Ditto.
* exceptions.cc (signal_fixup_after_fork): Call sigproc_init here.
* sigproc.cc (proc_can_be_signalled): Assume that the signal thread is live.
(sig_dispatch): Ditto.
(sig_send): Ditto.
(wait_for_sigthread): Renamed from "wait_for_me". Assume that wait_sig_inited
has been set and that this function is only called from the main thread.
* winsup.h (wait_for_sigthread): Declare new function.
2002-08-11 19:19:29 +00:00
Danny Smith
2324fd5b91
* include/objidl.h (IEnumMoniker): Correct declaration.
2002-08-11 07:36:43 +00:00
Earnie Boyd
432fa81e8e
* w32sdk: New winsup module.
2002-08-10 15:07:51 +00:00
Danny Smith
c9fadf3b49
* include/commctrl.h: Whitespace change.
2002-08-09 02:49:38 +00:00
Danny Smith
154215ec38
2002-08-09 Mark Schreiber <mark7@users.sourceforge.net>
...
* include/wincrypt.h (CRYPT_NOHASHOID): Add define.
2002-08-09 Danny Smith <dannysmith@users.sourceforge.net>
* include/commctrl.h: Whitespace change.
2002-08-09 02:45:50 +00:00
Danny Smith
ddf344afb3
2002-08-09 Lars Munch <lars@segv.dk>
...
* include/commctrl.h (tagTVHITTESTINFO): Replace obsolete
struct name _TVHITTESTINFO and typedefs. Add defines for
backward compatability.
(ListView_SetExtendedListViewStyleEx): Add macro.
2002-08-09 02:29:57 +00:00
Christopher Faylor
25859d7ca1
* environ.cc (parse_options): Remember the "no" part of any options for later
...
export.
2002-08-08 18:02:09 +00:00
Conrad Scott
b4f06520f4
* winsup.h (__check_null_invalid_struct): Make ptr argument non-const.
...
(__check_null_invalid_struct_errno): Ditto.
* miscfuncs.cc (__check_null_invalid_struct): Ditto.
(__check_null_invalid_struct_errno): Ditto.
(__check_invalid_read_ptr_errno): Remove superfluous cast.
* net.cc (get): Set appropriate errno if fd is not a socket.
(cygwin_sendto): Fix parameter checking.
(cygwin_recvfrom): Ditto.
(cygwin_setsockopt): Ditto.
(cygwin_getsockopt): Ditto.
(cygwin_connect): Ditto.
(cygwin_gethostbyaddr): Ditto.
(cygwin_accept): Ditto.
(cygwin_bind): Ditto.
(cygwin_getsockname): Ditto.
(cygwin_listen): Ditto.
(cygwin_getpeername): Ditto.
(cygwin_send): Ditto.
(cygwin_shutdown): Ditto. Move sigframe to fhandler_socket.
(cygwin_recvmsg): Fix parameter checking. Add tracing.
(cygwin_sendmsg): Ditto.
* fhandler_socket.cc (fhandler_socket::shutdown): Add sigframe.
* resource.cc (setrlimit): Fix parameter checking.
2002-08-08 17:03:20 +00:00
Corinna Vinschen
b7e664540b
Patch by Joe Buehler <jbuehler@hekimian.com>:
...
* sec_helper.cc (sec_acl): remove extraneous arg to debug_printf.
2002-08-08 14:16:14 +00:00
Corinna Vinschen
235d9fdadc
Fix by Conrad Scott <conrad.scott@dsl.pipex.com>:
...
* fhandler_socket.cc (fhandler_socket::accept): Fix FIONBIO call.
2002-08-07 10:08:17 +00:00
Christopher Faylor
88de60e449
one more change
2002-08-07 01:22:56 +00:00
Christopher Faylor
772f6c3e12
* cygheap.cc (_csbrk): Avoid !cygheap considerations.
...
(cygheap_init): Deal with unintialized cygheap issues here.
2002-08-07 01:20:59 +00:00
Christopher Faylor
e851d2fe43
Conrad Scott <conrad.scott@dsl.pipex.com
...
* cygheap.cc (_csbrk): Allocate some slop initially. Don't erroneously add
sbrk amount to returned value in initial case.
2002-08-06 22:05:53 +00:00
Christopher Faylor
115a0885bc
* spawn.cc (spawn_guts): Don't set mount_h here.
...
* sigproc.cc (init_child_info): Set it here instead.
* shared.cc (cygwin_mount_h): Make NO_COPY.
2002-08-06 05:48:33 +00:00
Christopher Faylor
1524ae42cf
* cygthread.cc (cygthread::stub): Accept flag to pass info structure to thread
...
function.
(cygthread::operator new): Add defense debugging output.
(cygthread::cygthread): Add debugging output. Set name after thread has been
awakened to avoid a race.
(cygthread::exit_thread): Use handle operator rather than using ev directly.
(cygthread::exit_thread): Reorganize to provide debugging. Set __name to NULL.
* cygthread.h (cygself): Define.
* fhandler_tty.cc (fhandler_tty_master::init): Use cygself as argument so that
invoked thread can access its own info.
(process_output): Derive cygthread info of thread from thread argument.
* sigproc.cc (sigproc_init): Use cygself as argument so that invoked thread can
access its own info.
(wait_sig): Derive cygthread info of thread from thread argument.
2002-08-06 05:08:55 +00:00
Conrad Scott
ffebb4fe0c
* debug.h (handle_list::allocated): Remove field.
...
* debug.cc (newh): Don't malloc extra entries.
(add_handle): Downgrade strace message level.
(delete_handle): Remove case for `allocated' entries.
2002-08-06 03:40:40 +00:00
Christopher Faylor
8d0bc156ef
* cygthread.cc (cygthread::stub): Change event creation to manual reset. Set
...
__name after calling SetEvent to prevent races.
(cygthread::detach): Always reset event here to prevent races.
2002-08-05 16:15:46 +00:00
Danny Smith
9f37f36de6
* include/wingdi.h (AlphaBlend,GradientFill,TransparentBlt):
...
Add prototypes.
* lib/msimg32.def: New file, with stubs for above.
2002-08-05 02:03:24 +00:00
Conrad Scott
245e4e8734
* debug.h (WaitForMultipleObjects): Correct typo.
2002-08-03 23:43:42 +00:00
Christopher Faylor
2389d0af46
update
2002-08-03 23:34:01 +00:00
Danny Smith
eb7368d4ac
* include/stdio.h (_fcloseall): Add prototype.
2002-08-03 23:03:37 +00:00
Danny Smith
6e82d87372
* winbase.h (AddAccessAllowedAceEx,AddAccessDeniedAceEx,
...
GetFileSizeEx, SetFilePointerEx): Add prototypes.
(EncryptFile[AW], FileEncryptionStatus[AW]): Add prototypes
and UNICODE mappings.
2002-08-03 22:51:15 +00:00
Corinna Vinschen
32c803daa2
* mkgroup.c (main): Don't print an entry for "Everyone".
...
* mkpasswd.c (print_special): Set pw_gid to 544 for SYSTEM user.
(main): Don't print an entry for "Everyone".
2002-08-02 11:14:35 +00:00
Corinna Vinschen
23d93d8db7
* security.cc (verify_token): Do not reject a token just because
...
the supplementary group list is missing Everyone or a groupsid
equal to usersid, or because the primary group is not in the token,
as long as it is equal to the usersid.
* syscalls.cc (seteuid32): Use common code for all successful returns.
* grp.cc (getgroups32): Never includes Everyone in the output.
2002-08-02 11:00:18 +00:00
Danny Smith
04875a95c8
* include/winbase.h (ReadFileScatter, WriteFileGather):
...
Change second parameter to pointer.
2002-08-02 08:50:45 +00:00
Christopher Faylor
6b2a9a2fdf
* cygthread.cc (cygthread::exit_thread): Define new method.
...
* cygthread.h (cygthread::exit_thread): Declare new method.
* fhandler.h (fhandler_tty_master::hThread): Delete.
(fhandler_tty_master::output_thread): Define.
* fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Adjust
constructor.
(fhandler_tty_master::init): Use cygthread rather than handle.
(process_output): Use cygthread method to exit.
(fhandler_tty_master::fixup_after_fork): Set output_thread to NULL after fork.
(fhandler_tty_master::fixup_after_exec): Set output_thread to NULL after
spawn/exec.
* tty.cc (tty_list::terminate): Detach from output_thread using cygthread
method.
2002-08-02 02:10:24 +00:00
Christopher Faylor
8a19897f17
* syscalls.cc (_link): Revert previous change and just always dereference the
...
oldpath.
2002-08-01 23:53:07 +00:00
Christopher Faylor
e51cfd3116
* syscalls.cc (link): Properly deal with a link to a symlink.
2002-08-01 21:29:31 +00:00
Christopher Faylor
92655eab17
* cygthread.cc: Remove cruft.
2002-08-01 16:27:29 +00:00
Christopher Faylor
b6bd703781
* Makefile.in (DLL_OFILES): Add cygthread.o.
...
* dcrt0.cc (dll_crt0_1): Eliminate various thread initialization functions in
favor of new cygthread class.
* debug.cc: Remove thread manipulation functions.
* debug.h: Ditto.
* external.cc (cygwin_internal): Use cygthread method for determining thread
name. Remove capability for setting thread name.
* fhandler_console.cc (fhandler_console::read): Use cygthread method rather
than iscygthread function.
* fhandler_tty.cc (fhandler_tty_master::fhandler_tty_master): Use cygthread
methods to create threads.
(fhandler_tty_common::__acquire_output_mutex): Use cygthread method to retrieve
thread name.
* select.cc (pipeinf): Use cygthread pointer rather than handle.
(start_thread_pipe): Ditto.
(pipe_cleanup): Ditto.
(serialinf): Ditto.
(start_thread_serial): Ditto.
(serial_cleanup): Ditto.
(socketinf): Ditto.
(start_thread_socket): Ditto.
(socket_cleanup): Ditto.
* sigproc.cc (hwait_sig): Ditto.
(hwait_subproc): Ditto.
(proc_terminate): Ditto.
(sigproc_terminate): Ditto.
(sigproc_init): Initialize cygthread hwait_sig pointer.
(subproc_init): Initialize cygthread hwait_subproc pointer.
(wait_sig): Rely on cygthread HANDLE operator.
* strace.cc (strace::vsprntf): Use cygthread::name rather than threadname.
* window.cc (gethwnd): Use cygthread method to initialize thread.
2002-08-01 16:20:31 +00:00
Danny Smith
c3b6ad4d8d
* include/wininet.h (InternetReadFileEx[AW]). Add prototypes and
...
UNICODE mapings.
* lib/wininet.def: Regenerate.
2002-08-01 06:52:05 +00:00
Corinna Vinschen
afcd48e61b
* fhandler.h (fhandler_base::get_r_no_interrupt): Make non-virtual.
...
* net.cc (fdsock): Call set_r_no_interrupt.
2002-07-31 13:18:51 +00:00
Christopher Faylor
deaa100bae
* syscalls.cc (_read): Clarify debugging output.
2002-07-31 00:57:40 +00:00
Christopher Faylor
c91a9a9b58
* fhandler.h (fhandler_base::get_r_no_interrupt): Make virtual.
2002-07-31 00:26:36 +00:00
Christopher Faylor
5ba08a9238
* fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Incorporate . and ..
...
processing here.
(fhandler_cygdrive::readdir): Assume . and .. are already in pdrive.
(fhandler_cygdrive::seekdir): Ditto.
2002-07-30 14:17:17 +00:00
Christopher Faylor
4f9cdc9378
fix typo
2002-07-30 04:14:49 +00:00
Danny Smith
045d6a99fe
* include/windef.h (PVOID, LPVOID): Move typedefs to...
...
* include/winnt: ...here.
(PVOID64): New typeddef.
* include/winnt,h (FILE_SEGMENT_ELEMENT): Define union.
* include/winbase.h: (ReadFileScatter, WriteFileGather):
Add prototypes.
* include/winnt,h (PROCESSOR_ARCHITECTURE_*): Add defines.
(PROCESSOR_INTEL_IA64): Add define
2002-07-30 03:20:59 +00:00
Christopher Faylor
c6ed5790b4
* dcrt0.cc (dll_crt0_1): Move debug_fixup_after_fork_exec.
...
* cygheap.cc (cygheap_fixup_in_child): Call debug_fixup_after_fork_exec
immediately after cygheap has ben set up.
2002-07-30 01:31:51 +00:00
Corinna Vinschen
5519d54352
* security.cc: Change some formatting.
...
* include/cygwin/version.h: Bump API minor version.
* cygheap.h (class cygheap_user): Add member groups.
* security.h (class cygsidlist): Add members type and maxcount,
methods position, addfromgr, alloc_sids and free_sids and
operator+= (const PSID psid). Modify contains () to call
position () and optimize add () to use maxcount.
(class user_groups): Create.
Update declarations of verify_token and create_token.
* security.cc (cygsidlist::alloc_sids): New.
(cygsidlist::free_sids): New.
(get_token_group_sidlist): Create from get_group_sidlist.
(get_initgroups_sidlist): Create from get_group_sidlist.
(get_group_sidlist): Suppress.
(get_setgroups_sidlist): Create.
(verify_token): Modify arguments. Add setgroups case.
(create_token): Modify arguments. Call get_initgroups_sidlist and
get_setgroups_sidlist as needed. Set SE_GROUP_LOGON_ID from auth_pos
outside of the loop. Rename the various group sid lists consistently.
* syscalls.cc (seteuid32): Modify to use cygheap->user.groups.
(setegid32): Call cygheap->user.groups.update_pgrp.
* grp.cc (setgroups): Create.
(setgroups32): Create.
* uinfo.cc (internal_getlogin): Initialize and update user.groups.pgsid.
* cygwin.din: Add setgroups and setgroups32.
2002-07-29 12:51:52 +00:00
Christopher Faylor
eb5720f255
* fhandler_console.cc (fhandler_console::read): Use appropriate kill_pgrp
...
method.
* select.cc (peek_console): Ditto.
* fhandler_termios.cc (fhandler_termios::bg_check): Send "stopped" signal to
entire process group as dictated by SUSv3.
* termios.cc (tcsetattr): Detect when stopped signal sent and force a stop
before setting anything.
2002-07-29 03:18:41 +00:00
Danny Smith
efd34df5a5
* include/tchar.h (_tfdopen): Correct typo.
2002-07-29 03:05:56 +00:00
Danny Smith
b8cdc234c6
Add incomplet long double math support to libmingwex.a
2002-07-29 03:00:10 +00:00
David Starks-Browning
840e611264
fix commercial contact
2002-07-27 23:05:45 +00:00
Christopher Faylor
667f875d17
* include/cygwin/version.h: Bump API version to indicate that ntsec is on by
...
default now.
2002-07-27 01:52:05 +00:00
David Starks-Browning
d6b3952610
darn typo
2002-07-26 23:43:15 +00:00
David Starks-Browning
70e81b1497
update paths to setup.log*
2002-07-26 23:39:21 +00:00
David Starks-Browning
3427836283
nuke section "What's the difference between packages in `latest' and `contrib'?"
2002-07-26 23:32:47 +00:00
David Starks-Browning
25d286931a
correct minor typo
2002-07-26 23:31:28 +00:00
David Starks-Browning
ff5c62593a
paragraph fill (oops!)
2002-07-26 23:15:38 +00:00
David Starks-Browning
766f4da614
update CD release plans
2002-07-26 23:14:52 +00:00
David Starks-Browning
a96cb86bd0
update & improve section "How do I just get everything?"
2002-07-26 23:11:22 +00:00
David Starks-Browning
d587c1276e
rewrite (incl new heading) section on installing snapshots
2002-07-26 22:49:34 +00:00
David Starks-Browning
4b37baf018
minor improvements to wording
2002-07-26 22:29:38 +00:00