Commit Graph

5177 Commits

Author SHA1 Message Date
Christopher Faylor 7d7d09aee8 * fhandler.h (fhandler_base::pread): Declare new function.
(fhandler_base::pwrite): Ditto.
(fhandler_disk_file::pread): Ditto.
(fhandler_disk_file::pwrite): Ditto.
* fhandler.cc (fhandler_base::pread): Define new function.
(fhandler_base::pwrite): Ditto.
* fhandler_disk_file.cc (fhandler_base::pread): Ditto.
(fhandler_base::pwrite): Ditto.
* syscalls.cc (pread): Define new function.
(pwrite): Ditto.
* cygwin.din: Export pread, pwrite.
* include/sys/ioctl.h: Guard some _IO* declarations to avoid conflict with
socket.h.
2005-07-29 17:04:46 +00:00
Christopher Faylor 728b9af5c9 * include/sys/ioctl.h: Add some linux defines. 2005-07-29 15:26:18 +00:00
Christopher Faylor b78b8f53ae * pinfo.cc (pinfo::init): Put back accidentally removed debug_printf. 2005-07-29 14:33:50 +00:00
Christopher Faylor 2b3fc7325c * cygthread.cc (cygthread::simplestub): Wait for h to be filled out by main
thread before assigning it.
2005-07-29 14:29:33 +00:00
Christopher Faylor 40c125cf38 * pinfo.cc (pinfo::init): Sleep before retrying open_shared(). 2005-07-29 14:25:28 +00:00
Christopher Faylor f834829dee * fork.cc (fork_parent): Fix null deref if pinfo creation fails. 2005-07-29 14:22:56 +00:00
Christopher Faylor 4fe79f1c97 * cygmalloc.h (MSPACES): Define. This dropped through the cracks after the
last malloc update.
* dcrt0.cc: Fix a comment.
* malloc.cc (internal_malloc): Fix definition so that it can be safely coerced.
2005-07-28 17:03:34 +00:00
Earnie Boyd 625302ea89 2005-07-28 Earnie Boyd <earnie@users.sf.net>
* include/winnt.h (SUBLANG_PORTUGUESE, SUBLANG_PORTUGUESE_BRAZILIAN):
	Correct their values.
	Thanks to: Daniel K. O. <danielosmari at users dont sf dot net>
2005-07-28 11:09:36 +00:00
Christopher Faylor 09b490911c * include/cygwin/in.h (INET_ADDRSTRLEN): Add new definition. 2005-07-27 17:35:18 +00:00
Christopher Faylor efc7accc9d * gendef: Use nocr to remove \r's from input. gendef (nocr): New function. 2005-07-27 16:16:51 +00:00
Christopher Faylor a3c024d6ea * fhandler_clipboard.cc (fhandler_dev_clipboard::close): Set membuffer to NULL.
(fhandler_dev_clipboard::fixup_after_exec): Don't call close here.  Just set
variables directly.
2005-07-27 14:33:09 +00:00
Christopher Faylor 0a911c4e6d * include/byteswap.h: New file. 2005-07-26 00:55:42 +00:00
Christopher Faylor c24d159222 update copyright 2005-07-26 00:38:54 +00:00
Christopher Faylor 33e7a6bb89 * include/cygwin/types.h: Define loff_t. 2005-07-25 21:46:36 +00:00
Chris Sutcliffe 2626e6d8d3 2005-07-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winuser.h (HSHELL_RUDEAPPACTIVATED): Define.
2005-07-25 13:06:49 +00:00
Danny Smith 018a7ccb03 * include/wingdi.h (TT_PRIM_CSPLINE): Define.
Thanks to: Bob Jamison <ishmal at users dot sourceforge dot net>
2005-07-20 11:32:54 +00:00
Danny Smith 006351e561 * include/richedit.h (SETTEXTEX): Define structure and
associated constants.
	(GT_SELECTION): Define GETTEXTEX flag constant.
2005-07-20 11:21:49 +00:00
Christopher Faylor 0eccec28cc * cygcheck.cc (find_on_path): Perform .exe magic on non-PATH search. 2005-07-19 21:00:34 +00:00
Danny Smith d551c8583e * include/wingdi.h (SYSPAL_NOSTATIC256): Define. 2005-07-19 08:49:06 +00:00
Danny Smith a5a54cb74d * include/wingdi.h (WINGDIAPI): Define to SECLSPEC_DLLIMPORT
if __W32API_USE_DLLIMPORT__.  Use throughout on prototypes.
2005-07-19 08:27:43 +00:00
Danny Smith e6d7923625 * include/commctrl.h (RBBS_USECHEVRON): Define.
(RBBS_*): Use hex notation, group together.
2005-07-19 07:46:23 +00:00
Danny Smith e17dbb54c7 * lib/kernel32.def (GetUserGeoID): Correct suffix.
Thanks to: "bernd23" <bernd23 at users dot sourceforge dot net>
2005-07-18 11:04:51 +00:00
Danny Smith ea4ec94347 * include/commctrl.h (TreeView_SetItemState): Initilise
_tvi.hItem.
	Thanks to Joseph Remes <jremes at users dot sourceforge dot net>
