summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* 2002-12-14 Corinna Vinschen <corinna@vinschen.de>Corinna Vinschen2002-12-144-12/+48
| | | | | | | | | | | | * dcrt0.cc (dll_crt0_1): Call well known SID initializer function. * security.h (cygsid::init): Declare new static method. * sec_helper.cc (cygsid::init): New method for initializing well known SIDs. 2002-12-14 Pierre Humblet <pierre.humblet@ieee.org> * security.h: Declare well_known_creator_group_sid. * sec_helper.cc: Define and initialize well_known_creator_group_sid.
* * netdb.cc: Remove strtok_r comment.Corinna Vinschen2002-12-142-9/+5
|
* * security.cc (get_user_local_groups): Use LookupAccountSid to find theCorinna Vinschen2002-12-142-6/+14
| | | | local equivalent of BUILTIN.
* * pipe.cc (make_pipe): Set fork fixup flag for read pipe.Christopher Faylor2002-12-142-0/+5
|
* add FIXMEChristopher Faylor2002-12-141-0/+1
|
* * winbase.h: Turn on inline versions of Interlocked* by default.Christopher Faylor2002-12-143-23/+45
| | | | * winbase.h: Fixup inline asm functions. Add ilockcmpexch.
* Throughout, change fhandler_*::read and fhandler_*::raw_read to void functionsChristopher Faylor2002-12-1419-189/+295
| | | | | | | | | | | whose second arguments are both the lenght and the return value. * fhandler.cc (fhandler_base::read): Rework slightly to use second argument as input/output. Tweak CRLF stuff. (fhandler_base::readv): Accommodate fhandler_*::read changes. * cygthread.h (cygthread::detach): Declare as taking optional handle argument. (cygthread::detach): When given a handle argument, wait for the handle to be signalled before waiting for thread to detach. Return true when signal detected.
* 2002-12-12 Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>Danny Smith2002-12-132-9/+17
| | | | * include/oleacc.h (SELFLAG_*): Change to enum.
* * include/malloc.h (_alloca): Add definition.Earnie Boyd2002-12-122-0/+11
| | | | (alloca): Ditto.
* * Makefile.common: Define MINGW_LDFLAGS.Corinna Vinschen2002-12-126-3/+14
| | | | | | * configure.in: Reorder SUBDIRS to have mingw before cygwin. * configure: Regenerate from configure.in. * cygwin/Makefile.in: Add MINGW_LDFLAGS when linking cygrun.exe.
* * include/shlobj.h (IShellLinkW::GetPath): Correct prototype.Danny Smith2002-12-122-2/+7
|
* whitespaceChristopher Faylor2002-12-128-15/+21
|
* * cygthread.h (cygthread::stack_ptr): New element.Christopher Faylor2002-12-117-33/+146
| | | | | | | | | | | | | | | | | | | (cygthread::detach): Accept a "wait_for_signal" argument. (cygthread::terminate_thread): New function. * cygthread.cc (cygthread::stub): Set stack pointer argument. (cygthread::terminate_thread): New function. Forcibly terminate thread. (cygthread::detach): Optionally wait for signals and kill thread when signal arrives. * exceptions.cc (signal_exit): Set signal_arrived prior to exiting to wake up anything blocking on signals. * fhandler.h (fhandler_base::set_r_no_interrupt): Change to accept bool argument. (fhandler_pipe::ready_for_read): Declare. * pipe.cc (pipeargs): New structure. (read_pipe): New thread stub wrapper for normal pipe read. (fhandler_pipe::read): Modify to call reader in a cygthread, terminating on signal, as appropriate. * select.cc (fhandler_pipe::ready_for_read): Define new function.
* * net.cc (free_protoent_ptr): Add missing free() for base structure.Corinna Vinschen2002-12-102-0/+9
| | | | | (free_servent_pt): Ditto. (free_hostent_pt): Ditto.
* * netdb.cc (parse_alias_list, parse_services_line)Corinna Vinschen2002-12-102-14/+19
| | | | (parse_protocol_line): Change strtok calls to strtok_r.
* 2002-12-10 Pierre Humblet <pierre.humblet@ieee.org>Corinna Vinschen2002-12-1010-195/+258
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pwdgrp.h (pwdgrp_check::pwdgrp_state): Replace by pwdgrp_check::isinitializing (). (pwdgrp_check::isinitializing): Create. * passwd.cc (grab_int): Change type to unsigned, use strtoul and set the pointer content to 0 if the field is invalid. (parse_pwd): Move validity test after getting pw_gid. (read_etc_passwd): Replace "passwd_state <= " by passwd_state::isinitializing (). (internal_getpwuid): Ditto. (internal_getpwnam): Ditto. (getpwent): Ditto. (getpass): Ditto. * grp.cc (parse_grp): Use strtoul for gr_gid and verify the validity. (read_etc_group): Replace "group_state <= " by group_state::isinitializing (). (internal_getgrgid): Ditto. (getgrent32): Ditto. (internal_getgrent): Ditto. 2002-12-10 Pierre Humblet <pierre.humblet@ieee.org> * security.h: Move declarations of internal_getgrent, internal_getpwsid and internal_getgrsid to pwdgrp.h. * pwdgrp.h: Declare internal_getpwsid, internal_getpwnam, internal_getpwuid, internal_getgrsid, internal_getgrgid, internal_getgrnam, internal_getgrent and internal_getgroups. Delete "emulated" from enum pwdgrp_state. (pwdgrp_check::isuninitialized): Create. (pwdgrp_check::pwdgrp_state): Change state to initializing rather than to uninitialized. (pwdgrp_read::gets): Remove trailing CRs. * passwd.cc (grab_string): Don't look for NLs. (grab_int): Ditto. (parse_pwd): Don't look for CRs. Return 0 if entry is too short. (search_for): Delete. (read_etc_passwd): Simplify tests to actually read the file. Set state to loaded before making internal_getpwXX calls. Replace search_for calls by equivalent internal_pwgetXX calls. (internal_getpwsid): Use passwd_state.isuninitialized to decide to call read_etc_passwd. (internal_getpwuid): Create. (internal_getpwnam): Create. (getpwuid32): Simply call internal_getpwuid. (getpwuid_r32): Call internal_getpwuid. (getpwnam): Simply call internal_getpwnam. (getpwnam_r): Call internal_getpwnam. * grp.cc (parse_grp): Don't look for CRs. Adjust blank space. (add_grp_line): Adjust blank space. (class group_lock): Ditto. (read_etc_group): Simplify tests to actually read the file. Set state to loaded before making internal_getgrXX calls. Replace getgrXX calls by equivalent internal calls. (internal_getgrsid): Use group_state.isuninitialized to decide to call read_etc_group. (internal_getgrgid): Create. (internal_getgrnam): Create. (getgroups32): Simply call internal_getgrgid. (getgrnam32): Simply call internal_getgrnam. (internal_getgrent): Call group_state.isuninitialized. (internal_getgroups): Create from the former getgroups32, using two of the four arguments. Set gid to myself->gid and username to cygheap->user.name (). (getgroups32): Simply call internal_getgroup. (getgroups): Call internal_getgroup instead of getgroups32. (setgroups32): Call internal versions of get{pw,gr}XX. * sec_helper.cc: Include pwdgrp.h. (is_grp_member): Call internal versions of get{pw,gr}XX. * security.cc: Include pwdgrp.h. (alloc_sd): Call internal versions of get{pw,gr}XX. * syscalls.cc: Include pwdgrp.h. (seteuid32): Call internal versions of get{pw,gr}XX. (setegid32): Ditto. * uinfo.cc: Include pwdgrp.h. (internal_getlogin): Call internal versions of get{pw,gr}XX. (cygheap_user::ontherange): Ditto. * sec_acl.cc: Include pwdgrp.h. (setacl): Call internal versions of get{pw,gr}XX. (acl_access): Ditto and simplify logic. (aclfromtext): Ditto.
* correct dateChristopher Faylor2002-12-091-1/+1
|
* * lib/pseudo-reloc.c: New file.Christopher Faylor2002-12-094-0/+101
| | | | | * lib/_cygwin_crt0_common.cc: Perform pseudo-relocs during initialization of cygwin binary (.exe or .dll).
* * include/shellapi.h (ExtractIconEx[AW]): Correct return typeDanny Smith2002-12-092-2/+8
| | | | to UINT.
* * mingwex/math/s_erf.c: New file.Danny Smith2002-12-085-9/+629
| | | | | | | | * mingwex/math/sf_erf.c: New file. * mingwex/Makefile.in (MATH_DISTFILES): Add new files. (MATH_OBJS): Add new objects. * include/math.h (erf[f]): Add prototypes. (erfc[f]): Add prototypes.
* * include/math.h: Add traditional/XOPEN math constants.Danny Smith2002-12-072-0/+37
| | | | Add missing ChangeLog entry for 2002-11-27
* * include/winuser.h (AllowSetForegroundWindow,Danny Smith2002-12-073-0/+20
| | | | | | | | LockSetForegroundWindow) Add prototypes. (ASFW_ANY, LSFW_LOCK, LSFW_UNLOCK) Add defines. Thanks to: Pat Thoyts <patthoyts@users.sourceforge.net> * lib/winuser.def (AllowSetForegroundWindow, LockSetForegroundWindow): Add stubs.
* fix dateChristopher Faylor2002-12-071-1/+1
|
* * cygwin.din: Reflect name change from strtodf to strtof. Export strtof.Christopher Faylor2002-12-063-3/+11
| | | | * include/cygwin/version.h: Bump API minor number.
* 2002-12-06 Ken Fitlike <kenfitlike@users.sourceforge.net>Danny Smith2002-12-062-11/+36
| | | | | | | | | * include/commctrl.h (TN_GETDISPINFO[AW]): Add defines and UNICODE mappings. (tagNMTTDISPINFO[AW]): Replace obsolete struct names tagTOOLTIPTEXT[AW] and typedefs. Add defines for backward compatability. Add lParam field. Add UNICODE mappings for new names.
* * fhandler.h (fhandler_termios::line_edit): Change return from an int to anChristopher Faylor2002-12-055-12/+40
| | | | | | | | | | | enum to allow the function to return an error. * fhandler_console.cc (fhandler_console::read): Update the line_edit call to use the new enum. * fhandler_termios.cc (fhandler_termios::line_edit): Change return from an int to an enum to allow the function to return an error. Put put_readahead call before doecho for future patch. * fhandler_tty.cc (fhandler_pty_master::write): Change to call line_edit one character at a time, and stop if an error occurs.
* fix commentChristopher Faylor2002-12-041-2/+2
|
* * netdb.cc: New file.Christopher Faylor2002-12-045-11/+455
| | | | | | * Makeile.in (DLL_OFILES): Add reference to the new netdb.cc file. * cygwin.din : Add new aliased exports for service and protocol enumerations in netdb.cc.
* * cxx.cc: New file. Implement new, new[], delete and delete[]Corinna Vinschen2002-12-043-2/+58
| | | | | | operators and __cxa_pure_virtual if compiled by gcc >=3. * Makefile.in (DLL_OFILES): Add cxx.o. Remove libstdc++.a from cygwin1.dll link step.
* 2002-12-02 Andrew Stadt <acstadt@sympatico.ca>Danny Smith2002-12-022-0/+7
| | | | | * include/shellapi.h (_SHFILEOPSTRUCTA,_SHFILEOPSTRUCTW): Wrap with pshpack2.h/poppack.h to correct alignment.
* 2002-12-02 Ken Fitlike <kenfitlike@users.sourceforge.net>Danny Smith2002-12-022-1/+63
| | | | | | | | | | | | | * include/commctrl.h (LVBKIF_*): Add defines. (LVM_SETIMAGE[AW]): Add defines and UNICODE mappings. (LVM_GETIMAGE[AW]): Add defines and UNICODE mappings. (LVBKIMAGE[AW]): Add defines and UNICODE mappings. (LPLVBKIMAGE[AW]): Add defines and UNICODE mappings. (LVM_GETBKIMAGE[AW]): Add defines and UNICODE mappings. (LVM_SETBKIMAGE[AW]): Add defines and UNICODE mappings. (ListView_GetBkImage): Add define. (ListView_SetBkImage): Add define. (LVBKIMAGE): Add structures and typedefs.
* * fhandler_tty.cc (fhandler_pty_master::accept_input): Move read_retvalChristopher Faylor2002-11-302-4/+15
| | | | | assignment to prevent race condition. Remove read_retval from return statement.
* * pinfo.h (winpids::set): Renamed from init.Christopher Faylor2002-11-296-5/+32
| | | | | | | | | | | (winpids::init): New declaration. (winpids::cs): Ditto. (winpids::winpids): Use set rather than init. * external.cc (fillout_pinfo): Ditto. * dcrt0.cc (dll_crt0_1): Call winpids::init. * pinfo.cc (winpids::set): Renamed from init. Wrap calls in critical section. (winpids::init): New function. (winpids::cs): Define.
* * sigproc.cc (sig_dispatch_pending): Remove assertion.Christopher Faylor2002-11-292-1/+4
|
* revert botched checkinChristopher Faylor2002-11-281-6/+6
|
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2002-11-283-7/+11
|
* * fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized valueChristopher Faylor2002-11-272-3/+8
| | | | return.
* * cygwin.din: Export pthread_getsequence_np.Christopher Faylor2002-11-273-1/+8
| | | | * include/cygwin/version.h: Bump API minor version.
* * mingwex/math/lgamma.c: New file.Danny Smith2002-11-279-5/+2300
| | | | | | | | | | | | | | | * mingwex/math/lgammaf.c: New file. * mingwex/math/lgammal.c: New file. * mingwex/math/tgamma.c: New file. * mingwex/math/tgammaf.c: New file. * mingwex/math/tgammal.c: New file. * mingwex/math/cephes_mconf (polevlf): Add float version. (p1evlf): Likewise. Define _CEPHES_USE_ERRNO. * mingwex/Makefile.in (MATH_DISTFILES): Add new files. (MATH_OBJS): Add new objects. * include/math.h (lgamma[fl]): Add prototypes. (tgamma[fl]): Add prototypes.
* white spaceChristopher Faylor2002-11-271-1/+1
|
* * cygwin.din: Export nl_langinfo().Christopher Faylor2002-11-273-1/+9
| | | | * include/cygwin/version.h: Bump API minor version.
* * fhandler_tty.cc (fhandler_pty_master::accept_input): Just use a normal SleepChristopher Faylor2002-11-263-4/+10
| | | | | or suffer amazing pauses when other tty apps are running. (fhandler_pty_master::process_slave_output): Ditto.
* Add strtold and wcstold to libmingwex.aDanny Smith2002-11-269-9/+3147
| | | | | | | | | | | | | | | | | * mingwex/strtold.c: New file. * mingwex/wcstold.c: New file. * mingwex/ldtoa.c: New file. * mingwex/math/cephes_emath.h: New file. * mingwex/math/cephes_emath.c: New file. * mingwex/Makefile.in (DISTFILES): Add new files. (MATH_DISTFILES): Ditto. (STDLIB_OBJS): New. Define as strtold.c wcstold.c. (MATH_OBJS): Add cephes_emath.o. (LIB_OBJS): Add $(STDLIB_OBJS). * include/stdlib.h (strtold, wcstold): Add prototypes. * include/wchar.h (wcstold): Add prototype. Add missing ChangeLog entry for 2002-11-09.
* * include/w32api.h: Increment to version 2.2Earnie Boyd2002-11-253-3/+8
| | | | * Makefile.in: Ditto.
* * lib/Makefile.in (dist, install): Correct the install destinations.Earnie Boyd2002-11-253-13/+25
| | | | * lib/ddk/Makefile.in (dist, install): Ditto.
* * mkpasswd.c (main): Set pw_passwd field to '*' on 9x/Me.Corinna Vinschen2002-11-252-5/+9
|
* * passwd.cc (read_etc_passwd): Never add an entry when startingCorinna Vinschen2002-11-253-4/+14
| | | | | | on Win95/98/ME if a default entry is present. * uinfo.cc (internal_getlogin): Look for the default uid if needed. Always call user.set_name ().
* * sec_acl.cc (getacl): Set errno to ENOSPC if command is GETACL andCorinna Vinschen2002-11-252-1/+9
| | | | nentries is less than the number of entries in the file's ACL.
* 2002-11-24 Corinna Vinschen <corinna@vinschen.de>Corinna Vinschen2002-11-242-142/+153
| | | | | | | | | | | | | | | | | | | | | | * sec_acl.cc: Fix some formatting. Only set and check `other' bits in a_perm throughout. Use ILLEGAL_GID id for all entries having no id. (setacl): Fix inheritance condition. (getacl): Set all permission bits in CLASS_OBJ and DEF_CLASS_OBJ entries. Remove DENY bits before returning to calling function. (acltomode): Fix usage of searchace(). If available, use CLASS_OBJ to mask GROUP_OBJ permissions. (aclfrommode): Fix usage of searchace(). If available, set CLASS_OBJ permissions to same value as GROUP_OBJ permissions. 2002-11-24 Pierre Humblet <pierre.humblet@ieee.org> * sec_acl.cc (getace): Fix the behavior when allow and deny entries are present in arbitrary order. (getacl): Report the actual number of entries when aclbufp is NULL, even if nentries is zero. Fix the mask reporting, handle the case where the owner and group sids are equal and streamline the code. (acl_worker): Take allow_ntsec into account.
* * setfacl.c (getperm): Set only `other' permission bits.Corinna Vinschen2002-11-242-4/+9
| | | | (getaclentry): Set a_id to -1 by default.