2118eee1ce* devices.in (dev_storage): Map /dev/clipboard to \Device\Null. * devices.cc: Regenerate. * fhandler.h (fhandler_dev_clipboard::open): Drop declaration. * fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Drop call to open. Set private members to 0 and call fhandler_base::dup. (fhandler_dev_clipboard::open): Remove so that default fhandler_base::open is used to open \Device\Null. (set_clipboard): Drop gratuitios call to RegisterClipboardFormatW. (fhandler_dev_clipboard::close): Call fhandler_base::close from here.
Corinna Vinschen
2013-10-25 16:16:50 +0000
f0b101007a* fhandler_clipboard.cc (fhandler_dev_clipboard::open): Drop gratuitios handling of membuffer. It's NULL anyway. (fhandler_dev_clipboard::lseek): Set membuffer to NULL after freeing it to avoid subsequent crashes when accessing invalid pointer.
Corinna Vinschen
2013-10-25 15:04:24 +0000
494c626414* devices.in (dev_storage): Map /dev/random and /dev/urandom to \Device\Null. * devices.cc: Regenerate. * fhandler.h (fhandler_dev_random::open): Drop declaration. (fhandler_dev_random::close): Ditto. (fhandler_dev_random::crypt_gen_random): Convert to static method. * fhandler_random.cc (fhandler_dev_random::open): Remove so that default fhandler_base::open is used to open \Device\Null. (fhandler_dev_random::close): Ditto. * fhandler_socket.cc (entropy_source): Delete. (fhandler_socket::af_local_set_secret): Remove entropy_source code and call fhandler_dev_random::crypt_gen_random directly instead.
Corinna Vinschen
2013-10-25 12:21:59 +0000
8ef76ab6f9* fhandler.h (fhandler_dev_zero::lseek): Convert to inline method. (class fhandler_dev_random): Drop dummy_offset. (fhandler_dev_random::lseek): Convert to inline method. (fhandler_dev_dsp::lseek): Ditto. * fhandler_dsp.cc (fhandler_dev_dsp::lseek): Drop here. * fhandler_random.cc (fhandler_dev_random::open): Drop setting dummy_offset. (fhandler_dev_random::lseek): Drop here. * fhandler_tape.cc (fhandler_dev_tape::lseek): Make no-op, but keep old code for reference. * fhandler_zero.cc (fhandler_dev_zero::lseek): Drop here.
Corinna Vinschen
2013-10-24 17:51:41 +0000
4ae84b2251* external.cc (fillout_pinfo): If start_time is 0, wait a while before returning the pinfo structure. * fhandler.cc (fhandler_base::open_setup): Convert from inline. * fhandler.h (fhandler_base::open_setup): Declare. * fhandler_console.cc (fhandler_console::open_setup): Always call fhandler_base::open_setup. * fhandler_tty.cc (fhandler_pty_slave::open_setup): Ditto. (fhandler_pty_master::open_setup): Ditto.
Christopher Faylor
2013-10-24 15:26:21 +0000
95ff6fc6da* devices.in (dev_storage): Map /dev/zero and /dev/full to \Device\Null. * devices.cc: Regenerate. * dtable.h (struct dtable): Make fhandler_base friend, rather than fhandler_disk_file. * fhandler.cc (fhandler_base::open_with_arch): Create unique id. (fhandler_base::cleanup): Call del_my_locks. (fhandler_base::fcntl): Handle F_GETLK, F_SETLK and F_SETLKW. * fhandler.h (fhandler_base::get_dev): Return real device number. (fhandler_base::set_unique_id): New inline method. (fhandler_disk_file::lock): Drop declaration. (fhandler_disk_file::get_dev): New method, return pc.fs_serial_number. (fhandler_dev_zero::open): Drop declaration. * fhandler_disk_file.cc (fhandler_disk_file::close): Move del_my_locks call to fhandler_base::open_with_arch. (fhandler_disk_file::fcntl): Move handling of locking commands to fhandler_base::fcntl. (fhandler_base::open_fs): Drop call to NtAllocateLocallyUniqueId. * fhandler_zero.cc (fhandler_dev_zero::open): Remove so that default fhandler_base::open is used to open \Device\Null. * flock.cc (fixup_lockf_after_exec): Finding a single fhandler is enough here. (fhandler_base::lock): Replace fhandler_disk_file::lock. Refuse to lock nohandle devices. Handle read/write test using POSIX flags. Explain why. Never fail on SEEK_CUR or SEEK_END, rather assume position 0, just as Linux. * net.cc (fdsock): Create unique id.
Corinna Vinschen
2013-10-24 09:41:17 +0000
72a386373e* libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typo in last change.
Hans-Peter Nilsson
2013-10-24 01:21:33 +0000
17b0a565b0merge from gcc
DJ Delorie
2013-10-23 22:37:24 +0000
158508011c* include /cygwin/config.h (_READ_WRITE_BUFSIZE_TYPE): Define.
Corinna Vinschen
2013-10-23 10:06:17 +0000
0c3d8e5ab5* libc/include/stdio.h (funopen): Change prototype of __readfn and __writefn parameter to match new definition of FILE's _read and _write methods. (_funopen_r): Ditto. (funopen): Ditto. (_funopen_r): Ditto. * libc/include/sys/config.h (_READ_WRITE_BUFSIZE_TYPE) Define as type int if not already defined. Add comment to explain. * libc/include/sys/reent.h: Include stddef.h. (struct __sFILE): Change type of last parameter in declaration of _read and _write methods to _READ_WRITE_BUFSIZE_TYPE. (struct __sFILE64): Ditto. * libc/stdio/local.h (__sread): Declare with last parameter set to _READ_WRITE_BUFSIZE_TYPE. (__seofread): Ditto. (__swrite): Ditto. (__swrite64): Ditto. * libc/stdio/fvwrite.c (__sfvwrite_r): Change type of local variables w and s to _READ_WRITE_RETURN_TYPE. * libc/stdio/fflush.c (__sflush_r): Change type of local variables n and t to _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE. Add local variables flags to keep _flags value. * libc/stdio/fmemopen.c (fmemreader): Align to above change. (fmemwriter): Ditto. * libc/stdio/fopencookie.c (fcreader): Ditto. (fcwriter): Ditto. * libc/stdio/funopen.c (funread): Ditto. (funwrite): Ditto. (funreader): Ditto. (funwriter): Ditto. * libc/stdio/open_memstream.c (memwriter): Ditto. * libc/stdio/stdio.c (__sread): Ditto. (__seofread): Ditto. (__swrite): Ditto. * libc/stdio64/stdio64.c (__swrite64): Ditto.
Corinna Vinschen
2013-10-23 10:04:43 +0000
27f8495dd5* fhandler.cc (fhandler_base::fstat): Drop FH_FULL case to align /dev/full permissions to Linux.
Corinna Vinschen
2013-10-23 09:58:12 +0000
015566ed00* fhandler.h (fhandler_base::cleanup): Mark as extern rather than inline. * fhandler_base.cc (fhandler_base::cleanup): Define. * fhandler_tty.cc (fhandler_pty_slave::cleanup): Call fhandler_base::cleanup. (fhandler_pty_master::cleanup): Ditto.
Christopher Faylor
2013-10-22 20:41:09 +0000
41f4cb7311.
Christopher Faylor
2013-10-19 14:37:29 +0000
bb0dc1c297* fhandler_termios.cc (tty_min::kill_pgrp): Don't send a signal to myself if this process is exiting.
Christopher Faylor
2013-10-18 20:56:19 +0000
71ba0d76ba* tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is an error condition.
Christopher Faylor
2013-10-18 20:07:35 +0000
340854dda8* fhandler_process.cc (format_process_ctty): Fix random content of /proc/$PID/ctty if the process has no controlling tty. Set to just "\n" instead.
Corinna Vinschen
2013-10-16 15:14:22 +0000
b03fa48d64* src-release (do-proto-toplevel): Support subdir-path-prefixed files in SUPPORT_FILES. (SIM_SUPPORT_DIRS): New variable. (sim.tar.bz2): New rule.
Hans-Peter Nilsson
2013-10-15 20:45:52 +0000
77e22783e42013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:40:02 +0000
50eb944a7c2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:39:19 +0000
8635dec1a52013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:38:32 +0000
0351747c132013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:37:37 +0000
7a75a3aa7c2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:36:16 +0000
6a0563a2e32013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:35:38 +0000
50588a20d42013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Joel Sherrill
2013-10-15 17:34:23 +0000
40c63f3ec0Formatting.
Joel Sherrill
2013-10-15 17:33:47 +0000
2cbd31fe26* autoload.cc (CryptAcquireContextW): Remove. (CryptGenRandom): Remove. (CryptReleaseContext): Remove. (SystemFunction036): Define. Add comment to explain that this is actually the RtlGenRandom function. * fhandler.h (class fhandler_dev_random): Drop crypt_prov member. (fhandler_dev_random::fhandler_dev_random): Define inline. (fhandler_dev_random::dup): Drop declaration. * fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Remove here. (fhandler_dev_random::crypt_gen_random): Use RtlGenRandom to drop dependency to old Crypto API. (fhandler_dev_random::read): Implement an enhanced version of reading random bytes from RtlGenRandom for the sake of a better /dev/random emulation. (fhandler_dev_random::close): Just return 0 since crypt_prov doesn't exisyt anymore. (fhandler_dev_random::dup): Drop entirely for the same reason.
Corinna Vinschen
2013-10-15 14:00:37 +0000
45ec2b422e* mmap.cc (mmap64): Convert pagesize from DWORD to size_t to avoid a rounding error for allocations beyond 4 Gigs.
Corinna Vinschen
2013-10-15 08:13:42 +0000
a4ec5053832013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
Chao-ying Fu
2013-10-14 18:41:17 +0000
85786b4a552013-10-14 Chao-ying Fu <Chao-ying.Fu@imgtec.com>
Chao-ying Fu
2013-10-14 18:37:05 +0000
639951dda72013-10-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Richard Earnshaw
2013-10-14 15:15:12 +0000
40ec00004b* Removed short_hand field from opcode table and refactored assembler/disassember accordingly. Testsuite checkout OK.
Sean Keys
2013-10-11 04:55:42 +0000
d8914394e32013-10-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
Jeff Johnston
2013-10-09 18:56:52 +0000
fc3f6ccafa* ntdll.h: Guard against new header files.
Christopher Faylor
2013-10-05 14:34:41 +0000
e828abfaea2013-10-03 Steve Ellcey <sellcey@mips.com>
Steve Ellcey
2013-10-03 21:51:52 +0000
680abbd9df2013-10-01 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2013-10-01 18:14:04 +0000
c7c1a1ca1b2013-10-01 Petr Hosek <phosek@chromium.org>
Jeff Johnston
2013-10-01 18:08:46 +0000
05a8ad9f722013-09-30 Steve Ellcey <sellcey@mips.com>
Jeff Johnston
2013-09-30 18:44:25 +0000
1dafbdd853[ARM] Add SPECS file for ARM validation model.
Marcus Shawcroft
2013-09-27 15:40:39 +0000
ade2acf274* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 26.
Christopher Faylor
2013-09-25 16:17:59 +0000
6aa3bb2f66* sigproc.h (hold_everything::ischild): Declare as reference. (hold_everything::hold_everything): Store address of caller's notion of "ischild".
Christopher Faylor
2013-09-25 15:58:45 +0000
1dc2c177f4* thread.cc (semaphore::_getvalue): Set *sval as appropriate. Set errno and return -1 on error.
Christopher Faylor
2013-09-25 14:44:45 +0000
99be2bc4ff2013-09-20 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> Greta Yorsh <greta.yorsh@arm.com>
Richard Earnshaw
2013-09-20 14:23:41 +0000
326776092f* libtool.m4 (_LT_ENABLE_LOCK <ld -m flags>): Remove non-canonical ppc host match. Support little-endian powerpc linux hosts. Regenerate binutils configure files.
Alan Modra
2013-09-20 09:51:24 +0000
796a9241b3* msp430/Makefile.in (SCRIPTS): Add intr_vectors.ld. (LIB_CRT): New. (CRT_OBJS): New. (all): Add dependency upon LIB_CRT. (install): Likewise. * msp430/msp430-sim.ld: Include intr_vectors.ld. KEEP crt code, lowtext code and tm_clone_table. Separate the noinit section from the .bss section. Allow for extended .debug_line sections. * msp430/msp430.ld: Likewise. * msp430/msp430F5438A-l.ld: Likewise. * msp430/msp430F5438A-s.ld: Likewise. * msp430/msp430xl-sim.ld: Likewise . * msp430/crt_movedata.S: New. * msp430/crt_bss.S: New. * msp430/intr_vectors.ld: New.
Nick Clifton
2013-09-18 07:38:13 +0000
37e1d792592013-09-17 Doug Gilmore <Doug.Gilmore@imgtec.com>
Steve Ellcey
2013-09-17 21:05:49 +0000
5bff53b4f72013-09-17 Joey Ye <joey.ye@arm.com>
Jeff Johnston
2013-09-17 20:36:08 +0000
9a2f0cff8f* dump_setup.cc (find_tar_ext): Generalize search for .tar extension, avoiding looking for specific compression types.
Christopher Faylor
2013-09-16 17:01:58 +0000
00fd23d50f2013-09-13 Joey Ye <joey.ye@arm.com>
Jeff Johnston
2013-09-13 16:51:48 +0000
44d6d539772013-09-12 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston
2013-09-12 22:05:43 +0000
45070312d4* libc/include/search.h (__compar_fn_t): Add typedef. (tdelete, tfind, tsearch): Use it. * libc/include/stdlib.h (__compar_fn_t): Add typedef. (bsearch, qsort): Use it.
Yaakov Selkowitz
2013-09-08 07:11:33 +0000
bffd6fb0e2* heap.cc (RAISEHEAP_SIZE): New definition. (user_heap_info::sbrk): Make failed commit an error condition again. Only reserve RAISEHEAP_SIZE sized chunk for further heap reservations by default.
Corinna Vinschen
2013-08-31 10:21:48 +0000
617b2bf99f.
Christopher Faylor
2013-08-30 21:33:43 +0000
6fc77d3e75* cygheap.h (user_heap_info::sbrk): Declare new function. (user_heap_info::init): Ditto. * heap.cc (user_heap_info::init): Rename from heap_init(). Avoid explictly using cygheap->user_heap. (sbrk): Use user_heap_info method via cygheap->user_heap. (user_heap_info::sbrk): Renamed from sbrk(). Eliminate explicit use of cygheap->user_heap. Change some pointer arithmetic to use (char *) for consistency. * shared.cc (shared_info::initialize): Change heap_init call to cygheap->user_heap.init.
Christopher Faylor
2013-08-30 21:02:02 +0000
b03bd1f41c* heap.cc (sbrk): Add a FIXME comment to VirtualFree call. Fix memory reservation and commit strategy when more memory is requested than available on the heap. Release newly reserved memory if commiting it fails. Add more comments to explain what we do.
Corinna Vinschen
2013-08-30 20:01:10 +0000
a723366660* fhandler_tape.cc (mtinfo_drive::open): Handle bus reset gracefully after opening the device.
Corinna Vinschen
2013-08-30 17:39:11 +0000
c5abf768f9* sigproc.cc (pending_signals::add): Properly maintain linked list. (wait_sig): Use already calculated 'next' element when signal is blocked.
Christopher Faylor
2013-08-30 15:44:57 +0000
6585330779* mtinfo.h (class mtinfo_part): Change type of block numbers to int64_t. (mtinfo_part::initialize): Ditto for nblock parameter in declaration. (class mtinfo_drive): Change type of block number to int64_t. Change all parameters indicating a block number to int64_t in method declarations. * fhandler_tape.cc (mtinfo_part::initialize): Ditto in definition. (mtinfo_drive::get_pos): Ditto. Replace low and high with a ULARGE_INTEGER and use it's components in call to GetTapePosition. Store full value in block. (mtinfo_drive::_set_pos): Change type of count parameter to int64_t. Change call to SetTapePosition accordingly. (mtinfo_drive::set_pos): Change type of count parameter to int64_t. Change local variables holding block numbers accordingly. (mtinfo_drive::get_status): Don't bail out early if fetching media parameters fails. (mtinfo_drive::ioctl): Add explicit cast matching receiving type in MTTELL and MTIOCPOS calls.
Corinna Vinschen
2013-08-26 16:14:40 +0000
8451a289cc* flock.cc (lockf_t::from_obj_name): Fix test for valid pid.
Corinna Vinschen
2013-08-23 20:40:27 +0000
3ee82da30d* fhandler_tape.cc (mtinfo_drive::create_partitions): Allow partitioning of drives supporting select partitions. (mtinfo_drive::get_status): Fill in current partition and number of partitions on tape into mt_resid. * include/cygwin/mtio.h (struct mtget): Align mt_resid comment to aforementioned change. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Corinna Vinschen
2013-08-21 20:28:12 +0000
30990eaa27* fhandler_tape.cc (mtinfo_drive::create_partitions): Fix long-standing bug disabling creation of two partitions on drives supporting initiator partitions. (mtinfo_drive::set_blocksize): Update media information after setting blocksize succeeded. (mtinfo_drive::get_status): Fetch fresh media information.
Corinna Vinschen
2013-08-20 20:17:14 +0000
f9268dfd7amerge from gcc
DJ Delorie
2013-08-20 06:02:49 +0000
d244f86a4dinclude/opcode/ * mips.h: Remove references to "+I" and imm2_expr.
Richard Sandiford
2013-08-19 19:56:44 +0000
68eccfb465include/opcode/ * mips.h (OP_OPTIONAL_REG): New mips_operand_type. (mips_optional_operand_p): New function.
Richard Sandiford
2013-08-19 18:56:59 +0000
651133f28d* lc_msg.h: Regenerate. * nlsfuncs.cc (__get_lcid_from_locale): Update list of Script-only locales to Windows 8. (__set_charset_from_locale): Take locales added with Windows 8 and 8.1 into account.
Corinna Vinschen
2013-08-19 16:21:29 +0000
48199c0d39* fhandler_tape.cc (mtinfo_drive::set_pos): Remove unneeded linebreak. (mtinfo_drive::get_status): Drop using get_ll when it's not required.
Corinna Vinschen
2013-08-19 10:24:37 +0000
cbd871ad41* libc/stdlib/__atexit.c (__register_exitproc): NULL-ify _on_exit_args_ptr when creating a new _atexit structure while _REENT_SMALL is defined.
Corinna Vinschen
2013-08-19 09:03:42 +0000
6f3dd43ee6src-release: Strip "-cvs" from GDB source dir and tarball.
Joel Brobecker
2013-08-17 01:07:52 +0000
423229a5b1* elf32-rl78.c (rl78_elf_merge_private_bfd_data): Complain if G10 flag bits do not match. (rl78_elf_print_private_bfd_data): Describe G10 flag.
Nick Clifton
2013-08-09 10:40:04 +0000