2005-07-18 10:12:49 +00:00
Danny Smith 6c325681e2 Remove 2005-07-08 Dimitri Papadopoulos entry (no file was added). 2005-07-18 09:53:17 +00:00
Danny Smith 45a9824b06 2005-07-18 Mattia Barbon <mbarbon@users.sourceforge.net>
* include/commctrl.h (NMLVFINDITEM): Add structure.
2005-07-18 09:48:08 +00:00
Danny Smith cdfd7f6a49 2005-07-18 Michael Gerdau <mgdde@users.sourceforge.net>
* include/wininet.h (WININET_API_FLAG_*): Add defines.
2005-07-18 09:04:25 +00:00
Danny Smith 90e7ba4fd5 2005-07-18 Daniel Atallah <datallah@users.sourceforge.net>
* include/winnt.h (VER_SET_CONDITION): Define.
2005-07-18 08:52:29 +00:00
Danny Smith 44947f6562 2005-07-18 Michael Gerdau <mgdde@users.sourceforge.net>
* include/wincon.h (AttachConsole): Correct _WIN32_WINNT guard.
	(ATTACH_PARENT_PROCESS): Define.
	(CONSOLE_WINDOWED_MODE): Correct definition to match MSDN
	documentation.
2005-07-18 05:43:22 +00:00
Earnie Boyd 9d3e15bef5 2005-07-17 Benoit Blanchon <bblanchon@users.sourceforge.net>
* include/winbase.h (QueueUserWorkItem): Add prototype.
2005-07-17 18:58:12 +00:00
Christopher Faylor 28f99e38ad . 2005-07-17 02:12:04 +00:00
Christopher Faylor e8454a3400 * child_info.h (child_info::sync): Pass pid and HANDLE rather than using pinfo.
(child_info::child_info): Accept an argument controlling whether to create
proc_subproc.
(child_info_spawn::child_info_spawn): Ditto.
* sigproc.cc (child_info::child_info): Ditto.
(child_info_spawn::child_info_spawn): Ditto.
(child_info::sync): Use passed in pid and HANDLE.
* fork.cc (fork_parent): Reflect additional arguments required for
child_info::sync.
* hookapi.cc (hook_or_detect_cygwin): Rename.  Change so that NULL 'fn'
argument just returns "true", indicating that program uses cygwin1.dll.
* spawn.cc (av::win16_exe): New element.
* spawn.cc (av::iscygwin): New element.
(av::fixup): New function.
(spawn_guts): Protect against SEGV.  Use fixup function to detect when it is
safe to wait for a spawned (as opposed to an execed) program.  Reflect changes
in child_info::sync arguments.
* external.cc (cygwin_internal): Reflect function renaming to
hook_or_detect_cygwin.
* cygheap.cc (cygheap_fixup_in_child): Close handle after debug fixup has been
done to prevent false positives in handle collision.
* exceptions.cc (try_to_debug): Notify debugger if already being debugged.
2005-07-17 00:51:03 +00:00
Christopher Faylor cd929277d6 fix whitespace 2005-07-16 22:01:50 +00:00
Earnie Boyd 46deb14e85 2005-07-13 Benoit Blanchon <bblanchon@users.sourceforge.net>
* include/wingdi.h (SHADEBLENDCAPS, SB_NONE, SB_CONST_ALPHA,
	SB_PIXEL_ALPHA, SB_PREMULT_ALPHA, SB_GRAD_RECT, SB_GRAD_TRI,
	COLORMGMTCAPS, CM_NONE, CM_DEVICE_ICM, CM_GAMMA_RAMP,
	CM_CMYK_COLOR): Define.
2005-07-13 23:16:19 +00:00
Joshua Daniel Franklin 12d53ce6a0 2005-07-10 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* cygwinenv.sgml: Update tty section to mention rxvt and xterm.
	* how-programming.texinfo: Update GPL section of VS FAQ.
	* how-using.texinfo: Expand FAQ about out of date pacakages.
	* setup-net.sgml: Add troubleshooting setup.exe section.
2005-07-10 19:39:31 +00:00
Christopher Faylor f79359a5bc * path.cc (mount): Only check win32_path when we know we need it. 2005-07-09 17:15:38 +00:00
Corinna Vinschen 4cc9a82e3e * cygwin.din (getline): Export.
(getdelim): Export.
	* include/sys/stdio.h (getline): Replace macro with function prototype.
	(getdelim):  Likewise.
	* include/cygwin/version.h: Bump API minor number.
