DJ Delorie
5b9a5e6ca3
* sh.h (R_SH_SWITCH8, R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
...
R_SH_LOOP_START,R_SH_LOOP_END): Move to "reserved" spaces.
(R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
R_SH_PSHA, R_SH_PSHL): New.
* elf32-sh.c (sh_elf_howto_table): R_SH_SWITCH8,
R_SH_GNU_VTINHERIT, R_SH_GNU_VTENTRY,
R_SH_LOOP_START,R_SH_LOOP_END moved to "reserved" spaces,
R_SH_DIR16, R_SH_DIR8, R_SH_DIR8UL, R_SH_DIR8UW, R_SH_DIR8U,
R_SH_DIR8SW, R_SH_DIR8S, R_SH_DIR4UL, R_SH_DIR4UW, R_SH_DIR4U,
R_SH_PSHA, R_SH_PSHL added.
(sh_reloc_map): Add R_SH_DIR16 and R_SH_DIR8.
(sh_elf_relocate_section): Support new relocs.
2003-09-24 02:27:56 +00:00
Danny Smith
f610c4f993
* include/inttypes.h: Include _mingw.h.
2003-09-24 01:06:09 +00:00
Danny Smith
8852e9c5f1
* include/_mingw.h (__CRT_INLINE): Define.
...
* include/ctype.h: Replace 'extern inline' with __CRT_INLINE,
throughout
* include/inttypes.h: Likewise.
* include/math.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
2003-09-24 00:41:01 +00:00
Dimitri Papadopoulos
92694c7a96
This fixes regression in <winable.h> introduced by previous change.
2003-09-23 15:11:12 +00:00
Dimitri Papadopoulos
729d289070
New CHILDID_SELF constant.
...
More duplicates in <winuser.h> and <winable.h>.
2003-09-23 09:09:50 +00:00
Dimitri Papadopoulos
dbb760bdb8
Bring back OBJID_* and GUITHREADINFO constants in <winuser.h>.
...
Some constants and structures are duplicated in <winable.h> and <winuser.h>.
Add GUI_* and new KEYEVENTF_* constants.
2003-09-23 08:51:57 +00:00
Dimitri Papadopoulos
679ff6d4fb
add some missing constants
2003-09-23 07:35:54 +00:00
Christopher Faylor
3400b4fc44
* dcrt0.cc (do_exit): Eliminate "C" linkage. Call events_terminate early.
...
(exit_states): Move out of source file into header file.
* winsup.h: Move exit_states here. Remove "C" linkage from do_exit
declaration.
* debug.cc (lock_debug): Remove explicit (and incorrect) external for
exit_state.
* sigproc.cc (sig_dispatch_pending): Don't flush signals if exiting.
2003-09-23 04:02:07 +00:00
Danny Smith
d92d731fa5
2003-09-22 Roland Schwingel <rolandschwingel@users.sourceforge.net>
...
* mingwex/dirent.c (_topendir): Allocate enough memory for
DIR struct in UNICODE case too.
2003-09-22 21:32:52 +00:00
Andrew Cagney
c7a8c97efb
2003-09-22 Andrew Cagney <cagney@redhat.com>
...
* floatformat.h (struct floatformat): Add field "is_valid".
2003-09-22 Andrew Cagney <cagney@redhat.com>
* floatformat.c (floatformat_i387_ext_is_valid): New function.
(floatformat_always_valid): New function.
(floatformat_i387_ext): Initialize new "is_valid" field to
"floatformat_i387_ext_is_valid".
(floatformat_ieee_single_little): Initialize "is_valid" field to
floatformat_always_valid.
(floatformat_ieee_double_big): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_little): Ditto.
(floatformat_ieee_double_littlebyte_bigword): Ditto.
(floatformat_i960_ext): Ditto.
(floatformat_m88110_ext): Ditto.
(floatformat_m88110_harris_ext): Ditto.
(floatformat_arm_ext_big): Ditto.
(floatformat_arm_ext_littlebyte_bigword): Ditto.
(floatformat_ia64_spill_big): Ditto.
(floatformat_ia64_spill_little): Ditto.
(floatformat_ia64_quad_big): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_ia64_quad_little): Ditto.
(floatformat_is_valid): Call "is_valid".
2003-09-22 17:41:02 +00:00
Daniel Jacobowitz
eedd1e14ab
* configure.in: Pass a computed --program-transform-name
...
to subconfigures.
* configure: Regenerated.
2003-09-21 19:31:18 +00:00
Nathanael Nerode
0487be9a1f
* Makefile.tpl: Don't pass down obsolete ENQUIRE variable.
...
* Makefile.in: Regenerate.
* Makefile.tpl: Don't pass (unused) DLLTOOL or WINDRES to gcc.
* Makefile.in: Regenerate.
2003-09-20 21:19:02 +00:00
Christopher Faylor
7ed1b504b6
* kill.cc (main): Allow negative pids (indicates process groups).
2003-09-20 20:24:33 +00:00
Christopher Faylor
0199487e6a
* spawn.cc (pthread_cleanup): New struct.
...
(do_cleanup): New function.
(spawn_guts): Initialize struct for pthread_cleanup handling to ensure proper
restoration of signals if/when thread is cancelled. Restore settings using
pthread_cancel_pop.
2003-09-20 19:51:48 +00:00
Christopher Faylor
5ab307ccfd
* include/cygwin/version.h: Bump DLL minor number to 6.
2003-09-20 03:15:57 +00:00
Christopher Faylor
370b1173b0
* thread.h (__reent_t::init_clib): Declare new function.
...
* thread.cc (__reent_t::init_clib): Define new function.
(pthread::thread_init_wrapper): Use __reent_t::init_clib to init local clib
storage and set std{in,out,err} appropriately.
2003-09-20 02:43:18 +00:00
Christopher Faylor
bc54734d15
fix accidental checkin
2003-09-20 00:43:33 +00:00
Christopher Faylor
d1fb625d2b
* syscalls.cc (system): Strip signal considerations from here so that they are
...
not inherited by a child process.
* spawn.cc (spawn_guts): Handle system() signal stuff here.
* winsup.h (_P_SYSTEM): Define.
2003-09-20 00:31:13 +00:00
Corinna Vinschen
41946df611
* fhandler_tty.cc (fhandler_pty_master::process_slave_output):
...
Handle buf == NULL as flushing the buffer.
(fhandler_tty_slave::read): Handle ptr == NULL as flushing the buffer.
(fhandler_tty_slave::tcflush): Implement input queue flushing by
calling read with NULL buffer.
(fhandler_pty_master::tcflush): Ditto, calling process_slave_output.
* termios.cc (tcflush): Check for legal `queue' value. Return
EINVAL otherwise.
2003-09-18 18:54:48 +00:00
Christopher Faylor
b1e00863f3
* parse_pe.cc (exclusion::sort_and_check): Make error message a little more
...
explicit and ignore (hopefully) harmless region overlap.
2003-09-18 01:46:18 +00:00
Christopher Faylor
f7f542063b
* syscalls.cc (gethostid): Add lpFreeBytesAvailable argument to
...
GetDiskFreeSpaceEx call since NT4 requires it.
2003-09-17 21:47:12 +00:00
Danny Smith
cb16ce2c2e
* include/winuser.h (UpdateLayeredWindow): Protect against NOGDI.
...
Thanks to Will Levine <willll@users.sourceforge.net>
2003-09-17 20:41:53 +00:00
Daniel Jacobowitz
1de0716442
* configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): Fix
...
quoting.
* configure: Regenerated.
2003-09-17 20:03:04 +00:00
Christopher Faylor
11dcd1546f
* fhandler_process.cc (fhandler_process::fill_filebuf): Open pinfo with
...
PID_MAP_RW.
* sigproc.cc (talktome): Ditto for winpids.
2003-09-17 02:10:13 +00:00
Christopher Faylor
9ee691211b
fix stupid typo
2003-09-17 01:43:27 +00:00
Christopher Faylor
deb648cc8b
* pinfo.h (winpids::pid_access): New element.
...
(winpids::winpids): Rejigger to set pinfo_access.
* pinfo.cc (winpids::add): Try to open shared memory region with supplied
pinfo_access first, then default to readonly.
* fhandler_termios.cc (tty_min::kill_pgrp): When getting list of pids to work
with, suggest opening with PID_MAP_RW.
* signal.cc (kill_pgrp): Ditto.
* sigproc.cc (sig_send): Perform a write check on todo prior to attempting to
increment it. Return EACCES if we can't write to it.
2003-09-17 01:15:56 +00:00
Corinna Vinschen
1498189ca8
* cygheap.cc (cygheap_user::set_saved_sid): Rename from set_orig_sid.
...
* cygheap.h (class cygheap_user): Rename orig_psid, orig_uid and
orig_gid to saved_psid, saved_uid and saved_gid respectively.
Rename methods orig_sid and set_orig_sid to saved_sid and set_saved_sid
respectively.
* sec_helper.cc (sec_acl): Accomodate above changes.
* spawn.cc (spawn_guts): Ditto.
* uinfo.cc (uinfo_init): Ditto.
2003-09-16 09:24:52 +00:00
Christopher Faylor
c429c346d8
fix typo
2003-09-16 03:59:35 +00:00
Christopher Faylor
2bfdb22e23
* getopt.cc (opterr): Reinstate initialization.
...
(optind): Ditto.
(optopt): Ditto.
* pinfo.cc: Include cygheap.h or suffer compile error.
* shared.h: Reset magic number.
2003-09-16 03:39:55 +00:00
Christopher Faylor
8ec37f2168
* exceptions.cc (sig_handle_tty_stop): Fix boneheaded mistake by using correct
...
check for parent state rather than inverted check.
2003-09-16 03:07:27 +00:00
Andrew Cagney
8c6fcfebbf
Index: include/ChangeLog
...
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.h (floatformat_to_double): Make input buffer constant.
(floatformat_from_double, floatformat_is_valid): Ditto.
Index: libiberty/ChangeLog
2003-09-15 Andrew Cagney <cagney@redhat.com>
* floatformat.c (get_field): Make "data" constant.
(floatformat_is_valid, floatformat_to_double): Make "from"
constant, fix casts.
(floatformat_from_double): Make "from" constant.
2003-09-16 01:47:53 +00:00
Pierre Humblet
c61ada9bd3
2003-09-15 Pierre Humblet <pierre.humblet@ieee.org>
...
* security.h (__sec_user): Add "access2" argument.
(sec_acl): Add "original" and "access2" arguments.
(sec_user): Add "sid2" and "access2" argument. Remove dependence on
allow_ntsec.
(sec_user_nih): Ditto.
* sec_helper.cc (__sec_user): Add "has_security" test.
Call sec_acl with new arguments, letting it handle original_sid.
(sec_acl): Add "original" and "access2" arguments. Handle original_sid
depending on flag but avoiding duplicates. Use "access2" for sid2.
* pinfo.cc (pinfo::init): Use security attributes created by sec_user
when creating the mapping.
* security.cc (create_token): Adjust arguments in call to sec_acl.
Call sec_user instead of __sec_user.
* syscall.cc (seteuid32): Adjust arguments in call to sec_acl. Remove
now unnecessary test. Remove useless conversions to psid.
* dcrt0.cc (dll_crt0_1): Call cygsid::init before pinfo_init.
2003-09-16 00:45:50 +00:00
Andrew Cagney
a9993197f2
2003-09-15 Andrew Cagney <cagney@redhat.com>
...
* floatformat.h (struct floatformat): Make "exp_bias" signed.
2003-09-15 21:28:56 +00:00
Daniel Jacobowitz
80a45e340c
* floatformat.h (floatformat_is_valid): Add prototype.
2003-09-15 20:13:45 +00:00
Earnie Boyd
7fe8e90299
* include/_mingw.h: Increment version to 3.2.
...
* Makefile.in: Ditto.
2003-09-15 15:21:53 +00:00
Earnie Boyd
42f4ef1131
* include/w32api.h: Increment version to 2.5.
...
* Makefile.in: Ditto.
2003-09-15 12:05:40 +00:00
Danny Smith
b639ac2b93
2003-09-15 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ws2spi.h (LPWSPBIND): Change CONST LPSOCKADDR to
const struct sockaddr*.
(LPWSPCONNECT): Likewise.
(LPWSPJOINLEAF): Likewise.
(LPWSPSENDTO): Likewise.
Tanks to Sebastian Nowak <snowak1@users.spourceforge.net>
2003-09-15 Filip Navara <xnavara@volny.cz>
* include/commctrl.h (TCIS_BUTTONPRESSED, TCIS_HIGHLIGHTED):
Add definitions.
2003-09-15 Sascha Brawer <brawer@dandelis.ch>
* include/winuser.h (DISPLAY_DEVICE_ATTACHED_TO_DESKTOP,
DISPLAY_DEVICE_PRIMARY_DEVICE, DISPLAY_DEVICE_MIRRORING_DRIVER,
DISPLAY_DEVICE_VGA_COMPATIBLE, DISPLAY_DEVICE_REMOVABLE,
DISPLAY_DEVICE_MODESPRUNED): Define constants.
(ChangeDisplaySettingsEx[A,W]): Add prototype.
* lib/user32.def (ChangeDisplaySettingsEx[A,W]): Add exports.
(EnumDisplayDevices[A,W]): Likewise.
2003-09-15 Danny Smith <dannysmith@users.sourceforge.net>
* include.commctrl.h (_WIN32_WINNT): Change _WXP to 0x0501,
throughout.
2003-09-15 10:21:57 +00:00
Michael Chastain
8818daa212
2003-09-12 Michael Chastain <mec@shout.net>
...
Fix PR gdb/857.
* src-release (do-proto-topleve): Remove junk files
intl/config.cache, intl/config.status,
intl/config.h, intl/stamp-h.
2003-09-14 23:16:45 +00:00
Andrew Cagney
ce1c8621c9
2003-09-14 Andrew Cagney <cagney@redhat.com>
...
* src-release (dejagnu.tar): New target.
(dejagnu.tar.bz2): Recursively call "gdb-taz" rule.
(do-djunpack): Use $(PACKAGE) for the package name.
2003-09-14 18:12:21 +00:00
Christopher Faylor
de9e39f701
* Makefile.in: Make malloc_wrapper -fomit-frame-pointer.
...
* cygwin.din: Remove extraneous mallinfo definition.
* dcrt0.cc (quoted): Use strechr for efficiency.
* fhandler.cc (fhandler_base::write): Correctly use get_output_handle rather
than get_handle.
(fhandler_base::lseek): Use method for accessing name in debug output.
2003-09-14 01:58:03 +00:00
Christopher Faylor
e306c058c7
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix potential off-by-one
...
problem when first file in a directory is a directory.
2003-09-14 00:07:50 +00:00
Christopher Faylor
a98a001169
* kill.c (forcekill): Wait for process to terminate even if TerminateProcess
...
says it failed.
2003-09-13 18:20:52 +00:00
Christopher Faylor
276448cf67
* include/sys/cygwin.h: Rename PID_UNUSED to PID_MAP_RW.
...
* pinfo.cc (pinfo_init): Initialize myself->gid.
(pinfo::init): Create the "access" variable, set it appropriately and use it to
specify the requested access.
* exceptions.cc (sig_handle_tty_stop): Add PID_MAP_RW in pinfo parent.
* signal.cc (kill_worker): Ditto for pinfo dest.
* syscalls.cc (setpgid): Ditto for pinfo p.
2003-09-13 17:14:15 +00:00
Christopher Faylor
4442ed9171
* include/cygwin/version.h: Bump DLL minor number to 5.
2003-09-13 17:12:01 +00:00
Danny Smith
52bce3938f
* include/olectl.h (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
...
LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF,LPPOINTF, CONTROLINFO,
LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
PROPPAGEINFO, LPPROPPAGEINFO): Remove from here ...
* include/ocidl.h: (TEXTMETRICOLE, LPERRORLOG, LPPROPERTYBAG,
LPENUMCONNECTIONPOINTS, LPCONNECTIONPOINT, LPENUMCONNECTIONS,
LPPROPERTYPAGESITE, LPFONT, LPFONTDISP, OLE_COLOR, HIMETRIC,
OLE_YPOS_HIMETRIC, OLE_XSIZE_HIMETRIC, OLE_YSIZE_HIMETRIC,
OLE_YSIZE_CONTAINER, OLE_HANDLE, POINTF, LPPOINTF, CONTROLINFO,
LPCONTROLINFO, CONNECTDATA, LPCONNECTDATA, LICINFO, LPLICINFO,
CAUUID, LPCAUUID, CALPOLESTR, LPCALPOLESTR, CADWORD, LPCADWORD,
PROPPAGEINFO, LPPROPPAGEINFO): ... to here, for consistency
with documentation.
* include/olectl.h: Do #include <ocidl.h>.
* include/ocidl.h: Don't #include <olectl.h>.
2003-09-13 12:05:08 +00:00
Danny Smith
77780db3bd
* include/winuser.h (_WIN32_WINNT, _WIN32_WINDOWS, WINVER):
...
Change guards to use numeric constants, throughout.
2003-09-13 08:13:30 +00:00
Christopher Faylor
b0309a1658
* thread.cc (MTinterface::fixup_after_fork): Remove code which potentially
...
overwrote _impure pointer with contents of thread which invoked fork since this
eliminates important information like the pointer to the atexit queue.
2003-09-13 01:21:32 +00:00
Christopher Faylor
21d7ec1928
* fhandler_disk_file.cc (path_conv::ndisk_links): Fix problem where search
...
characters overwrote the path instead of being tacked on the end.
2003-09-12 20:17:28 +00:00
Christopher Faylor
fb3dd71676
* dcrt0.cc (_dll_crt0): Accommodate breaking apart of early_stuff_init.
...
* exceptions.cc (early_stuff_init): Delete.
(init_console_handler): New function - top half of early_stuff_init.
(init_global_security): New function - bottom half of early_stuff_init.
(sig_handle): Avoid special hExeced test for SIGINT. Just terminate the
captive process.
(signal_exit): Add debugging output.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't allocate a console if one
already seems to exist. Properly initialize ctrl-c handling if we do allocate
a console.
* winsup.h (early_stuff_init): Delete declaration.
(init_console_handler): New declaration.
(init_global_security): New declaration.
2003-09-12 06:41:53 +00:00
Christopher Faylor
3a25635489
* Makefile.in: Tweak mingw libz.a detection to make it more reliably detect
...
when libz.a is not available.
2003-09-12 01:51:21 +00:00