summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in (cygcheck.exe): Link against psapi.dll.Corinna Vinschen2012-07-116-43/+113
| | | | | | | | | | | | | | | | | | | | | | * bloda.cc: Change include section to work with Mingw64 headers. Include psapi.h. Use SystemProcessInformation instead of SystemProcessesAndThreadsInformation throughout and add define for w32api headers. Ditto for PSYSTEM_PROCESS_INFORMATION vs. PSYSTEM_PROCESSES. (system_module_list): New type to replace SYSTEM_MODULE_INFORMATION. Change usage throughout accordingly. (get_module_list): Fetch module list using PSAPI functions EnumDeviceDrivers and GetDeviceDriverBaseNameA. * cygcheck.cc (max): Define as __max if not defined already. (alloca): Only define if not defined already. (handle_unique_object_name): Use explicit sharing flags rather than FILE_SHARE_VALID_FLAGS which officially is only available in DDK headers. (PRODUCT_ULTIMATE_E): Only define if not defined already. * dump_setup.cc: Change include section to work with Mingw64 headers. (NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT. * strace.cc: Change include section to work with Mingw64 headers. (alloca): Only define if not defined already.
* * cygtls.cc (well_known_dlls): Add ole32.dll and wbemprox.dll.Corinna Vinschen2012-07-112-0/+6
|
* * cygwin.sc (.rdata): Revert patch from 2012-07-06.Corinna Vinschen2012-07-092-1/+5
|
* * passwd.cc (getpass): Make check for closed stream more reliable.Corinna Vinschen2012-07-092-8/+19
| | | | | Check if setting tty attributes worked and only revert to old state if so.
* * libc/stdio/fileno.c (fileno): Check if f is a valid stream. If not,Corinna Vinschen2012-07-092-1/+16
| | | | return -1 and set errno to EBADF per POSIX.
* * Makefile.in, configure.in, mkvers.sh: Revert accidental checkin fromCorinna Vinschen2012-07-094-11/+8
| | | | 2012-07-06.
* * Makefile.in: Change mingw_lib (temporarily?) back to w32api_lib.Christopher Faylor2012-07-082-1/+5
|
* * cygpath.cc: Change including headers to allow building againstCorinna Vinschen2012-07-066-38/+45
| | | | | | | | | | | | | | Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
* * winlean.h (__STRALIGN_H_): Drop definition.Corinna Vinschen2012-07-065-6/+16
|
* * mips.h: Fix a typo in description.Maciej W. Rozycki2012-07-062-1/+5
|
* * fhandler_procnet.cc: Fix copyright.Corinna Vinschen2012-07-065-4/+11
| | | | | | * syslog.cc: Ditto. * libc/minires-os-if.c: Ditto. * libc/minires.h: Ditto.
* Add files missing in previous checkinCorinna Vinschen2012-07-062-65/+52
|
* In terms of network related functionality, rely on Winsock definitionsCorinna Vinschen2012-07-0613-37/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as much as possible: * dtable.cc: Drop including sys/socket.h. * fhandler_procnet.cc: Change includes accordingly. * fhandler_socket.cc: Ditto. (fhandler_socket::listen): Avoid gcc error message initializing sin6. (LPFN_WSARECVMSG): Only define when building against w32api headers. * net.cc: Change includes accordingly. Define USE_SYS_TYPES_FD_SET and __WSA_ERR_MACROS_DEFINED. Define _INC_NETIOAPI temporarily and explain why. (struct _IP_ADAPTER_UNICAST_ADDRESS_LH): Only define when building against w32api headers. (struct _IP_ADAPTER_ADDRESSES_LH): Ditto. (SIO_GET_INTERFACE_LIST): Ditto. (ws_freeaddrinfo): Rename from freeaddrinfo so as not to collide with Winsock declaration. Change througout. (ws_getaddrinfo): Ditto. (ws_getnameinfo): Ditto. * select.cc: Include netdb.h after defining USE_SYS_TYPES_FD_SET. * syslog.cc: Drop including netinet/in.h. Define USE_SYS_TYPES_FD_SET and include ws2tcpip.h. * include/netdb.h (struct addrinfo): Don't define when building Cygwin. * include/cygwin/if.h: Don't declare if_xxx functions when building Cygwin. * include/cygwin/in.h: Disable most definitions when building Cygwin. * include/cygwin/socket.h: Disable sockaddr and sockaddr_storage definitions when building Cygwin. Same for MCAST_INCLUDE/MCAST_EXCLUDE. * libc/inet_addr.c: Don't define __INSIDE_CYGWIN__ nor __INSIDE_CYGWIN_NET__. * libc/inet_network.c: Ditto. * libc/minires.h: Drop redundant inclusion of netdb.h. Define __INSIDE_CYGWIN_NET__ only before including netdb.h and resolver headers.
* * include/winsock.h: Keep IP_OPTIONS and SO_xxx definitions whenCorinna Vinschen2012-07-063-4/+11
| | | | | | building Cygwin. * include/winsock2.h: Keep sockaddr and sockaddr_storage definitions when building Cygwin.
* * winbase.h: Throughout use LONG rather than long type to prepare forCorinna Vinschen2012-07-062-15/+26
| | | | | 64 bit. (InterlockedCompareExchangePointer): Define.
* * fhandler_registry.cc (RegOpenUserClassesRoot): Only define whenCorinna Vinschen2012-07-066-5/+48
| | | | | | | | | | | | | | | | | | building against w32api headers. (RegOpenCurrentUser): Ditto. * fhandler_tty.cc (GetNamedPipeClientProcessId): Ditto. * ntdll.h (enum _PROCESSINFOCLASS): Add ProcessImageFileName. (RtlInitAnsiString): Declare. (RtlUnicodeStringToAnsiSize): Declare. * sched.cc (GetForegroundWindow): Ditto. * sec_helper.cc (SECURITY_NT_NON_UNIQUE): Define as SECURITY_NT_NON_UNIQUE_RID when building against w32api headers. (cygsid::get_sid): Use SECURITY_NT_NON_UNIQUE rather than SECURITY_NT_NON_UNIQUE_RID. (__sec_user): Use PISECURITY_DESCRIPTOR rather than PSECURITY_DESCRIPTOR to allow valid pointer arithmetic. (_recycler_sd): Ditto. (_everyone_sd): Ditto.
* * advapi32.cc (_ADVAPI32_): Drop definition.Corinna Vinschen2012-07-063-13/+24
| | | | | | * kernel32.cc (_KERNEL32_): Ditto. * winlean.h: Add definitions required to use Mingw64 headers. (FILE_SHARE_VALID_FLAGS): Drop definition.
* * winsup.h (_WIN32_WINNT): Define. Explain why.Corinna Vinschen2012-07-062-1/+9
|
* * libc/rcmd.cc: Don't undef __INSIDE_CYGWIN_NET__.Corinna Vinschen2012-07-062-0/+5
|
* * cygwin.sc (.rdata): Include all sections starting with .rdata.Corinna Vinschen2012-07-062-1/+8
| | | | | (.debug_pubtypes): Make sure section is loaded at the end like all other debug sections.
* Allow building of Cygwin using Mingw64 SDK headers:Corinna Vinschen2012-07-064-5/+14
| | | | | | | | * libc/include/sys/time.h: Drop _WINSOCK_H guard. Just use _TIMEVAL_DEFINED instead. * libc/include/sys/types.h: Check for _WINSOCKAPI_ along with _WINSOCK_H. * libc/include/sys/unistd.h: Ditto.
* * Makefile.common (ALL_CFLAGS): Change := to = to allow overriding inCorinna Vinschen2012-07-062-1/+6
| | | | dependent Makefiles.
* gas/config/Sean Keys2012-07-051-1/+1
| | | | | | | | | | | | | | | | * tc-xgate.c: Revised assembler so that operands are collected before the addressing mode is determined. include/opcode/ * xgate.h: Changed the format string for mode XGATE_OP_DYA_MON. opcodes/ * xgate-dis.c: Removed an IF statement that will always be false due to overlapping operand masks. * xgate-opc.c: Corrected 'com' opcode entry and fixed spacing.
* * dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang.Christopher Faylor2012-07-042-1/+7
|
* * exceptions.cc (setup_handler): Remove unneeded assignment found by Clang.Christopher Faylor2012-07-042-1/+6
|
* * hookapi.cc (find_first_notloaded_dll): Remove unused assignment ofChristopher Faylor2012-07-042-2/+5
| | | | importRVASize found by Clang.
* * fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment toChristopher Faylor2012-07-042-1/+5
| | | | bytes_in_pipe found by Clang.
* fix typoChristopher Faylor2012-07-041-1/+1
|
* * exceptions.cc (exception::handle): Use error_code in klog, as intended.Christopher Faylor2012-07-032-2/+6
| | | | Found by Clang.
* * fhandler.h (class fhandler_dev_clipboard): Remove member eof.Corinna Vinschen2012-07-024-77/+87
| | | | | | | | | | | * fhandler_clipboard.cc: Throughout remove handling of eof member. (fhandler_dev_clipboard::write): Handle EOF condition immediately, rather than pushing it erroneously to the next read call. Rearrange code. Fix bug in CF_UNICODETEXT case which potentially dropped single bytes at the end of the buffer. Add comment. * strfuncs.cc (sys_cp_wcstombs): Allow returning non-NUL-terminated buffer if dst != NULL and len == (size_t) -1. Extend leading comment to explain what's returned in more detail.
* * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicateChristopher Faylor2012-07-022-1/+5
| | | | assignment found by Clang.
* * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS errorChristopher Faylor2012-07-022-0/+6
| | | | condition pointed to by Clang.
* * pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found byChristopher Faylor2012-07-022-2/+5
| | | | Clang.
* * external.cc (fillout_pinfo): Return NULL rather than 0.Christopher Faylor2012-07-022-5/+12
| | | | (exit_process): Guard against NULL pointer dereference found by Clang.
* * mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignmentChristopher Faylor2012-07-022-2/+7
| | | | | | found by CLANG. * path.cc (symlink_info::check): Remove unneeded/unused variable found by CLANG.
* * path.cc (symlink_info::check): Remove unneeded/unused variable.Christopher Faylor2012-07-022-3/+4
|
* * dll_init.cc (dll_list::alloc): Take long UNC paths into account.Corinna Vinschen2012-07-022-1/+12
|
* * Makefile.in: Add some more optimization flags for cygwait, malloc and ↵Christopher Faylor2012-07-029-16/+53
| | | | | | | | | | | | | | | | | | | | | path. Explain why -fomit-frame-pointer doesn't work right for passwd.o and path.o. Add -static to link command line for cygwin0.dll. * fhandler_disk_file.cc (fhandler_disk_file::facl): Reorganize slightly to silence compiler warning when compiling with -fstack-check. * net.cc (inet_ntop6): Initialize structure members to silence compiler warning when compiling with -fstack-check. * pseudo-reloc.cc (_pei386_runtime_relocator): Make this a C function. Detect NULL u. * winsup.h (_pei386_runtime_relocator): Declare this as extern "C". * lib/_cygwin_crt0_common.cc (_pei386_runtime_relocator): Call with NULL argument. * signal.cc (sigaction_worker): Eliminate last argument. Let callers report their own strace info. Regparmize. (sigaction): Reflect sigaction_worker changes. (siginterrupt): Ditto. * exceptions.cc: Update copyright.
* * path.cc: Perform some whitespace fixups throughout.Christopher Faylor2012-07-022-21/+26
|
* * kernel32.cc (_KERNEL32_): Define. Explain why.Corinna Vinschen2012-06-282-3/+12
| | | | (CreateFileMappingW): Drop undocumented flProtect flags.
* * fhandler_serial.cc: Fix includes for IOCTL codes to support Mingw64.Corinna Vinschen2012-06-285-32/+20
| | | | | | | | * fhandler_tape.cc: Ditto. * flock.cc (allow_others_to_sync): Use PISECURITY_DESCRIPTOR since PSECURITY_DESCRIPTOR is supposed to be the opaque type. * ntdll.h: Remove CreateDisposition flags again, now that they are defined in Mingw64's ntdef.h. Ditto for Create/Open flags.
* * exceptions.cc (RtlUnwind): Align declaration with MSDN.Corinna Vinschen2012-06-284-1/+43
| | | | | * ntdll.h: Define CreateDisposition Flags. Add comments. * winlean.h: Define FILE_SHARE_VALID_FLAGS if using Mingw64 headers.
* * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sureAlexandre Oliva2012-06-283-8/+14
| | | | | they contain -O2. * configure: Regenerate.
* * common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE,Iain D Sandoe2012-06-282-1/+18
| | | | AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines.
* * doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS.Corinna Vinschen2012-06-283-2/+7
| | | | * doc/Makefile.in: Regenerate.
* * cygwait.h (cancelable_wait): Make extern to avoid always including.Christopher Faylor2012-06-274-33/+51
| | | | | | | | | | * select.cc (allocfd_set): Try to make a little more efficient. (cygwin_select): Break into two functions to avoid what seems to be a strange compiler problem with alloca and sel constructor. (select): New function. Always honor return from call_signal_handler. (select_stuff::wait): Always honor return from call_signal_handler. * select.h (select_stuff::select_stuff): Use NULL to initialize pointers rather than 0.
* * exceptions.cc (exception::handle): Cast exception code to NTSTATUSCorinna Vinschen2012-06-273-60/+12
| | | | | | for comparison. * ntdll.h: Drop defining NT status codes in favor of including ntstatus.h.
* * miscfuncs.cc (WritePipeOverlapped): Define second parameter LPCVOID,Corinna Vinschen2012-06-273-3/+9
| | | | | rather than PCVOID. * miscfuncs.h (WritePipeOverlapped): Ditto.
* * advapi32.cc (_ADVAPI32_): Define. Explain why.Corinna Vinschen2012-06-274-3/+41
| | | | | | | | | | | | | (ImpersonateNamedPipeClient): Add missing WINAPI. * ntdll.h (STATUS_INVALID_PARAMETER): Only define if it isn't already. (STATUS_DLL_NOT_FOUND): Ditto. (STATUS_ENTRYPOINT_NOT_FOUND): Ditto. (enum _EVENT_TYPE): Guard against redefinition since it's already defined in Mingw64's ntdef.h. (enum _TIMER_TYPE): Ditto. (enum _SECTION_INHERIT): Define if using Mingw64 headers since it's missing in Mingw64's ntdef.h. * winlean.h (__STRALIGN_H_): Define before including windows.h.
* * winsup.h (GetLastError): Drop redundant definition.Corinna Vinschen2012-06-262-4/+5
|