Nick Clifton
6d7b197b57
* COPYING3: New file. Contains version 3 of the GNU General Public License.
* COPYING3.LIB: New file. Contains version 3 of the GNU Lesser General Public License.
19 years ago
Corinna Vinschen
822036b6c9
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Move setting
cfd->nohandle where it won't crash.
19 years ago
Corinna Vinschen
77ee880504
* cygheap.h (cygheap_user::curr_imp_token): Rename from current_token.
Accommodate changge throughout Cygwin.
(cygheap_user::imp_token): Rename from token. Accommodate changge
throughout Cygwin.
(rcygheap_user::eimpersonate): Use primary token for impersonation.
* grp.cc (internal_getgroups): Use primary impersonation token when
impersonated.
* security.h (_push_thread_privilege): Use primary impersonation token
when impersonated.
19 years ago
Christopher Faylor
6f76c68713
* init.cc (in_dllentry): Delete.
(dll_entry): Remove assignment to deleted variable.
* winsup.h (in_dllentry): Delete declaration.
* exceptions.cc (inside_kernel): Use another method to see if we are in
dll_entry phase.
19 years ago
Christopher Faylor
d409af3661
* init.cc (in_dllentry): Make NO_COPY to avoid spurious false positives.
19 years ago
Eric Blake
08146e5adb
Fix fflush issues.
* libc/stdio/fflush.c (_fflush_r): New function.
(fflush): Fix reentrancy and large offset behavior.
* libc/include/stdio.h (_fflush_r): Add prototype.
* libc/stdio/fclose.c (_fclose_r): All fflush callers changed.
* libc/stdio/freopen.c (_freopen_r): Likewise.
* libc/stdio/fseek.c (_fseek_r): Likewise.
* libc/stdio/ftell.c (_ftell_r): Likewise.
* libc/stdio/fvwrite.c (__sfvwrite_r): Likewise.
* libc/stdio/refill.c (__srefill_r): Likewise.
* libc/stdio/setvbuf.c (setvbuf): Likewise.
* libc/stdio/ungetc.c (_ungetc_r): Likewise.
* libc/stdio/vfprintf.c (__sbprintf): Likewise.
* libc/stdio/wbuf.c (__swbuf_r): Likewise.
* libc/stdio64/freopen64.c (_freopen64_r): Likewise.
* libc/stdio64/fseeko64.c (_fseeko64_r): Likewise. Defer to
32-bit version if not large file.
* libc/stdio64/ftello64.c (_ftello64_r): Likewise.
* libc/stdio64/tmpfile64.c (_tmpfile64_r): Avoid compile warning.
19 years ago
DJ Delorie
b71fb40215
merge from gcc
19 years ago
Kevin Buettner
73d309ce3e
* mep/fmax.ld, mep/gmap_default.ld, mep/min.ld, mep/simple.ld
(.gcc_except_table): Add pattern for .gcc_except_table.*.
19 years ago
Eric Blake
88c8888127
Documentation updates.
* libc/stdio/ungetc.c: Document ungetc.
* libc/stdio/Makefile.am (CHEWOUT_FILES): Sort, match current list
of files with documentation.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio/stdio.tex: Sort and update stdio documentation index.
19 years ago
Hans-Peter Nilsson
254860bcfd
* splay-tree.h (libi_uhostptr_t, libi_shostptr_t): Adjust types
work-a-round whitespace problem in gcc gengtype.
19 years ago
Bernd Schmidt
6e3117d51b
* configure.ac: Fix my previous change to really match GCC.
* configure: Regenerate.
19 years ago
Chris Sutcliffe
7e644d8aed
2007-07-12 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winuser.h (FE_FONTSMOOTHINGSTANDARD, FE_FONTSMOOTHINGCLEARTYPE):
Define.
19 years ago
Danny Smith
05694dc580
Changelog typo
19 years ago
Danny Smith
f2a9580699
* incude/wchar.h (_wsystem) Declare.
(_wputenv) Declare.
(_wgetenv): Declare.
(_wsearchenv): Declare.
(_wmakepath): Declare.
(_wsplitpath): Declare.
(_wfullpath): Declare.
* incude/stdlib.h (_wsystem) Declare.
(_wputenv, _wgetenv, _wsearchenv, _wmakepath, _wsplitpath, _wfullpath):
Move into _WSTDLIB_DEFINED guard.
* include/tchar.h (_tsystem): New UNICODE mapping define.
19 years ago
Danny Smith
0986f3e208
* include/winuser.h: (PBT_APMQUERYSUSPEND, PBT_APMQUERYSTANDBY,
PBT_APMQUERYSUSPENDFAILED, PBT_APMQUERYSTANDBYFAILED,
PBT_APMSUSPEND, PBT_APMSTANDBY, PBT_APMRESUMECRITICAL,
PBT_APMRESUMESUSPEND, PBT_APMRESUMESTANDBY, PBT_APMBATTERYLOW,
PBT_APMPOWERSTATUSCHANGE, PBT_APMOEMEVENT, PBT_APMRESUMEAUTOMATIC):
Sync with include/pbt.h.
19 years ago
Nick Clifton
359d9a27ca
Add support for building on a 64-bit Windows host.
19 years ago
Danny Smith
95d4361935
[mingw-Bugs-1751518]
* include/mshtml.h (IHTMLDocument2): Correct spelling of put_URL, get_URL.
[mingw-Bugs-1751565]
* include/basetyps.h (IID); Guard with __IID_DEFINED__
[mingw-Bugs-1751595]
* include/exdisp.h (DWebBrowserEvents2): Remove undocumented STDDISP
methods.
19 years ago
DJ Delorie
b301596e91
Merge from gcc:
2007-07-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Rewrite 'configure --help' strings to look nicer.
* configure: Regenerate.
2007-07-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* configure.ac: Add some missing m4 quotation.
* configure: Regenerate.
19 years ago
H.J. Lu
6fc4fe923a
2007-07-06 H.J. Lu <hongjiu.lu@intel.com>
* tls.m4 (GCC_CHECK_CC_TLS): New.
2007-07-05 Sebastian Pop <sebpop@gmail.com>
PR bootstrap/32622
* mh-x86omitfp (BOOT_CFLAGS): Add -fomit-frame-pointer,
don't reset its value.
19 years ago
Jeff Johnston
c4ccbcce6c
2007-07-11 Jeff Johnston <jjohnstn@redhat.com>
19 years ago
Danny Smith
7223b8cd03
[mingw-Bugs-1750898]
* include/mmsystem.h (MIXERCONTROL): Correct UNICODE mapping.
Thanks to Yuji Kuwabara <yujikuwabara at sf dot net>
19 years ago
Christopher Faylor
be1cabba23
* debug.cc (close_handle): Change debug output format slightly.
* dlfcn.cc (dlclose): Don't close handle returned from GetModuleHandle(NULL).
* fhandler.h (fhandler_pipe::create): Remove obsolete argument.
(fhandler_pipe::create): Ditto.
* fhandler.cc (fhandler_pipe::create): Ditto.
(fhandler_pipe::create): Ditto.
19 years ago
Christopher Faylor
99b0856099
* strace.cc (usage): Add missing description for -q.
19 years ago
Christopher Faylor
5c8891e962
* cygwin/strsig.cc (__signals): New macro.
(sys_sigabbrev): New array of signal strings, patterned after linux.
(siglist): Use __signals.
* cygwin/include/cygwin/signal.h (sys_sigabbrev): Define.
* cygwin/include/cygwin/version.h: Bump API minor version to 177.
* utils/Makefile.in (kill.exe): Remove reliance on libiberty.
* utils/kill.cc (strsigno): New function patterned after libiberty but using
newly exported cygwin array.
19 years ago
Roland McGrath
0c1207099c
.
19 years ago
Roland McGrath
83205b5188
2007-07-09 Roland McGrath <roland@redhat.com>
* bfdlink.h (struct bfd_link_info): Add member emit_note_gnu_build_id.
19 years ago
Roland McGrath
2dbc91dfc7
2007-07-09 Roland McGrath <roland@redhat.com>
* common.h (NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
19 years ago
Corinna Vinschen
281bd334ac
* dir.cc (closedir): Revert change from 2007-06-29.
* fhandler.h (dirent_valid_fd): Drop.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): If opening a
real dir, use the underlying fhandler to keep track of the directory
handle. In fdopendir case use original io_handle from fhandler. Use
fhandler's io_handle in subsequent directory functions throughout.
Create handle non-inheritable and set close-on-exec flag.
(readdir_get_ino): Drop dirent_isroot case.
(fhandler_disk_file::readdir): Handle dirent_isroot case here.
(fhandler_disk_file::rewinddir): Revert change from 2007-07-05. Use
NtClose instead of CloseHandle.
* fhandler_virtual.cc (fhandler_virtual::opendir): Drop adding
dirent_valid_fd flag. Set close-on-exec flag.
19 years ago
Nick Clifton
bffcbe34be
Import patch from FSF gcc sources to add support for building windmc tool.
19 years ago
Danny Smith
8d2008a317
[mingw-Bugs-1749305]
* lib/kernel32.def (GetConsoleProcessList@8): Add export.
19 years ago
Christopher Faylor
b85bae86cd
* Makefile.in (DLL_OFILES): Add newly-imported random.o. Eliminate reliance on
libiberty.
* random.cc: Import from FreeBSD. Modify for Cygwin environment.
* include/cygwin/stdlib.h (random): Reflect change in return value to be more
linux/freebsd-like.
(srandom): Ditto.
19 years ago
Christopher Faylor
f3c7a5c457
Add initial FreeBSD version of random.c
19 years ago
Christopher Faylor
e19e357043
update copyright
19 years ago
Christopher Faylor
92eab16eed
* fhandler.h (fhandler_base::write): Remove __stdcall decoration.
(fhandler_pipe::write): Ditto.
(fhandler_fifo::write): Ditto.
19 years ago
Christopher Faylor
d9c0e3ec35
Preliminary change to make fifos/pipes interruptible and fifos reliable.
* dtable.cc (dtable::find_fifo): Eliminate definition.
* dtable.h (dtable::find_fifo): Ditto for declaration.
* fhandler.cc (fhandler_base::raw_read): Remove pipe-specific stuff.
(fhandler_base::fhandler_base): Ditto.
(fhandler_base::close): Handle overlapped I/O structure if appropriate.
(fhandler_base::dup): Ditto.
(fhandler_base::fork_fixup): Ditto.
(fhandler_base::setup_overlapped): Define new function.
(fhandler_base::destroy_overlapped): Ditto.
(fhandler_base::wait_overlapped): Ditto.
(fhandler_base::read_overlapped): Ditto.
(fhandler_base::write_overlapped): Ditto.
* fhandler.h (fhandler_base::get_overlapped): Declare new function.
(fhandler_base::setup_overlapped): Ditto.
(fhandler_base::destroy_overlapped): Ditto.
(fhandler_base::wait_overlapped): Ditto.
(fhandler_base::read_overlapped): Ditto.
(fhandler_base::write_overlapped): Ditto.
(fhandler_base::get_guard): Eliminate.
(fhandler_pipe::*): Rework to eliminate most Win9x related cruft, removing many
variables and defining a new overlapped capability.
(fhandler_fifo::*): Ditto.
(fifo_state): Declare new enum.
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Remove old Win9x stuff.
Initialize overlapped handle to NULL.
(fhandler_fifo::set_use): Eliminate.
(fhandler_fifo::open_nonserver): Define.
(fhandler_fifo::open): Rework to use named pipes and overlapped I/O.
(fhandler_fifo::wait): Define new function to wait for named pipe connection.
(fhandler_fifo::read): Rework to use wait() and new overlapped I/O
functionality.
(fhandler_fifo::write): Ditto.
(fhandler_fifo::dup): Eliminate.
* pinfo.cc (commune_process): Remove fifo handling.
(_pinfo::commune_request): Ditto.
* pinfo.h (picom): Ditto.
* pipe.cc (fhandler_pipe::fhandler_pipe): Remove Win9x stuff. Initialize
overlapped handle to NULL.
(fhandler_pipe::open): Eliminate Win9x stuff.
(fhandler_pipe::set_close_on_exec): Eliminate.
(read_pipe): Eliminate.
(fhandler_pipe::close): Ditto.
(fhandler_pipe::fixup_after_exec): Ditto.
(fhandler_pipe::fixup_in_child): Ditto.
(fhandler_pipe::read): Rework to use overlapped I/O.
(fhandler_pipe::write): New function using overlapped I/O.
(fhandler_pipe::dup): Rework to eliminate Win9x stuff.
(fhandler_pipe::create_selectable): Rework to eliminate Win9x and use
overlapped I/O.
* select.cc (peek_pipe): Rework to eliminate Win9x stuff and use overlapped
I/O.
(fhandler_base::ready_for_read): Ditto.
19 years ago
Christopher Faylor
dee5588839
* path.cc (symlink_info::check_shortcut): Handle device "symlinks" specially -
don't posixify them.
19 years ago
Christopher Faylor
8581e92c51
* fhandler_disk_file.cc: White space.
* fhandler_proc.cc: Ditto.
* fhandler_virtual.cc: Ditto.
19 years ago
Christopher Faylor
7b44665a7b
* fork.cc: White space.
* net.cc: Ditto.
* posix_ipc.cc: Ditto.
19 years ago
Corinna Vinschen
a5a0080d9c
* times.cc (gettimeofday): Align definition to POSIX.
19 years ago
Corinna Vinschen
d2d9ce09b5
* cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm.
19 years ago
Corinna Vinschen
dec27025b2
* libc/include/wchar.h: Declare wcstol, wcstoll, wcstoul,
19 years ago
Corinna Vinschen
4cd2304ab6
* CYGWIN_LICENSE: Fix URL to world-wide offices.
19 years ago
Corinna Vinschen
de3f4565aa
* CYGWIN_LICENSE: Fix URL to open source definition.
19 years ago
Jeff Johnston
de229adb1a
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
19 years ago
Jeff Johnston
0be2bc94e7
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
19 years ago
Jeff Johnston
ba9af2d7ec
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
19 years ago
Nick Clifton
f5e9e255fd
Update tp GPLv3
19 years ago
H.J. Lu
bb04d5a999
2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
* lt~obsolete.m4: New. Import from 20070318 libtool.
19 years ago
Corinna Vinschen
64f50c2b3c
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missing
OBJ_INHERIT flag when creating OBJECT_ATTRIBUTES.
(fhandler_disk_file::rewinddir): Ditto.
19 years ago
Corinna Vinschen
3854c5c0d5
Check in missing cygwin.din change from 2007-06-29.
19 years ago