3f74d8d568* uinfo.cc (cygheap_user::init): Don't call GetUserName. Fetch username from Windows environment instead. Explain why. (cygheap_user::env_domain): Use MAX_DOMAIN_NAME_LEN rather than DNLEN to specify the size of the domain name buffer.
Corinna Vinschen
2011-03-31 15:33:53 +0000
d22bbac76c* hires.h: Fix copyright. * times.cc: Ditto. localtime, gmtime). (FACTOR): Add comment. (NSPERSEC): Ditto. (JITTER): New definition. Comment. (systime_ns): Avoid gratuitous copying of the value returned by GetSystemTimeAsFileTime. (corelocaltime, localtime, gmtime): Remove very old, unused code block. (cygwin_tzset): Remove. (hires_ms::timeGetTime_ns): Add missing semicolon in comment. (hires_ms::nsecs): Redefine check for difference between internal timer value and system time.
Corinna Vinschen
2011-03-30 21:54:09 +0000
af23d12d33* times.cc (hires_ms::resolution): Make sure resolution is never 0. (clock_setres): Ditto.
Corinna Vinschen
2011-03-30 11:30:34 +0000
da00863389* cygtls.h (struct _local_storage): Redefine process_ident as wchar_t pointer. * syslog.cc (CYGWIN_LOG_NAME): Convert to wide char constant. (openlog): Convert incoming ident string to wide char. Fix formatting. (vsyslog): Print ident string as wide char string. Convert message string to wide char and call UNICODE Win32 Event functions to make sure to use correct codeset. * tlsoffset.h: Regenerate.
Corinna Vinschen
2011-03-29 11:18:10 +0000
39735c85f2* fhandler_socket.cc (get_inet_addr): Make externally available. * autoload.cc (GetUdpTable): Define. * syslog.cc (connect_syslogd): Use get_inet_addr rather than _stat64 to check for local socket file. Create socket with type returned by get_inet_addr. If connect on UDP socket works, test if there's really a listening peer, otherwise fall back to Windows event log. (try_connect_syslogd): Use syslogd_inited flag to check if syslogd is available.
Corinna Vinschen
2011-03-29 11:07:23 +0000
d7d8e7ce07* cygcheck.cc (handle_unique_object_name): Avoid a compiler warning. (dump_sysinfo): Ditto. * loadlib.h (_load_sys_library): Mark as used, to avoid a compiler warning. * path.cc (oopt): Gurad with !FSTAB_ONLY to avoid a compiler warning. (read_flags): Ditto.
Corinna Vinschen
2011-03-29 11:02:58 +0000
91d3057085* uinfo.cc (cygheap_user::env_domain): Use LookupAccountSidW and convert user and domain to multibyte strings to make sure to use correct codeset.
Corinna Vinschen
2011-03-29 10:46:04 +0000
5f660ecf24* autoload.cc (UuidCreate): Remove. (UuidCreateSequential): Remove. * passwd.cc (internal_getpwsid): Avoid a strict-aliasing compiler error with gcc 4.5.1. * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Ditto. * ntdll.h (NtAllocateUuids): Declare. * syscalls.cc (gethostid): Use NtAllocateUuids function rather than UuidCreateSequential/UuidCreate to get rid of rpcrt4 dependency.
Corinna Vinschen
2011-03-29 10:42:11 +0000
f00fe1b8e7* cygwin.din (pthread_spin_destroy): Export. (pthread_spin_init): Export. (pthread_spin_lock): Export. (pthread_spin_trylock): Export. (pthread_spin_unlock): Export. * posix.sgml (std-susv4): Add pthread_spin_destroy, pthread_spin_init, pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock. (std-notimpl): Remove pthread_spin_[...]. * pthread.cc (pthread_spin_init): New function. * thread.cc (pthread_spinlock::is_good_object): New function. (pthread_mutex::pthread_mutex): Rearrange initializers to accommodate protected data in pthread_mutex. (pthread_spinlock::pthread_spinlock): New constructor. (pthread_spinlock::lock): New method. (pthread_spinlock::unlock): New method. (pthread_spinlock::init): New method. (pthread_spin_lock): New function. (pthread_spin_trylock): New function. (pthread_spin_unlock): New function. (pthread_spin_destroy): New function. * thread.h (PTHREAD_SPINLOCK_MAGIC): Define. (class pthread_mutex): Change access level of members shared with derived classes to protected. (pthread_mutex::set_shared): New protected method. (class pthread_spinlock): New class, derived class of pthread_mutex. * include/pthread.h (pthread_spin_destroy): Declare. (pthread_spin_init): Declare. (pthread_spin_lock): Declare. (pthread_spin_trylock): Declare. (pthread_spin_unlock): Declare. * include/cygwin/types.h (pthread_spinlock_t): New typedef. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
Corinna Vinschen
2011-03-29 10:32:40 +0000
a011f95216* net.cc (SIO_BASE_HANDLE): Define. (fdsock): If we got an LSP handle, try to create a copy of the base handle instead. Change comment to explain.
Corinna Vinschen
2011-03-29 10:25:20 +0000
cd50649255* autoload.cc (winmm): Remove time functions. Don't treat unloadable wave functions as fatal. * hires.h (hires_ms::timeGetTime_ns): New private method. (hires_ms::dmsecs): Call timeGetTime_ns here. * ntdll.h (struct _KSYSTEM_TIME): Define. (KUSER_SHARED_DATA): Redefine to allow access to InterruptTime. (SharedUserData): Define here. (NtQueryTimerResolution): Declare. (NtSetTimerResolution): Declare. * path.cc (SharedUserData): Move to ntdll.h. * times.cc (hires_ms::timeGetTime_ns): New private method. Use throughout instead of timeGetTime. Document entire functionality of timeGetTime in case we need it. (hires_ms::resolution): Try a call to NtQueryTimerResolution to fetch current period. Fall back to heuristic if that fails. Cast to DWORD in assignments to minperiod. (clock_setres): Align period to possible values per a call to NtQueryTimerResolution. Explain why. Replace calls to timeBeginPeriod and timeEndPeriod with underlying call to NtSetTimerResolution. Use status code from NtSetTimerResolution to compute errno. Convert period to ULONGLONG and store 100ns value to simplify code.
Corinna Vinschen
2011-03-29 10:21:30 +0000
700c641dfa* include/userenv.h: Add functions and definitions added with Windows 2000 and Vista.
Corinna Vinschen
2011-03-29 08:43:17 +0000
c9c50e7aa4* include/sys/xattr.h: New file.
Corinna Vinschen
2011-03-29 08:03:35 +0000
056b8e60cd* thread.cc (semaphore::init, destroy, close): Standards conformance fix. On a failure, return -1 and set errno. * thread.h (semaphore::terminate): Save errno since semaphore::close() may now modify it.
Corinna Vinschen
2011-03-29 07:49:25 +0000
471bbbe240* setfacl.c (strchrnul): Drop local implementation.
Corinna Vinschen
2011-03-28 21:21:03 +0000
44dabc0869* configure.ac (i[[3456789]]86-*-msdosdjgpp*): Don't disable libffi on host. (x86_64-*-mingw*, i[[3456789]]86-*-mingw32*): Don't disable newlib on host. (c54x*-*-* | tic54x-*-*): Don't disable newlib on host. * configure: Regenerate.
Joseph Myers
2011-03-28 13:14:27 +0000
573c698ac9Add support for DragonFlyBSD target.
Nick Clifton
2011-03-28 11:18:20 +0000
f3e3e0e7eb* dll_init.cc (dll::init): Accommodate ill-behaved dlls who don't fill out p.envptr.
Christopher Faylor
2011-03-27 19:14:02 +0000
623f23351cfix typo in previous changelog entry
Michael Frysinger
2011-03-27 03:48:44 +0000
d2d0cc5c32libgloss: bfin: fix asm constraints for raise/excpt helpers
Michael Frysinger
2011-03-27 03:47:30 +0000
0f6ab41477libgloss: bfin: abort on install errors
Michael Frysinger
2011-03-27 03:40:00 +0000
d42e1efcf92011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-03-26 03:47:54 +0000
2642251d662011-03-25 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-03-26 03:41:23 +0000
57abff16c3* mmap.cc (mmap64): Add a cheat to let a certain autoconf test succeed on 64 bit systems. Explain why.
Corinna Vinschen
2011-03-25 20:39:26 +0000
d6ab646ff62011-03-24 Mark Wielaard <mjw@redhat.com>
Tom Tromey
2011-03-25 15:45:38 +0000
5b45e8c9e8* configure.ac (native_only): Remove. (i[[3456789]]86-*-msdosdjgpp*): Don't disable expect dejagnu send-pr uudecode guile gnuserv on host. (x86_64-*-mingw*): Don't disable expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool on host. (i[[3456789]]86-*-mingw32*): Don't disable expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool on host. (*-*-cygwin*, *-*-netbsd*): Remove host cases. (*-*-kaos*): Don't disable target-examples target-gperf on target. (alpha*-dec-osf*): Don't disable fileutils on target. (sh*-*-pe|mips*-*-pe|*arm-wince-pe): Don't disable target-examples texinfo send-pr expect dejagnu on target. (arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi): Don't disable target-qthreads on target. (hppa*-hp-hpux11*, hppa*-*-*): Don't disable shellutils on target. (ia64*-*-elf*, ia64*-*-*vms*): Don't disable mmalloc on target. (i[[3456789]]86-w64-mingw*, i[[3456789]]86-*-mingw*, x86_64-*-mingw*): Don't disable expect on target. (*-*-cygwin*): Don't disable target-gperf on target. (powerpc*-*-winnt* | powerpc*-*-pe*): Don't disable make expect gnuserv on target. (powerpcle-*-solaris*): Don't disable make expect gnuserv on target. * configure: Regenerate.
Joseph Myers
2011-03-25 13:08:19 +0000
33150e7f40* fenv.cc (_feinitialise); Don't use SSE instructions on systems not supporting them. * wincap.h (wincaps::supports_sse): New element. * wincap.cc: Implement above element throughout.
Corinna Vinschen
2011-03-20 15:34:29 +0000
41045fb74d* fhandler.h (DEFAULT_PIPEBUFSIZE): Reset to 64K.
Christopher Faylor
2011-03-18 14:25:33 +0000
ccbc7fca21* mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to empty strings or suffer a SEGV. Drop second parameter in call to build_fh_dev.
Corinna Vinschen
2011-03-18 13:56:56 +0000
bf69faeb0d* mmap.cc (class mmap_record): Pack 4 byte-aligned. Convert member dev to plain int. (mmap_record::alloc_fh): Create temporary device from dev and use in call to build_fh_dev.
Corinna Vinschen
2011-03-18 13:42:03 +0000
ac706ac123* mmap.cc (mmap_record::page_map): Define as variable array rather than as pointer. (mmap_record::alloc_page_map): Remove. (mmap_record::free_page_map): Remove. (mmap_record::init_page_map): New method. (mmap_record::add_record): Take mmap_record parameter by reference rather than by value. (mmap_record::map_pages): Fix comment. (mmap_list::add_record): Allocate space for mmap_record including the page_map in a single ccalloc call. Call init_page_map afterwards. (mmap_list::del_record): Remove call to mmap_record::free_page_map.
Corinna Vinschen
2011-03-18 13:38:34 +0000
b532ee08bc* crt0.c (mainCRTStartup): Move call to _feinitialise from here... * dcrt0.cc (_dll_crt0): ...to here.
Corinna Vinschen
2011-03-17 08:40:25 +0000
810a90a431include/elf/ * arm.h (R_ARM_IRELATIVE): New relocation.
Richard Sandiford
2011-03-14 16:04:04 +0000
4f4106d140include/elf/ * internal.h (elf_internal_sym): Add st_target_internal. * arm.h (arm_st_branch_type): New enum. (ARM_SYM_BRANCH_TYPE): New macro.
Richard Sandiford
2011-03-14 15:54:57 +0000
91b3d1ed7a* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Only use file id as inode number if it masters the isgood_inode check.
Corinna Vinschen
2011-03-14 09:14:17 +0000
9636c4262e* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Remove special treatment for ERROR_NO_SYSTEM_RESOURCES. Cancel I/O and reset the overlapped handle on error. (fhandler_base_overlapped::write_overlapped): Limit writes to max_atomic_write bytes in blocking case. Incorporate code from now-defunct write_overlapped_fallback. Fix serious oversight where ptr was not advanced as buffer was written. (fhandler_base_overlapped::write_overlapped_fallback): Eliminate. * fhandler.h (fhandler_base_overlapped::write_overlapped_fallback): Ditto for declaration. (DEFAULT_PIPEBUFSIZE): Lower size to slightly less than documented worst-case atomic write size. (fhandler_overlapped::wait_return): Remove unused element.
Christopher Faylor
2011-03-13 20:20:58 +0000
7a9064faa52011-03-11 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-03-12 04:33:16 +0000
bd6bfbb9f3* common.h (EM_V850): V850s now supplied by Renesas. * readelf.c (get_machine_name): Update EM_V850 entry.
Nick Clifton
2011-03-10 10:23:37 +0000
904e3e2004* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Handle overlapped_fallback error condition like other error conditions. Set res carefully and specifically for each condition rather than resorting to a default. (fhandler_base_overlapped::write_overlapped): Preserve errno in overlapped_fallback condition. Correct write_overlapped_fallback to avoid inappropriate looping. (fhandler_base_overlapped::write_overlapped_fallback): Add some more comments.
Christopher Faylor
2011-03-09 22:48:05 +0000
ed6b66c88d* fhandler.cc (fhandler_base_overlapped::write_overlapp): Oops! Accommodate change in arguments to wait_overlapped.
Christopher Faylor
2011-03-09 16:55:54 +0000
779ece3ce0* errno.cc (errmap): Change mapping of NO_SYSTEM_RESOURCES to EFBIG. * fhandler.cc (MAX_OVERLAPPED_WRITE_LEN): New constant. (MIN_OVERLAPPED_WRITE_LEN): Ditto. (fhandler_base_overlapped::close): Accommodate change in arguments to wait_overlapped. (fhandler_base_overlapped::setup_overlapped): Add __stdcall and regparm modifiers. (fhandler_base_overlapped::destroy_overlapped): Ditto. (fhandler_base_overlapped::has_ongoing_io): Ditto. (fhandler_base_overlapped::wait_overlapped): Modify to return an enum returning various states. Accept nonblocking parameter. (fhandler_base_overlapped::read_overlapped): Add __stdcall and regparm modifiers. Rework to attempt to be smarter about reacting to states returned by wait_overlapped. (fhandler_base_overlapped::write_overlapped): Ditto. Add fallback option for when wait_overlapped detects that smaller chunks must be written. (fhandler_base_overlapped::write_overlapped_fallback): Ditto. * fhandler.h (DEFAULT_PIPEBUFSIZE): Move definition here from pipe.cc. (fhandler_base::has_ongoing_io): Define with __stdcall and regparm modifiers. (fhandler_base_overlapped::wait_return): New enum. (fhandler_base_overlapped::max_atomic_write): New variable. (fhandler_base_overlapped:: wait_overlapped): Accommodate changes mentioned above to arguments and modifiers. (fhandler_base_overlapped::setup_overlapped): Ditto for modifiers. (fhandler_base_overlapped::read_overlapped): Ditto. (fhandler_base_overlapped::write_overlapped): Ditto. (fhandler_base_overlapped::destroy_overlapped): Ditto. (fhandler_base_overlapped::has_ongoing_io): Ditto. (fhandler_base_overlapped::fhandler_base_overlapped): Zero max_atomic_write. * fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Set max_atomic_write to the size of the DEFAULT_PIPEBUFSIZE. (fhandler_fifo::wait): Accommodate change in arguments to wait_overlapped. * pipe.cc (fhandler_pipe::fhandler_pipe): Set max_atomic_write to the size of the DEFAULT_PIPEBUFSIZE. (fhandler_pipe::create_selectable): Allow minimum size of DEFAULT_PIPEBUFSIZE. (DEFAULT_PIPEBUFSIZE): Delete here, move to fhandler.h.
Christopher Faylor
2011-03-09 16:47:44 +0000
69d7815eae* fhandler.cc (fhandler_base::open): When creating a file on a filesystem supporting ACLs, create the file with WRITE_DAC access. Explain why. * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto for directories. * fhandler_socket.cc (fhandler_socket::bind): Ditto for sockets. * path.cc (symlink_worker): Ditto for symlinks. * security.cc (get_file_sd): Always call GetSecurityInfo for directories on XP and Server 2003. Improve comment to explain why. (set_file_attribute): Explicitely cast mode_t value to bool in call to get_file_sd. * wincap.h (wincaps::use_get_sec_info_on_dirs): New element. * wincap.cc: Implement above element throughout.
Corinna Vinschen
2011-03-08 14:26:15 +0000
6777e539722011-03-07 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-03-08 01:57:46 +0000
ec5563f3f4sim: bfin: new port
Michael Frysinger
2011-03-06 00:20:16 +0000
f47bfee5952011-03-05 Chris Sutcliffe <ir0nh34d@users.sf.net>
Chris Sutcliffe
2011-03-05 20:55:46 +0000
905220bf092011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 20:50:52 +0000
8a456980d62011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 20:43:53 +0000
174cb44b902011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 20:29:08 +0000
ad41401c692011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 19:36:28 +0000
66e49b8532Guard against M4 versions with a buggy strstr.
Ralf Wildenhues
2011-03-05 07:33:13 +0000
e8dc396d7a2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 05:45:42 +0000
213bc4f2152011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 05:05:20 +0000
09ba620e3f2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 04:51:01 +0000
2af4c4de092011-03-04 Seth Jackson <sethj@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 04:39:15 +0000
a4c7da048d2011-03-04 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2011-03-05 04:31:24 +0000
d5071ad7f5* fhandler_procsys.cc (fhandler_procsys::exists): Rewrite. (fhandler_procsys::fill_filebuf): Fill buffer with valid string even if reading the symlink fails.
Corinna Vinschen
2011-03-04 17:51:42 +0000