Commit Graph

  • c9e978ed1b 2013-11-21 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-21 16:42:17 +00:00
  • 242d74dbb3 2013-11-21 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-21 16:42:17 +00:00
  • 21cf2aee53 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill 2013-11-21 16:39:06 +00:00
  • 50f8086b5d 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill 2013-11-21 16:39:06 +00:00
  • 32e2cbeeab 2013-11-21 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-21 16:35:47 +00:00
  • 460c503851 2013-11-21 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-21 16:35:46 +00:00
  • 37d3b04f88 [AArch64] Set errno in ftruncate() and truncate(). Marcus Shawcroft 2013-11-21 15:53:52 +00:00
  • d66db77f7e [AArch64] Set errno in ftruncate() and truncate(). mshawcroft 2013-11-21 15:53:52 +00:00
  • eee6552c95 [ARM] set errno in ftruncate and truncate stubs. Marcus Shawcroft 2013-11-21 15:49:05 +00:00
  • df1c56eda8 [ARM] set errno in ftruncate and truncate stubs. mshawcroft 2013-11-21 15:49:05 +00:00
  • 3c7451d8de 2013-11-20 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-20 18:22:27 +00:00
  • 4387990d2b 2013-11-20 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-20 18:22:26 +00:00
  • ea9d80921f 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> Joel Sherrill 2013-11-20 16:25:50 +00:00
  • 47fe447357 2013-11-20 Chirayu Desai <chirayudesai1@gmail.com> Joel Sherrill 2013-11-20 16:25:49 +00:00
  • a2c4eac5d0 2013-11-20 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-20 13:39:36 +00:00
  • 21c8780955 2013-11-20 Daniel Ramirez <javamonn@gmail.com> Joel Sherrill 2013-11-20 13:39:35 +00:00
  • c03063e2fc * include/cygwin/stdlib.h (realpath): Drop declaration. It's declared in newlib's stdlib.h now. Corinna Vinschen 2013-11-20 09:48:04 +00:00
  • 66a1c2e91b * libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__. Corinna Vinschen 2013-11-20 09:46:39 +00:00
  • 8273b2112f * libc/include/stdlib.h: Declare realpath only if !__STRICT_ANSI__. Corinna Vinschen 2013-11-20 09:46:39 +00:00
  • 8856f1f00e * cygcheck.cc (RtlGetVersion): Declare. (dump_sysinfo): Call RtlGetVersion rather than GetVersionEx to get correct OS info even on Windows 8.1. Don't check return value since RtlGetVersion never fails per MSDN. Move fetching kernel32 module handle where it's really needed. Drop temporary comment added by previous checkin. Corinna Vinschen 2013-11-19 22:26:37 +00:00
  • c9f36df332 * ntdll.h (RtlGetVersion): Declare. * wincap.cc (wincapc::init): Rather than GetVersionEx, call RtlGetVersion which is not crippled by missing Windows 8.1 manifest. * wincap.h (wincapc): Change type of version to RTL_OSVERSIONINFOEXW. Align formatting of all class members. Corinna Vinschen 2013-11-19 22:21:11 +00:00
  • f8863cbe54 * cygcheck.cc (dump_sysinfo): Revert Windows 8.1 hack. It's not working. Add a (hopefully temporary) comment. Corinna Vinschen 2013-11-19 20:43:04 +00:00
  • 690d1333f5 * wincap.cc (wincapc::init): Revert previous change. It's not working. Corinna Vinschen 2013-11-19 20:37:27 +00:00
  • 311cba65d5 3013-11-19 Jennifer Averett <jennifer.averett@oarcorp.com> Joel Sherrill 2013-11-19 19:11:24 +00:00
  • 3007afbca3 3013-11-19 Jennifer Averett <jennifer.averett@oarcorp.com> Joel Sherrill 2013-11-19 19:11:24 +00:00
  • 32da4b09d2 *** empty log message *** Corinna Vinschen 2013-11-19 18:10:47 +00:00
  • 0732e52c41 * net.cc (cygwin_getaddrinfo): Fix a comment. Only memset whints if hints is NULL. Add a comment and set whints.ai_family explicitely to AF_UNSPEC to follow glibc man page closely. Check flags against whints for locality. Corinna Vinschen 2013-11-19 18:07:46 +00:00
  • 705b50fe39 * wincap.cc (wincapc::init): Fix dwMinorVersion for Windows 8.1 and Server 2012. Explain why this is necessary. Corinna Vinschen 2013-11-19 18:01:04 +00:00
  • 85cef403d8 Add missing entry Corinna Vinschen 2013-11-19 17:49:35 +00:00
  • d134686a10 * cygcheck.cc (dump_sysinfo): Drop code trying to fetch OSVERSIONINFO if fetching OSVERSIONINFOEX failed. Drop code handling unsupported platform IDs. Add code to tweak dwMinorVersion on Windows 8.1 if no manifest is present. Corinna Vinschen 2013-11-19 17:44:33 +00:00
  • 759ce1c288 Fix date Joel Sherrill 2013-11-19 17:39:43 +00:00
  • 670c036efa Fix date Joel Sherrill 2013-11-19 17:39:43 +00:00
  • aed5f73fa8 2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill 2013-11-19 17:32:24 +00:00
  • a73a381a53 2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill 2013-11-19 17:32:23 +00:00
  • 7dffe44b09 2013-11-19 Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill 2013-11-19 17:28:04 +00:00
  • 24dd9a2d8b 2013-11-19 Joel Sherrill <joel.sherrill@oarcorp.com> Joel Sherrill 2013-11-19 17:28:04 +00:00
  • 5b56e9b02b * autoload.cc (IdnToAscii): Define. (IdnToUnicode): Define. (FreeAddrInfoW): Define. (GetAddrInfoW): Define. (GetNameInfoW): Define. * net.cc: Drop W. Richard STEVENS libgai implementation. (cygwin_freeaddrinfo): Move code from ipv4_freeaddrinfo here. Move definition up in file to avoid forward declaration in ga_duplist. (ga_dup): Take addrinfoW as input. Add parameters to get IDN flags and to set error value. Handle IDN flags and especially AI_CANONIDN. Convert input wchar_t ai_canonname string to multibyte for output. (ga_duplist): Add parameters to get IDN flags and to set error value and propagate to ga_dup. Call cygwin_freeaddrinfo. (gai_errmap): Add comments. Align error strings to GLibc. Add EAI_IDN_ENCODE entry. (get_ipv6_funcs): Remove. (load_ipv6_guard): Remove. (ipv6_inited): Remove. (load_ipv6): Remove. (load_ipv6_funcs): Remove. (cygwin_getaddrinfo): Drop calling load_ipv6. Handle AI_IDN* flags. Convert input strings to wchar_t and call GetAddrInfoW/FreeAddrInfoW. In case hints is NULL, set default ai_flags explicitely to AI_V4MAPPED | AI_ADDRCONFIG, as documented for Glibc. Only add AI_ALL if AI_ADDRCONFIG is not given. Unconditionally add Windows-specific AI_DISABLE_IDN_ENCODING to ai_flags to make IDN behaviour compatible to Glibc even on Windows 8 and later. (cygwin_getnameinfo): Drop calling load_ipv6. Handle NI_IDN* flags. Call GetNameInfoW and convert returned strings from wchar_t to multibyte. * include/netdb.h: Add comments to describe flags and error values. (AI_*): Define all flags using hex values for clearness. (AI_IDN): Define. (AI_CANONIDN): Define. (AI_IDN_ALLOW_UNASSIGNED): Define. (AI_IDN_USE_STD3_ASCII_RULES): Define. (NI_*): Define all flags using hex values for clearness. (NI_IDN): Define. (NI_IDN_ALLOW_UNASSIGNED): Define. (NI_IDN_USE_STD3_ASCII_RULES): Define. (EAI_IDN_ENCODE): Define. Corinna Vinschen 2013-11-19 13:29:37 +00:00
  • ff125797e3 * libc/posix/closedir.c: Fix use after free. Remove useless test dd_fd != -1 * libc/posix/readdir.c: Remove useless test dd_fd == -1 * libc/posix/readdir_r.c: Ditto. Corinna Vinschen 2013-11-19 11:48:02 +00:00
  • 89ae63cd7b * libc/posix/closedir.c: Fix use after free. Remove useless test dd_fd != -1 * libc/posix/readdir.c: Remove useless test dd_fd == -1 * libc/posix/readdir_r.c: Ditto. Corinna Vinschen 2013-11-19 11:48:01 +00:00
  • 700a3783ee * Makefile.in (cygcheck.exe): Link against wininet.dll. (dumper.exe): Link against psapi.dll. * cygcheck.cc (_WIN32_WINNT): Define as 0x0602. (pInternetCloseHandle): Drop pointer. (PRODUCT_UNLICENSED): Drop definition. (PRODUCT_PROFESSIONAL_WMC): Ditto. (package_grep): Delete code loading wininet functions dynamically, just call functions directly. Corinna Vinschen 2013-11-19 11:14:36 +00:00
  • e576e42013 *** empty log message *** Corinna Vinschen 2013-11-19 10:47:09 +00:00
  • 32fefe6e24 * cygcheck.cc (dump_sysinfo): Distinguish Windows 8 and 8.1, as well as Windows Server 2012 and 2012 R2. Add missing commas in products array to avoid crashes. Drop Windows NT4 and 2000 printouts. Just call IsWow64Process, GetNativeSystemInfo, and GetDiskFreeSpaceEx directly, rather than loading them dynamically, since they are exported by all supported OS versions. Fix questionable type usage in call to GetDiskFreeSpaceEx. Corinna Vinschen 2013-11-19 10:43:10 +00:00
  • 481cb456a4 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> Joel Sherrill 2013-11-18 17:28:06 +00:00
  • 7d3a6232d9 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> Joel Sherrill 2013-11-18 17:28:03 +00:00
  • 8ab08406da 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> Joel Sherrill 2013-11-18 17:26:52 +00:00
  • 22c84055b1 2013-11-18 Sahil Patnayakuni <sahilp@oarcorp.com> Joel Sherrill 2013-11-18 17:26:50 +00:00
  • 7c62befe16 [AArch64] Provide ftruncate() and truncate() stubs. Marcus Shawcroft 2013-11-18 10:04:56 +00:00
  • 182ae5ff40 [AArch64] Provide ftruncate() and truncate() stubs. mshawcroft 2013-11-18 10:04:55 +00:00
  • c709105913 [ARM] Provide ftruncate() and truncate() stubs. Marcus Shawcroft 2013-11-18 09:53:46 +00:00
  • 1d1b0b1fab [ARM] Provide ftruncate() and truncate() stubs. mshawcroft 2013-11-18 09:53:45 +00:00
  • 2b2290caba * newlib/libc/stdlib/getopt.c (getopt_internal): Add missing braces. Corinna Vinschen 2013-11-13 20:04:18 +00:00
  • 28212df3d5 * newlib/libc/stdlib/getopt.c (getopt_internal): Add missing braces. Corinna Vinschen 2013-11-13 20:04:18 +00:00
  • 02365c2064 * newlib/libc/include/getopt.h (struct option): name field should be "const char *". * newlib/libc/stdlib/getopt.c (getopt_internal): Use fputs()/fputc() instead of fprintf() to save code space. Fix signed/unsigned comparison. Corinna Vinschen 2013-11-13 09:09:45 +00:00
  • 7894ff3b0c * newlib/libc/include/getopt.h (struct option): name field should be "const char *". * newlib/libc/stdlib/getopt.c (getopt_internal): Use fputs()/fputc() instead of fprintf() to save code space. Fix signed/unsigned comparison. Corinna Vinschen 2013-11-13 09:09:45 +00:00
  • 8246caa942 * faq-setup.xml (faq.setup.uninstall-service): Describe how to unhook cyglsa DLL from OS before uninstalling. Corinna Vinschen 2013-11-12 22:21:32 +00:00
  • 058c477786 * libc/libc/stdlib/getopt.c (getopt_internal): Fix NULL pointer access. Corinna Vinschen 2013-11-12 11:30:32 +00:00
  • f1359420da * libc/libc/stdlib/getopt.c (getopt_internal): Fix NULL pointer access. Corinna Vinschen 2013-11-12 11:30:32 +00:00
  • 4146cc5ce7 * faq-setup.xml: Throughout remove setup.exe, use setup or setup-x86... instead. (faq.setup.cli): Reproduce latest --help output. (faq.setup.noroot): New section. (faq.setup.setup-fails-on-ts): Remove section. * setup-net.xml (internet-setup): Mention setup-x86{_64} in first paragraph. Add note to allow using setup.exe in subsequent paragraphs. Add paragraph to introduce --no-admin option. Corinna Vinschen 2013-11-11 12:48:31 +00:00
  • bddd1263dd * libm/libm.texinfo: Rename node Index to Document Index. * libc/libc.texinfo: Rename node Library Index to Document Index. Corinna Vinschen 2013-11-08 12:48:29 +00:00
  • 874e065fa1 * libm/libm.texinfo: Rename node Index to Document Index. * libc/libc.texinfo: Rename node Library Index to Document Index. Corinna Vinschen 2013-11-08 12:48:29 +00:00
  • 13dbf6b0aa * Makefile.in: Properly cd to directory sans install_ prefix. Report on errors on doc install. Only 'all' is special. Christopher Faylor 2013-11-07 00:29:46 +00:00
  • 2a6d6db8e2 winsup/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> Christopher Faylor 2013-11-07 00:19:52 +00:00
  • 01eddfd7b2 * Makefile.in: Reinstate ignoring of errors for doc target. Christopher Faylor 2013-11-06 23:26:23 +00:00
  • 2a98b3363e * libc/stdio/fvwrite.c: Allow writing in larger chunks for fully buffered and unbuffered files, to improve write performance. Corinna Vinschen 2013-11-04 14:18:44 +00:00
  • 1176b88436 * libc/stdio/fvwrite.c: Allow writing in larger chunks for fully buffered and unbuffered files, to improve write performance. Corinna Vinschen 2013-11-04 14:18:43 +00:00
  • 5b312b4747 * devices.in (dev_cygdrive_storage): Revert mapping to \Device\Null. (dev_storage): Ditto for /dev. * devices.cc: Regenerate. * fhandler.cc (fhandler_base::open_null): New method to open a fake \Device\Null handler. (fhandler_base::open): Fix formatting. Change O_ACCMODE test to a switch statement. Simplify a test which still tested for a now unused create_disposition. * fhandler.h (fhandler_base::open_null): Declare. (fhandler_netdrive::close): Declare. * fhandler_dev.cc (fhandler_dev::open): Open fake \Device\Null handle by just calling new open_null method. * fhandler_disk_file.cc (fhandler_cygdrive::open): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::open): Call open_null rather than setting nohandle. (fhandler_netdrive::close): New method. * fhandler_registry.cc (fetch_hkey): Fix token in RegOpenUserClassesRoot call. Create valid key for HKEY_CURRENT_CONFIG by mapping to real key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current. (fhandler_registry::open): Set nohandle only when using pseudo registry handle. * fhandler_virtual.cc (fhandler_virtual::opendir): Call open rather than just setting nohandle here. * fhandler_virtual::fstatvfs): Set ST_RDONLY fs flag. * globals.cc (ro_u_null): New readonly UNICODE_STRING for \Device\Null. * path.h (path_conv::set_path): Revert previous change caring for wide_path. Corinna Vinschen 2013-10-31 14:26:42 +00:00
  • a5f316d8cf * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to fix fwrite() of > 2GByte buffers. Corinna Vinschen 2013-10-31 10:35:54 +00:00
  • 8b572395da * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t to fix fwrite() of > 2GByte buffers. Corinna Vinschen 2013-10-31 10:35:53 +00:00
  • 566fd12b68 Implement malloc_stats for nano. * libc/stdlib/nano-mallocr.c (RONECALL): New parameter macro. (sbrk_start): New variable. (current_mallinfo, free_list): Forward declaration of data. (chunk): Define size as long type. (mallinfo): Synchronize with latest malloc.h. (nano_*): Forward declaration of functions. (get_chunk_from_ptr): Defined to static inline. (nano_mallinfo): Implement this function. (nano_malloc_stats): Implement this function. Corinna Vinschen 2013-10-30 15:53:05 +00:00
  • 26023827ac Implement malloc_stats for nano. * libc/stdlib/nano-mallocr.c (RONECALL): New parameter macro. (sbrk_start): New variable. (current_mallinfo, free_list): Forward declaration of data. (chunk): Define size as long type. (mallinfo): Synchronize with latest malloc.h. (nano_*): Forward declaration of functions. (get_chunk_from_ptr): Defined to static inline. (nano_mallinfo): Implement this function. (nano_malloc_stats): Implement this function. Corinna Vinschen 2013-10-30 15:53:04 +00:00
  • 4afcc6ced9 * libc/include/machine/_default_types.h: Revert change from 2013-10-10. Corinna Vinschen 2013-10-30 15:51:13 +00:00
  • c43b3e58a7 * libc/include/machine/_default_types.h: Revert change from 2013-10-10. Corinna Vinschen 2013-10-30 15:51:12 +00:00
  • b8dc053d2b *** empty log message *** Corinna Vinschen 2013-10-30 10:00:32 +00:00
  • 751bbaf96a * devices.in (dev_cygdrive_storage): Map to \Device\Null. (dev_storage): Map /dev and /dev/windows to \Device\Null. * devices.cc: Regenerate. * dir.cc (opendir): Create unique id. Explain why. * fhandler.h (fhandler_dev::get_dev): Implement inline. (fhandler_cygdrive::close): Drop declaration. (fhandler_cygdrive::get_dev): Implement inline. (fhandler_windows::get_hwnd): Ditto. (fhandler_windows::set_close_on_exec): Drop declaration. (fhandler_windows::fixup_after_fork): Ditto. * fhandler_dev.cc (fhandler_dev::open): Call fhandler_disk_file::open without O_CREAT flag. Explain why. Create \Device\Null handle if /dev/ doesn't actually exist. (fhandler_dev::close): Drop nohandle case. (fhandler_dev::fstatvfs): Drop nohandle check. Test for fs_got_fs instead. Set ST_RDONLY fs flag for simulated /dev. (fhandler_dev::opendir): If /dev doesn't exist, call open() to create fake \Device\Null handle. Don't set nohandle. Set dir_exists correctly. (fhandler_dev::rewinddir): Call fhandler_disk_file::rewinddir only if /dev is a real directory. * fhandler_disk_file.cc (fhandler_disk_file::opendir): If called for the cygdrive dir, call open() to create fake \Device\Null handle. Only attach __DIR_mounts buffer to dir if not called for cygdrive dir. Don't set nohandle. (fhandler_cygdrive::open): Create \Device\Null handle. (fhandler_cygdrive::close): Remove. (fhandler_cygdrive::fstatvfs): Set ST_RDONLY fs flag. * fhandler_windows.cc (fhandler_windows::open): Create \Device\Null handle. (fhandler_windows::read): Don't add io_handle to WFMO handle array. Change subsequent test for return value accordingly. Fix test for "message arrived". (fhandler_windows::set_close_on_exec): Remove. (fhandler_windows::fixup_after_fork): Remove. * path.h (path_conv::set_path): Make sure wide_path is NULL when setting a new path. * select.cc (peek_windows): Use correct hWnd value, not io_handle. (fhandler_windows::select_read): Don't use io_handle as wait object. (fhandler_windows::select_write): Ditto. (fhandler_windows::select_except): Ditto. Corinna Vinschen 2013-10-30 09:44:47 +00:00
  • 74dfdd9898 This commit was manufactured by cvs2svn to create tag 'sid- snapshot-20131201'. sid-snapshot-20131201 cvs2svn 2013-10-29 15:14:29 +00:00
  • 98a25e8229 This commit was manufactured by cvs2svn to create tag 'sid- snapshot-20131101'. sid-snapshot-20131101 cvs2svn 2013-10-29 15:14:28 +00:00
  • 0160e166ee merge from gcc DJ Delorie 2013-10-29 15:14:27 +00:00
  • 352d0b831e *** empty log message *** Corinna Vinschen 2013-10-28 10:57:33 +00:00
  • 14be153e9b * exception.h: Fold in content of include/exceptions.h. * include/exceptions.h: Remove. Corinna Vinschen 2013-10-27 09:42:17 +00:00
  • c8ae71316f * devices.in (dev_storage): Map /dev/dsp to \Device\Null. * devices.cc: Regenerate. * fhandler_dsp.cc (fhandler_dev_dsp::open): Call fhandler_base::open. (fhandler_dev_dsp::close): Call fhandler_base::close. (fhandler_dev_dsp::fixup_after_fork): Call fhandler_base::fixup_after_fork. Corinna Vinschen 2013-10-26 13:23:54 +00:00
  • 2e178c6909 * exception.h (_exception_list): Drop redefinition for x86_64. * include/exceptions.h: Disable content for x86_64 since it's not using frame based exception handling anymore. Corinna Vinschen 2013-10-26 09:37:34 +00:00
  • 7a1dc2a940 * flock.cc (fhandler_base::lock): Only refuse to lock nohandle and old-style console devices when called to perform BSD flock locking. Add a FIXME to comment and align description. Corinna Vinschen 2013-10-25 18:40:57 +00:00
  • 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 +00:00
  • 46943206dc * fhandler_disk_file.cc (fhandler_base::fstat_fs): Fix comment. Corinna Vinschen 2013-10-25 15:33:51 +00:00
  • 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 +00:00
  • 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 +00:00
  • 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 +00:00
  • 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 +00:00
  • 84e7adad1d Fix typo. Corinna Vinschen 2013-10-24 11:27:21 +00:00
  • 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 +00:00
  • 87187e2d6c * libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typo in last change. Hans-Peter Nilsson 2013-10-24 01:21:33 +00:00
  • 72a386373e * libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typo in last change. Hans-Peter Nilsson 2013-10-24 01:21:33 +00:00
  • 17b0a565b0 merge from gcc DJ Delorie 2013-10-23 22:37:24 +00:00
  • 158508011c * include /cygwin/config.h (_READ_WRITE_BUFSIZE_TYPE): Define. Corinna Vinschen 2013-10-23 10:06:17 +00:00
  • 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 +00:00
  • c3f162571d * 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:42 +00:00
  • 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 +00:00
  • 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 +00:00
  • 41f4cb7311 . Christopher Faylor 2013-10-19 14:37:29 +00:00
  • 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 +00:00