summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.h (fhandler_termios::line_edit): Replace third argument withChristopher Faylor2002-12-275-35/+53
| | | | | | | | | | | | | passed-in termios struct. * fhandler_console.cc (fhandler_console::read): Prior to loop, make a copy of current termios for passing to line_edit prior so that all characters are processed consistently. * fhandler_tty.cc (fhandler_pty_master::write): Ditto. (process_input): Make a copy of curent termios prior to read for use in subsequent line_edit. * fhandler_termios.cc (fhandler_termios::line_edit): Replace third parameter with passed-in termios struct and use it throughout rather than the data from the current fhandler_termios class.
* 2002-12-26 Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>Danny Smith2002-12-262-3/+7
| | | | * include/wingdi.h (DOCINFOA): Replace LPCTSTR with LPCSTR.
* 2002-12-26 Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>Danny Smith2002-12-263-3/+7
| | | | | | * include/wingdi.h (BALTIC_CHARSET, JOHAB_CHARSET, VIETNAMESE_CHARSET): Remove duplicate defines. * lib/comctl32.def (ImageList_SetImageCount): Add stub.
* * include/dbt.h (DEV_BROADCAST_PORT): Add UNICODE version.Danny Smith2002-12-262-2/+19
| | | | Thanks to: Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>
* 2002-12-26 Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>Danny Smith2002-12-261-4/+4
| | | | | * include/dde.h (PackDDElParam, UnpackDDElParam,FreeDDElParam, ReuseDDElParam): Use __WIN64 compatible typedefs.
* * include/unknwn.h: Include windows.h and ole2.h before headerDanny Smith2002-12-262-5/+15
| | | | guard to avoid circular inclusion of COM headers.
* 2002-12-26 Dimitri Papadopoulos <dimitri_at@sourceforge.users.net>Danny Smith2002-12-262-4/+11
| | | | | | | * include/accctrl.h (ACTRL_ACCESS_ENTRY[AW]): Make lpInheritProperty member const. (ACTRL_PROPERTY_ENTRY[AW]): Make lpProperty member const.
* * include/commcat.h: Don't include windows.h or ole2.h ifdefDanny Smith2002-12-263-0/+12
| | | | | COM_NO_WINDOWS_H. * include/unknwn.h: Ditto.
* * include/imm.h (ImmGetCompositionFont[AW],Danny Smith2002-12-262-0/+11
| | | | ImmSetCompositionFont[AW]): Add NOGDI guard.
* minor reformattingChristopher Faylor2002-12-251-0/+2
|
* * include/cygwin/version.h: Bump DLL minor number.Christopher Faylor2002-12-252-1/+5
|
* * exceptions.cc (events_init): Initialize critical section to control exitingChristopher Faylor2002-12-253-0/+14
| | | | | | | via signal. (signal_exit): Enter critical section early to avoid exit races with main thread. * dcrt0.cc (do_exit): Use exit_lock critical section to avoid races.
* * cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTRChristopher Faylor2002-12-252-1/+6
| | | | is properly restored after signal.
* * Makefile.in: Default fhandler objects to -fomit-frame-pointer. EliminateChristopher Faylor2002-12-212-1/+26
| | | | redundant CFLAGS settings.
* * Makefile.common: Don't attempt to pretty-print c++ errors.Christopher Faylor2002-12-212-1/+5
|
* * fhandler.h (line_edit_status): Reorganize so that tests for error conditionChristopher Faylor2002-12-214-10/+21
| | | | | | | | can be < or >. * fhandler_tty.cc (fhandler_pty_master::write): Don't return after sending a signal. * fhandler_termios.cc (fhandler_termios::line_edit): Trivial change to use built-in bool types.
* * include/_mingw.h: Increment version to 2.4.Earnie Boyd2002-12-203-3/+8
| | | | Makefile.in: Ditto.
* 2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2002-12-202-1/+8
| | | | | * localtime.cc (tzsetwall): Set lcl_is_set and lcl_TZname in the Cygwin specific part of the routine.
* 2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet2002-12-202-2/+7
| | | | | * fhandler.cc (fhandler_base::open): Use "flags" rather than "mode" in Win9X directory code.
* * fhandler.h (line_edit_status): Add a new element.Christopher Faylor2002-12-204-6/+25
| | | | | | | * fhandler_termios.cc (fhandler_termios::line_edit): After accept_input, handle both potential error condition and pipe full conditions. * fhandler_tty.cc (fhandler_pty_master::accept_input): Return -1 on error. (fhandler_pty_master::write): Handle pipe full condition.
* * overview2.sgml: Remove CTRL-Z discussion.Christopher Faylor2002-12-193-6/+15
| | | | * cygwinenv.sgml: Expand on CYGWIN=binmode.
* * include/ddk/hidusage.h: Remove unneccessary #pragma pack's.Danny Smith2002-12-1921-42/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/ddk/miniport.h (EMULATOR_PORT_ACCESS_TYPE): Define before using. (VIDEO_ACCESS_RANGE): Guard against prior definition. * include/ddk/minitape.h (INQUIRYDATA): Guard against prior definition. * include/ddk/ndis.h (DECLARE_UNKNOWN_PROTOTYPE): Correct macro. * include/ddk/ndisguid.h: Remove unneccessary #pragma pack's. * include/ddk/scsi.h (INQUIRYDATA): Guard against prior definition. * include/ddk/scsiwmi.h (GUID): Define if not already done. (LPCGUID): Likewise. * include/ddk/tdi.h: Close "Listen flags" comment. * include/ddk/tdistat.h: Remove unneccessary #pragma pack's. * include/ddk/video.h: Add #pragma pack(push,4) to balance. (VIDEO_ACCESS_RANGE): Guard against prior definition. * include/ddk/videoagp.h:Add #pragma pack(push,4) to balance. * include/ddk/win2k.h: Likewise. * include/ddk/winddi.h: Likewise. * include/ddk/winddk.h: Likewise. * include/ddk/winnt4.h: Likewise. * include/ddk/ws2san.h: Likewise. * include/ddk/xfilter.h: Remove unbalanced #pragma pack(pop). * include/ddk/video.h: Don't process rest of file ifdef __WINDDI_H. * include/ddk/winddi.h: Don't process rest of file ifdef __VIDEO_H. * include/ddk/usb.h: Don't process rest of file ifdef __USBDI_H. * include/ddk/usbdi.h: Don't process rest of file ifdef __USB_H. * include/ddk/usbcamdi.h: Don't process rest of file if !defined(__USB_H) && !defined(__USBDI_H)
* 2002-12-18 James E. Lucas <xelloss@users.sourceforge.net>Danny Smith2002-12-184-2/+29
| | | | | | | | | | | | | * include/winnetwk.h (WNetResourceInformation[AW]): Correct prototypes. * include/winuser.h (GetAncestor) Add prototype. (GA_PARENT, GA_ROOT, GA_ROOTOWNER): Add defines. (EWX_FORCEIFHUNG): Add define for _WIN32_WINNT >= 0x0500. (SPI_GETACTIVEWINDOWTRACKING, SPI_GETACTIVEWNDTRKZORDER, SPI_GETACTIVEWNDTRKTIMEOUT, SPI_SETACTIVEWINDOWTRACKING SPI_SETACTIVEWNDTRKZORDER, SPI_SETACTIVEWNDTRKTIMEOUT): Add defines. * lib/user32.def (GetAncestor@8): Add stub.
* * fhandler_termios.cc (fhandler_termios::line_edit): Return line_edit_error andChristopher Faylor2002-12-173-31/+42
| | | | | | remove last char from readahead buffer if accept_input() fails. * fhandler_tty.cc (fhandler_pty_master::accept_input): Return 0 and restore readahead buffer when tty slave pipe is full.
* * pinfo.cc (_pinfo::cmdline): Allocate sufficient space for myself command lineChristopher Faylor2002-12-162-1/+6
| | | | args.
* * include/windows.h: Guard inclusion of wingdi.h,Danny Smith2002-12-153-15/+42
| | | | | | | commdlg.h, winspool.h, ole2.h with NOGDI. * include/winuser.h (ICONMETRICS, NONCLIENTMETRICS, ChangeDisplaySettings, CreateDesktop, EnumDisplaySettings): Guard with NOGDI.
* * setfacl.c (main): Place a single : after other and mask.Corinna Vinschen2002-12-153-5/+11
| | | | | * getfacl.c (getaclentry): Allow both : and :: for other and mask. (main): Remove extraneous break.
* * fhandler_termios.cc (fhandler_termios::line_edit): Call accept_input() inChristopher Faylor2002-12-142-8/+16
| | | | character processing loop. Set return value independently of input_done.
* * fhandler.cc (fhandler_base::read): Signal event, if necessary, and raw_readChristopher Faylor2002-12-142-0/+10
| | | | hasn't done so.
* * fhandler.cc (fhandler_base::raw_read): Reset priorities to minimize windowChristopher Faylor2002-12-142-54/+57
| | | | | | | | where thread termination may cause data loss. (fhandler_base::read): Always return at end of function. Just set len to copied_chars when len is zero. Return immediately after raw_read if len <= 0. Remove in_len setting and just check end instead. Fix CRLF handling at end of buffer.
* 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.