Christopher Faylor
6e8cac2638
* include/sys/cdefs.h (__CONCAT): Define.
...
* include/elf.h: New file.
* include/sys/elf32.h: Ditto.
* include/sys/elf64.h: Ditto.
* include/sys/elf_common.h: Ditto.
* include/sys/elf_generic.h: Ditto.
2005-08-08 15:00:39 +00:00
Christopher Faylor
2e82c9355f
* cygwin.sc: Use simpler method to align .cygheap.
...
* dllfixdbg: Just copy .stab and .stabstr sections when making cygwin1.dbg,
rather than relying on objcopy to keep only the debug sections since objcopy
seems to get it wrong.
* dtable.cc (build_fh_pc): Check setting fh to fhandler_nodevice for NULL, too.
2005-08-08 13:53:05 +00:00
Corinna Vinschen
a8b939adc7
* ftw.c: Include winsup.h.
...
* nftw.c: Ditto.
* include/ftw.h: Guard declarations appropriately.
2005-08-08 13:39:56 +00:00
Danny Smith
5b3ab258e5
* moldname.def.in (sleep, beep, seterrormode): Remove.
2005-08-08 10:22:20 +00:00
Corinna Vinschen
e6ae6cd338
* Makefile.in (DLL_OFILES): Add fts.o, ftw.o, nftw.o.
...
* cygwin.din: Export fts_children, fts_close, fts_get_clientptr,
fts_get_stream, fts_open, fts_read, fts_set, fts_set_clientptr,
ftw, nftw.
* fts.c: New file, imported from FreeBSD.
* ftw.c: Ditto.
* nftw.c: Ditto.
* include/fts.h: Ditto.
* include/ftw.h: Ditto.
* include/cygwin/version.h: Bump API minor number.
2005-08-08 09:45:42 +00:00
Christopher Faylor
6a7bea70f0
* Makefile.in (dtable_CFLAGS): Use -fomit-frame-pointer and -fcheck-new.
...
* cygheap.cc (cmalloc): Only emit system_printf warnings on failure if
DEBUGGING.
(crealloc): Ditto.
(ccalloc): Ditto.
* dtable.cc (build_fh_name): Treat NULL return from cnew as indicative of
EMFILE condition.
(build_fh_dev): Ditto.
(dtable::dup_worker): Handle NULL return from build_fh_pc.
(dtable::vfork_child_dup): Trust dup_worker to set errno.
* fhandler.h (fhandler_base::new): Mark as nothrow.
2005-08-08 04:06:07 +00:00
Christopher Faylor
cbda22eb63
* dllfixdbg: New perl script.
...
* configure.in: Detect objcopy, objdump, strip.
* configure: Regenerate.
* Makefile.in: Pass target objcopy/objdump to new dllfixdbg script. Remove
previous perl check.
* cygwin.sc: Add .gnu_debuglink_overlay section for eventual replacement with
.gnu_debuglink section. Revert move of cygheap to end of image.
2005-08-08 02:27:43 +00:00
Corinna Vinschen
1e0cb9ee0a
* Makefile.in: Allow previous patch to work in a 64 bit environment.
2005-08-07 09:21:09 +00:00
Christopher Faylor
45a2f09e55
revert erroneous checkin
2005-08-07 02:38:46 +00:00
Christopher Faylor
82eaabf521
* Makefile.in: Warn when end of cygheap is not on 64k boundary.
...
* cygwin.sc: Try harder to ensure that cygheap is on a 64k boundary. Move
cygheap to end of image to stop interference from unstripped debug regions.
2005-08-07 02:38:13 +00:00
Christopher Faylor
244f5a27a6
* include/endian.h: Move everything into this file and define things more like
...
linux.
* include/cygwin/types.h: Include endian.h.
* include/sys/dirent.h: Define DT_* types and conversion macros.
* pinfo.cc (pinfo::init): Remove special handling for PID_ALLPIDS and execed
code, even though it probably still isn't quite right.
2005-08-06 23:00:06 +00:00
Joshua Daniel Franklin
2041777dee
Update to switch FAQ from texinfo to DocBook.
2005-08-06 05:14:41 +00:00
Corinna Vinschen
7d7e7a21b1
* thread.cc (pthread::create(3 args)): Make bool.
...
(pthread_null::create): Ditto.
(pthread::create(4 args)): Check return of inner create rather than
calling is_good_object().
* thread.h: Ditto.
2005-08-05 16:14:41 +00:00
Corinna Vinschen
c8f07ce787
* fhandler_tty.cc (fhandler_tty_slave::tcflush): Return either 0 or -1.
2005-08-05 16:11:21 +00:00
Corinna Vinschen
8cba692063
* thread.cc (pthread_cond_timedwait): Check abstime for validity
...
according to SUSv3. Rewrite timeout check and waitlength calculation
to avoid overflow problems.
2005-08-05 11:31:33 +00:00
Corinna Vinschen
bb002a4968
* mount.cc (longopts): Fix typo which disallows --options option.
2005-08-03 09:23:39 +00:00
Corinna Vinschen
723d64e667
* include/sys/termios.h: Define TIOCMBIS and TIOCMBIC.
...
* fhandler.h (class fhandler_serial): Declare switch_modem_lines.
* fhandler_serial.cc (fhandler_serial::switch_modem_lines): New
static function to set or clear DTR and/or RTS.
(fhandler_serial::ioctl): Use switch_modem_lines for TIOCMSET
and new TIOCMBIS and TIOCMBIC.
* include/cygwin/version.h: Bump API minor number.
2005-08-02 09:17:15 +00:00
Christopher Faylor
88c5a50f9f
* fhandler_disk_file.cc (fhandler_base::pread): Don't move file offset pointer
...
after I/O.
(fhandler_base::pwrite): Ditto.
2005-07-29 17:26:10 +00:00
Christopher Faylor
ca48709996
white space
2005-07-29 17:06:57 +00:00
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