2005-07-09 08:22:39 +00:00
Dimitri Papadopoulos 2413281e13 * include/objsafe.h: New file. 2005-07-08 13:37:31 +00:00
Corinna Vinschen 57d80429b2 * how-using.texinfo: Fix typos. 2005-07-08 08:42:40 +00:00
Corinna Vinschen 2f5de4af55 * cygwin.din (__getline): Export.
(__getdelim): Export.
	* include/sys/stdio.h (getline): Define as __getline.
	(getdelim): Define as __getdelim.
	* include/cygwin/version.h: Bump API minor number.
2005-07-08 08:24:13 +00:00
Christopher Faylor 0c55f6ed60 Eliminate (void) cast on standalone function calls throughout. 2005-07-06 20:05:03 +00:00
Christopher Faylor 27eb5dbc70 * cygcheck.cc (track_down, cygcheck): Return true on success.
(main): Reflect cygcheck failures in exit status.
2005-07-05 21:41:37 +00:00
Christopher Faylor d3b593aa44 * dcrt0.cc (cygwin_exit): Mark as "noreturn".
* sigproc.cc (child_info::ready): Don't signal parent that we are a cygwin
process if we are dynamically loaded.
2005-07-05 20:20:48 +00:00
Christopher Faylor 57000a5d5c * malloc.cc: Update to version 2.8.2. 2005-07-05 15:11:49 +00:00
Corinna Vinschen 4ae72e8c0e * fhandler_tape.cc (fhandler_dev_tape::close): Don't do "extra stuff"
when we know we're execing.
2005-07-05 07:28:52 +00:00
Christopher Faylor 2f9ae2ed94 Change foo (void) to foo () for all c++ functions throughout. Remove all
fhandler_*::dump functions throughout.
* fhandler.h (fhandler_dev_mem::close): Remove pass-through function in favor
of virtual method.
(handler_dev_raw::close): Ditto.
(fhandler_dev_clipboard::fixup_after_exec): New method.
* fhandler_dev_mem.cc (fhandler_dev_mem::close): Eliminate pass through
* fhandler_dev_raw.cc (fhandler_dev_raw::close): Ditto.
* fhandler_clipboard.cc (fhandler_dev_clipboard::close): Don't go to extra
effort when execing.
(fhandler_dev_clipboard::fixup_after_exec): New function.
* fhandler_console.cc (fhandler_console::close): Don't do "extra stuff" when we
know we're execing.
* fhandler_disk_file.cc (fhandler_disk_file::close): Ditto.
* fhandler_dsp.cc (fhandler_dev_dsp::close): Ditto.
* fhandler_fifo.cc (fhandler_fifo.cc::close): Ditto.  function in favor of base
function.
* fhandler_random.cc (fhandler_dev_random::close): Ditto.
* fhandler_registry.cc (fhandler_registry::close): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::close): Ditto.
* fhandler_virtual.cc (fhandler_virtual::close): Ditto.
* pinfo.cc (proc_waiter): Remove unneeded hExeced declaration.
* sigproc.cc: Ditto.
* winsup.h (hExeced): Define here.
* fhandler_virtual.cc (fhandler_virtual::fixup_after_exec): Just call close()
to reinitialize things to known state.
2005-07-05 03:16:46 +00:00
Christopher Faylor 26edeb6a7f * cygtls.h (_cygtls): Perform minor reformatting.
* winsup.h (close_all_files): Reflect argument change.
* dtable.cc (close_all_files): Ditto.
* dtable.h: Ditto.
* fhandler.h: Ditto.
* spawn.cc (spawn_guts): Move close_all_files back to its original location in
first P_OVERLAY test but use argument denoting that handles are only supposed
to be closed, not released (more work to be done here).
* syscalls.cc (close_all_files): Take an argument denoting whether to release
closed files or not.
* path.cc (symlink): Change argument names to reflect linux man page.
(symlink_worker): Ditto.  Also appropriately set ENOENT for empty strings.
2005-07-05 02:05:07 +00:00
Christopher Faylor a64b8b2dec ARGH. Check in previous uncommitted-but-ChangeLog'ed entry. 2005-07-05 02:02:23 +00:00
Corinna Vinschen 0740b418fc * cygheap.h (struct init_cygheap): Delete cygwin_regname member.
* external.cc (cygwin_internal): Use cygpsid::get_id for
	CW_GET_UID_FROM_SID and CW_GET_GID_FROM_SID.
	Turn CW_SET_CYGWIN_REGISTRY_NAME and CW_GET_CYGWIN_REGISTRY_NAME
	into noops.
2005-07-04 08:44:06 +00:00
Christopher Faylor aaa4ee1b89 * thread.cc (pthread_mutex::init): Remove unneeded efault/mutex check. 2005-07-03 04:05:00 +00:00
Christopher Faylor 9d2a12f47a add missing ChangeLog entries 2005-07-03 03:44:56 +00:00