summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): SimplifyCorinna Vinschen2006-01-302-1/+6
| | | | conditional.
* * fhandler_disk_file.cc (d_cachepos): Rename from d_pos to distinctCorinna Vinschen2006-01-302-7/+15
| | | | | clearly from __d_position. Change throughout. (fhandler_disk_file::rewinddir): Reset readdir cache on NT.
* * CYGWIN_LICENSE: Restrict to v2.Christopher Faylor2006-01-292-0/+345
| | | | * COPYING: Add.
* v2 onlyChristopher Faylor2006-01-291-3/+2
|
* * fhandler_disk_file.cc (readdir_get_ino): Don't follow symlinks.Corinna Vinschen2006-01-292-1/+5
|
* * fhandler.h (class fhandler_socket): Add saw_reuseaddr status flag.Corinna Vinschen2006-01-296-16/+69
| | | | | | | | | | * fhandler_socket.cc (fhandler_socket::bind): Set socket to SO_EXCLUSIVEADDRUSE if application didn't explicitely set SO_REUSEADDR socket option, on systems supporting SO_EXCLUSIVEADDRUSE. * net.cc (cygwin_setsockopt): Set fhandler's saw_reuseaddr status flag if SO_REUSEADDR socket option has been successsfully set. * wincap.h (wincaps::has_exclusiveaddruse): New element. * wincap.cc: Implement above element throughout.
* * include/winsock2.h (WINSOCK_API_LINKAGE): Define. Add toDanny Smith2006-01-292-97/+111
| | | | prototypes.
* * include/winnt.h (FORCEINLINE): Define.Danny Smith2006-01-292-0/+13
|
* * fhandler_disk_file.cc (fhandler_disk_file::mkdir): In case or error,Corinna Vinschen2006-01-282-0/+7
| | | | check for existance explicitely and set errno to EEXIST.
* * fhandler_disk_file.cc (DIR_NUM_ENTRIES): New define determiningCorinna Vinschen2006-01-282-60/+108
| | | | | | | | | | | | | minimum number of dir entries which fit into the readdir cache. (DIR_BUF_SIZE): Define globally as size of readdir cache. (struct __DIR_cache): New structure used for readdir caching on NT. (d_dirname): Accessor for struct __DIR_cache, use throughout. (d_pos): Ditto. (d_cache): Ditto. (fhandler_disk_file::opendir): Allocate __d_dirname to contain readdir cache on NT. (fhandler_disk_file::readdir): Use buf as pointer into readdir cache. Implement readdir caching.
* * include/sys/dirent.h (struct dirent): Revert misguided attempt toCorinna Vinschen2006-01-282-2/+7
| | | | rename __d_unused1 to __d_fd.
* Move cocom to the build requirements.Joshua Daniel Franklin2006-01-282-2/+7
|
* * autoload.cc (NtQueryDirectoryFile): Define.Corinna Vinschen2006-01-2714-182/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dir.cc (__opendir_with_d_ino): Just call opendir. (opendir): Remove CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO handling. (readdir_worker): Only try generating d_ino if it's 0. Utilize namehash of directories fhandler. Call readdir_get_ino to generate d_ino for "..". (seekdir64): Keep dirent_set_d_ino flag. * fhandler.h (enum dirent_states): Add dirent_get_d_ino. (class fhandler_disk_file): Declare new private methods readdir_helper and readdir_9x. * fhandler_disk_file.cc (path_conv::hasgood_inode): New method to evaluate if a filesystem has reliable inode numbers. (fhandler_base::fstat_by_handle): Accomodate structure member name change from IndexNumber to FileId. (fhandler_base::fstat_helper): Call hasgood_inode here. (fhandler_disk_file::opendir): Call fhaccess only for real files. Don't append '*' to __d_dirname here, move to readdir_9x. On NT, open directory handle here. Set dirent_get_d_ino and dirent_set_d_ino flags according to wincap and filesystem. (fhandler_disk_file::readdir_helper): New method to implement readdir postprocessing only once. (readdir_get_ino_by_handle): New static function. (readdir_get_ino): New function to centralize inode number evaluation in case inode number hasn't been returned by NtQueryDirectoryFile. (fhandler_disk_file::readdir): Move old functionality to readdir_9x. Call readdir_9x when on 9x/Me. Implement NT specific readdir here. (fhandler_disk_file::readdir_9x): Move 9x specific readdir here. (fhandler_disk_file::seekdir): Accomodate new NT readdir method. (fhandler_disk_file::closedir): Ditto. (fhandler_cygdrive::fstat): Set d_ino to namehash. Add comment. (fhandler_cygdrive::opendir): Call get_namehash to prepare later correct evaluation of d_ino. (fhandler_cygdrive::readdir): Replace recursion with loop. Evaluate drive's d_ino by calling readdir_get_ino. * fhandler_proc.cc (fhandler_proc::readdir): Set dirent_saw_dot and dirent_saw_dot_dot to avoid seeing . and .. entries twice. * fhandler_process.cc (fhandler_process::readdir): Ditto. * fhandler_registry.cc (fhandler_registry::readdir): Ditto. * ntdll.h (STATUS_INVALID_PARAMETER): New define. (STATUS_INVALID_LEVEL): New define. (struct _FILE_INTERNAL_INFORMATION): Rename member IndexNumber to FileId (as in Nebbitt). * path.h (path_conv::hasgood_inode): Now implemented in fhandler_disk_file.cc. * wincap.h (wincaps::has_fileid_dirinfo): New element. * wincap.cc: Implement above element throughout. * winsup.h (readdir_get_ino): Add declaration. * include/sys/dirent.h (struct dirent): Slightly rename structure members to accomodate changes. Remove __USE_EXPENSIVE_CYGWIN_D_INO handling and declaration of __opendir_with_d_ino.
* * spawn.cc (spawn_guts): Fix potential handle leak when failing exec.Christopher Faylor2006-01-272-1/+6
|
* * exceptions.cc (inside_kernel): Fix to return true if we can't get the name ofChristopher Faylor2006-01-273-1/+8
| | | | the DLL for the given memory block since we are not in kernel code.
* Add top-level READMEJoshua Daniel Franklin2006-01-273-26/+32
|
* * faq-programming.xml (faq.programming.ipc): Add new FAQ aboutJoshua Daniel Franklin2006-01-274-23/+39
| | | | | | cygserver and its relation to the "Bad system call" error. * faq-setup.xml (faq.setup.uninstall-all): Mention postgresql. * overview2.sgml: Update security info on shared memory.
* 2006-01-16 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2006-01-265-528/+1803
| | | | | | | | | | | | | | | | | * configure.in: Set with_gnu_as, with_gnu_ld, with_newlib earlier. Set md_exec_prefix. Use ACX_CHECK_INSTALLED_TARGET_TOOL to find the assembler, linker and binutils. * configure: Regenerate. config: 2006-01-16 Paolo Bonzini <bonzini@gnu.org> * acx.m4 (NCN_STRICT_CHECK_TARGET_TOOLS): Test $with_build_time_tools. (ACX_PATH_SEP): New. (ACX_TOOL_DIRS): Move here from the gcc directory. (ACX_CHECK_INSTALLED_TARGET_TOOL): New. (GCC_TARGET_TOOL): Do not use a host tool if we found a target tool with a complete path in either $with_build_time_tools or $exec_prefix.
* * fhandler.cc (fhandler_base::open): Fix bug in argument order toCorinna Vinschen2006-01-262-1/+6
| | | | InitializeObjectAttributes call.
* * faq-programming.xml (faq.programming.building-cygwin): AddJoshua Daniel Franklin2006-01-263-11/+40
| | | | | | | list of packages required for building and exact check instructions. * faq-setup.xml (faq.setup.uninstall-service): New instructions on uninstalling a cygwin service. (faq.setup.uninstall-all): Reference new service uninstall FAQ.
* * fhandler_disk_file.cc (fhandler_disk_file::readdir): Fix test forChristopher Faylor2006-01-262-1/+6
| | | | dirent_isroot to use the correct boolean operator.
* * include/winnt.h (DECLSPEC_SELECTANY): Define.Danny Smith2006-01-262-0/+12
|
* 2006-01-25 Filip Navara <xnavara@volny.cz>Danny Smith2006-01-262-0/+12
| | | | * include/winnt.h (DECLSPEC_ALIGN): Define.
* * faq-setup.xml (faq.setup.snapshots): Rename DLL using Windows tools.Corinna Vinschen2006-01-252-4/+8
|
* * ntdll.h: (temporarily?) Add more functions for querying directory.Christopher Faylor2006-01-252-7/+92
|
* * dir.cc (readdir_worker): Turn off expensive inode calculation.Christopher Faylor2006-01-242-0/+8
|
* * fhandler_process.cc (fhandler_process::fill_filebuf): DisableCorinna Vinschen2006-01-243-2/+28
| | | | | | stripping the .exe suffix from the link target in PROCESS_EXE and PROCESS_EXENAME case. * path.cc (realpath): Tack on .exe suffix if necessary.
* 2006-01-24 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-245-83/+77
| | | | | | | | * acinclude.m4: Add nodefine to AM_INIT_AUTOMAKE macro invocation so as not to define PACKAGE and VERSION in newlib.h. * aclocal.m4: Regenerated. * configure: Ditto. * newlib.hin: Ditto.
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): Try harderCorinna Vinschen2006-01-242-3/+31
| | | | | to determine remote file systems with reliable inode numbers. Add longish comment.
* * include/commctrl.h: Correct spelling of 'compatibility' inDanny Smith2006-01-244-9/+16
| | | | | | comments. * include/setupapi.h: Likewise. * include/ws2tcpip.h: Likewise.
* 2006-01-24 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2006-01-243-8/+39
| | | | | | | | | | | | | | | * include/ddk/winddk.h (KeGetCurrentKPCR): Support -masm=intel. 2006-01-24 Jiri Malak <Jiri.Malak@iol.cz> WATCOM compatibility changes. * include/ddk/ntddk.h (DECL_IMPORT): Define using __declspec, rather than __attribute__. (DECL_EXPORT): Likewise. * include/ddk/winddk.h (DDKAPI): Avoid using __attribute__. (DDKFASTAPI): Likewise. (DDKCDECLAPI): Likwise. (KeGetCurrentKPCR): Provide __WATCOMC__ syntax for inline code.
* * fhandler_socket.cc (fhandler_socket::fixup_after_fork): ResetCorinna Vinschen2006-01-232-1/+15
| | | | inheritance for duplicated socket.
* 2006-01-23 Brandon Sneed <brandon@redf.net>Danny Smith2006-01-232-0/+84
| | | | | * setupapi.def: Add all CM_* functions defined in ddk/cfgmgr32.h to exports.
* .Christopher Faylor2006-01-211-1/+1
|
* * include/cygwin/version.h: Bump API minor number to 151.Christopher Faylor2006-01-218-74/+75
| | | | | | | | | | | | | | | * dir.cc (__opendir_with_d_ino): New function. (opendir): Set flag if we should be calculating inodes. (readdir_worker): Calculate d_ino by calling stat if the user has asked for it. (seekdir64): Maintain all persistent flag settings. * fhandler.h (dirent_states): Add dirent_set_d_ino. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Reflect changes to dirent structure. * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto. * include/sys/dirent.h (struct dirent): Coalesce two similar structures. Remove all threads of the apparently highly confusing references to inodes. Add support for calculating a real inode if __USE_EXPENSIVE_CYGWIN_D_INO is defined.
* 2006-01-20 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-01-2036-119/+263
| | | | | | | | | | | | * acconfig.h: New file to generate newlib.hin from. * newlib.hin: Regenerated. * stamp-h.in: Regenerated. * Makefile.am: Add ACLOCAL_AMFLAGS so aclocal can be called automatically. * Makefile.in: Regenerated. * acinclude.m4: Add proper comment for hack in previous change. * aclocal.m4 */aclocal.m4: Regenerated. * configure */configure: Regenerated.
* * include/sys/dirent.h: Add comments for people who are REALLY confused aboutChristopher Faylor2006-01-202-13/+19
| | | | whether they should be using something called __invalid_d_ino or not.
* * fhandler_socket.cc (fhandler_socket::prepare): Fix debug output.Corinna Vinschen2006-01-202-8/+24
| | | | | | | (fhandler_socket::release): Add debug output for WSAEventSelect failure. (fhandler_socket::ioctl): Always cancel WSAEventSelect before switching to blocking mode. Only set nonblocking flag if ioctlsocket call succeeded. Only print new socket state if ioctlsocket call succeeded.
* * cygcheck.cc (common_paths): Add "patch".Christopher Faylor2006-01-192-0/+5
|
* * cygcheck.cc (init_paths): Record first_nonsys_path.Christopher Faylor2006-01-192-8/+13
| | | | (find_on_path): Start on first nonsys path when !search_sysdirs.
* white spaceChristopher Faylor2006-01-191-1/+1
|
* * fhandler_disk_file.cc (fhandler_disk_file::opendir): Check posix path forChristopher Faylor2006-01-192-2/+7
| | | | root rather than windows path.
* * dir.cc (readdir_worker): Fill in invalid fields with -1. Accommodate nameChristopher Faylor2006-01-193-5/+14
| | | | | | change from __ino32 to __invalid_ino32. * include/sys/dirent.h (__invalid_ino32): Rename from __ino32. Don't define unused d_type macros.
* Remove references to and files from old texinfo FAQ.Joshua Daniel Franklin2006-01-1917-3893/+19
|
* 2006-01-18 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2006-01-192-1/+5
| | | | * Makefile.in: Bump cygwin build number.
* include/elf/ChangeLog:Alexandre Oliva2006-01-184-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce TLS descriptors for i386 and x86_64. * common.h (DT_TLSDESC_GOT, DT_TLSDESC_PLT): New. * i386.h (R_386_TLS_GOTDESC, R_386_TLS_DESC_CALL, R_386_TLS_DESC): New. * x86-64.h (R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC_CALL, R_X86_64_TLSDESC): New. bfd/ChangeLog: Introduce TLS descriptors for i386 and x86_64. * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. * libbfd.h, bfd-in2.h: Rebuilt. * elf32-i386.c (elf_howto_table): New relocations. (R_386_tls): Adjust. (elf_i386_reloc_type_lookup): Map new relocations. (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. (struct elf_i386_link_hash_entry): Add tlsdesc_got field. (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. (elf_i386_local_tlsdesc_gotent): New macro. (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. (elf_i386_compute_jump_table_size): New macro. (link_hash_newfunc): Initialize tlsdesc_got. (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL. (elf_i386_check_relocs): Likewise. Allocate space for local_tlsdesc_gotent. (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL. (allocate_dynrelocs): Count function PLT relocations. Reserve space for TLS descriptors and relocations. (elf_i386_size_dynamic_sections): Reserve space for TLS descriptors and relocations. Set up sgotplt_jump_table_size. Don't zero reloc_count in srelplt. (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL. (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. (elf_backend_always_size_sections): Define. * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. (R_X86_64_standard): Adjust. (x86_64_reloc_map): Map new relocs. (elf64_x86_64_rtype_to_howto): New, split out of... (elf64_x86_64_info_to_howto): ... this function, and... (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. (elf64_x86_64_local_tlsdesc_gotent): New macro. (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, tlsdesc_got and sgotplt_jump_table_size fields. (elf64_x86_64_compute_jump_table_size): New macro. (link_hash_newfunc): Initialize tlsdesc_got. (elf64_x86_64_link_hash_table_create): Initialize new fields. (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and R_X86_64_TLSDESC_CALL. (elf64_x86_64_check_relocs): Likewise. Allocate space for local_tlsdesc_gotent. (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and R_X86_64_TLSDESC_CALL. (allocate_dynrelocs): Count function PLT relocations. Reserve space for TLS descriptors and relocations. (elf64_x86_64_size_dynamic_sections): Reserve space for TLS descriptors and relocations. Set up sgotplt_jump_table_size, tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT and DT_TLSDESC_GOT. (elf64_x86_64_always_size_sections): New. Set up _TLS_MODULE_BASE_. (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL. (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. (elf_backend_always_size_sections): Define. binutils/ChangeLog: Introduce TLS descriptors for i386 and x86_64. * readelf.c (get_dynamic_type): Handle DT_TLSDESC_GOT and DT_TLSDESC_PLT. gas/ChangeLog: Introduce TLS descriptors for i386 and x86_64. * config/tc-i386.c (tc_i386_fix_adjustable): Handle BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL. (optimize_disp): Emit fix up for BFD_RELOC_386_TLS_DESC_CALL and BFD_RELOC_X86_64_TLSDESC_CALL immediately, and clear the displacement bits. (build_modrm_byte): Set up zero modrm for TLS desc calls. (lex_got): Handle @tlsdesc and @tlscall. (md_apply_fix, tc_gen_reloc): Handle the new relocations. ld/testsuite/ChangeLog: Introduce TLS descriptors for i386 and x86_64. * ld-i386/i386.exp: Run on x86_64-*-linux* and amd64-*-linux*. Add new tests. * ld-i386/pcrel16.d: Add -melf_i386. * ld-i386/pcrel8.d: Likewise. * ld-i386/tlsbindesc.dd: New. * ld-i386/tlsbindesc.rd: New. * ld-i386/tlsbindesc.s: New. * ld-i386/tlsbindesc.sd: New. * ld-i386/tlsbindesc.td: New. * ld-i386/tlsdesc.dd: New. * ld-i386/tlsdesc.rd: New. * ld-i386/tlsdesc.s: New. * ld-i386/tlsdesc.sd: New. * ld-i386/tlsdesc.td: New. * ld-i386/tlsgdesc.dd: New. * ld-i386/tlsgdesc.rd: New. * ld-i386/tlsgdesc.s: New. * ld-x86-64/x86-64.exp: Run new tests. * ld-x86-64/tlsbindesc.dd: New. * ld-x86-64/tlsbindesc.rd: New. * ld-x86-64/tlsbindesc.s: New. * ld-x86-64/tlsbindesc.sd: New. * ld-x86-64/tlsbindesc.td: New. * ld-x86-64/tlsdesc.dd: New. * ld-x86-64/tlsdesc.pd: New. * ld-x86-64/tlsdesc.rd: New. * ld-x86-64/tlsdesc.s: New. * ld-x86-64/tlsdesc.sd: New. * ld-x86-64/tlsdesc.td: New. * ld-x86-64/tlsgdesc.dd: New. * ld-x86-64/tlsgdesc.rd: New. * ld-x86-64/tlsgdesc.s: New.
* merge from gccDJ Delorie2006-01-182-0/+6
|
* * heap.cc (heap_init): Remove Sleep.Christopher Faylor2006-01-182-8/+8
|
* * net.cc (rresvport): Remove extern declaration.Corinna Vinschen2006-01-182-1/+4
|
* * autoload.cc (rresvport): Remove.Corinna Vinschen2006-01-183-2/+66
| | | | | | * net.cc (last_used_rrecvport): New global shared variable. (cygwin_rresvport): Implement rresvport without using rresvport from wsock32.