summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * include/features.h: Add comment to explain what's going to happenCorinna Vinschen2006-02-053-0/+27
| | | | | | here at one point. * include/sys/stdio.h: Guard getline and getdelim prototypes with _GNU_SOURCE to avoid collision with old-style declarations.
* * cygwinenv.sgml: Explain transparent_exe option.Corinna Vinschen2006-02-052-0/+17
|
* * environ.cc (struct parse_thing): Add transparent_exe option.Corinna Vinschen2006-02-057-37/+108
| | | | | | | | | | | | | | | | | * fhandler_disk_file.cc (fhandler_disk_file::link): Accomodate transparent_exe option. Add .exe suffix for links to executable files, if transparent_exe is set. * fhandler_process.cc (fhandler_process::fill_filebuf): Remove .exe suffix if transparent_exe option is set. * path.cc (symlink_worker): Accomodate transparent_exe option. (realpath): Don't tack on .exe suffix if transparent_exe is set. * syscalls.cc (transparent_exe): New global variable. (unlink): Accomodate transparent_exe option. (open): Ditto. (link): Ditto. (rename): Ditto. Maybe add .exe suffix when renaming executable files. (pathconf): Accomodate transparent_exe option. * winsup.h: Declare transparent_exe.
* * fhandler_disk_file.cc (fhandler_disk_file::readdir_9x): RemoveCorinna Vinschen2006-02-052-5/+6
| | | | useless code.
* Cleanup of pseudo-ops for constants and new def24,def32 pseudo-ops on z80Arnold Metselaar2006-02-052-0/+5
|
* * fhandler_disk_file.cc (fhandler_disk_file::rewinddir): Remove labelCorinna Vinschen2006-02-052-7/+12
| | | | | "out". Move test for NULL __handle ... (fhandler_disk_file::rewinddir_9x): ... here.
* ... and the ChangeLog, never forget the ChangeLog...Corinna Vinschen2006-02-051-0/+4
|
* * dir.cc (rewinddir): Keep dirent_get_d_ino and dirent_set_d_ino flags.Corinna Vinschen2006-02-051-1/+1
|
* * fhandler_disk_file.cc (fhandler_disk_file::readdir): Don't close dir handleChristopher Faylor2006-02-052-15/+31
| | | | | | | | when we hit EOF since rewwindir may reactivate it. (fhandler_disk_file::readdir_9x): Eliminate superfluous temporary variable. (fhandler_disk_file::closedir): Return EBADF when trying to close unopened DIR. Reorganize slightly. Return actual derived error value rather than always returning 0.
* 2006-02-04 Ron Lee <ronl@users.sourceforge.net>Danny Smith2006-02-042-10/+14
| | | | * include/winnls.h: Remove stray end ';' from preprocessor defines.
* * dir.cc (rmdir): Reorganize check for trailing dot to return correct errorChristopher Faylor2006-02-042-6/+8
| | | | when directory does not exist.
* * dir.cc (mkdir): Reorganize check for trailing dot to return correct errorChristopher Faylor2006-02-043-8/+9
| | | | | | when directory exists. * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Remove special test for path ending in '.'.
* * path.cc (suffix_scan::lnk_match): Return true beginning withCorinna Vinschen2006-02-033-10/+20
| | | | | | | | | SCAN_APPENDLNK. (suffix_scan::next): Rearrange code to make .lnk append order slightly more deterministic. * spawn.cc (exe_suffixes): Try no suffix before .exe suffix to align evaluation with stat_suffixes. (dll_suffixes): Ditto.
* * cygwin/version.h: Mention CW_SETUP_WINENV in comment for API minor 153.Christopher Faylor2006-02-022-1/+6
|
* * cygwin.din (updwtmpx): Export.Corinna Vinschen2006-02-025-1/+18
| | | | | | * syscalls.cc (updwtmpx): New function. * include/utmpx.h (updwtmpx): Declare. * include/cygwin/version.h: Bump API minor number to 153.
* * external.cc (setup_winenv): New function.Christopher Faylor2006-02-023-1/+32
| | | | | (cygwin_internal): Implement CW_SETUP_WINENV. * sys/cygwin.h (cygwin_getinfo_types): Define CW_SETUP_WINENV.
* * security.cc (is_group_member): Fix comment.Corinna Vinschen2006-02-022-5/+10
|
* * security.cc (is_group_member): Use local group info type 1. TestCorinna Vinschen2006-02-022-6/+34
| | | | | group for being a global group or a well-known SID before adding it to the group list. Add comment.
* Mention new cygcheck -p option.Joshua Daniel Franklin2006-02-022-4/+11
|
* * lib/iphlpapi.def: (NotifyAddrChange@8): Define.Danny Smith2006-02-022-0/+8
| | | | | Reported by: Daniel Atallah <datallah at users dot sf dot net> (NotifyRouteChange@8): Define.
* * autoload.cc (GetTcpTable): Define.Corinna Vinschen2006-02-012-1/+43
| | | | | | | * fhandler_socket.cc (address_in_use): New function to check if sockaddr_in address is already in use. (fhandler_socket::bind): Check if address is alreay in use in case of SO_REUSEADDR, to circumvent WinSock non-standard behaviour.
* * spawn.cc (dll_suffixes): Add .exe and "no suffix" to the list.Corinna Vinschen2006-02-012-0/+5
|
* * dlfcn.cc (check_path_access): Call find_exec with FE_DLL option.Corinna Vinschen2006-01-314-13/+31
| | | | | | | | | | | | * path.h (enum fe_types): Add FE_DLL value. * spawn.cc (std_suffixes): Remove. (exe_suffixes): New suffix_info for executing files. (dll_suffixes): New suffix_info for searching shared libraries. (perhaps_suffix): Add opt argument. Use dll_suffixes if FE_DLL option is given, exe_suffixes otherwise. (find_exec): Propagate opt argument to perhaps_suffix. Drop suffix check when testing execute permission. (spawn_guts): Call perhaps_suffix with FE_NADA opt argument.
* * spawn.cc (av::fixup): Remove unused argument.Christopher Faylor2006-01-312-4/+9
| | | | (spawn_guts): Remove capitalization in debugging.
* * spawn.cc (find_exec): Only return files with execute permission setCorinna Vinschen2006-01-313-12/+27
| | | | | | | if ntsec is on. Don't check execute permission of Windows batch files. (av::fixup): Handle empty files gracefully. Drop execute permission test here. * path.cc (suffix_scan::next): Don't skip any suffix on first run.
* 2006-01-31 Leif Ekblad <leif@rdos.net>Jeff Johnston2006-01-3136-1/+12877
| | | | | | | | | | | | | | | | | | | | | | * configure.host: RDOS support added * libc/include/sys/config.h: Ditto. * libc/sys/rdos/Makefile.am, libc/sys/rdos/Makefile.in: New files. * libc/sys/rdos/aclocal.m4, libc/sys/rdos/chown.c: Ditto. * libc/sys/rdos/close.c, libc/sys/rdos/config.h: Ditto. * libc/sys/rdos/configure, libc/sys/rdos/configure.in: Ditto. * libc/sys/rdos/crt0.S, libc/sys/rdos/execve.c: Ditto. * libc/sys/rdos/fork.c, libc/sys/rdos/fstat.c: Ditto. * libc/sys/rdos/getenv.c, libc/sys/rdos/getpid.c: Ditto. * libc/sys/rdos/gettod.c, libc/sys/rdos/isatty.c: Ditto. * libc/sys/rdos/kill.c, libc/sys/rdos/link.c: Ditto. * libc/sys/rdos/lseek.c, libc/sys/rdos/open.c: Ditto. * libc/sys/rdos/rdos.S, libc/sys/rdos/rdos.h: Ditto. * libc/sys/rdos/rdoshelp.c, libc/sys/rdos/read.c: Ditto. * libc/sys/rdos/readlink.c, libc/sys/rdos/sbrk.c: Ditto. * libc/sys/rdos/stat.c, libc/sys/rdos/symlink.c: Ditto. * libc/sys/rdos/times.c, libc/sys/rdos/unlink.c: Ditto. * libc/sys/rdos/user.def, libc/sys/rdos/wait.c: Ditto. * libc/sys/rdos/write.c: Ditto.
* * path.cc (cwdstuff::set): Don't set win32 error, only POSIX errno.Corinna Vinschen2006-01-312-2/+7
|
* * path.cc (cwdstuff::set): When SetCurrentDirectory returnsCorinna Vinschen2006-01-312-0/+16
| | | | | ERROR_INVALID_FUNCTION, bend it over to ERROR_FILE_NOT_FOUND. Add comment to explain why.
* 2006-01-31 Paul Brook <paul@codesourcery.com>Paul Brook2006-01-312-48/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Richard Earnshaw <rearnsha@arm.com> * gas/config/tc-arm.c: Use arm_feature_set. (arm_ext_*, arm_arch_full, arm_arch_t2, arm_arch_none, arm_cext_iwmmxt, arm_cext_xscale, arm_cext_maverick, fpu_fpa_ext_v1, fpu_fpa_ext_v2, fpu_vfp_ext_v1xd, fpu_vfp_ext_v1, fpu_vfp_ext_v2): New variables. (insns): Use them. (md_atof, opcode_select, opcode_select, md_assemble, md_assemble, md_begin, arm_parse_extension, arm_parse_cpu, arm_parse_arch, arm_parse_fpu, arm_parse_float_abi, aeabi_set_public_attributes, s_arm_cpu, s_arm_arch, s_arm_fpu): Use macros for accessing CPU feature flags. (arm_legacy_option_table, arm_option_cpu_value_table): New types. (arm_opts): Move old cpu/arch options from here... (arm_legacy_opts): ... to here. (md_parse_option): Search arm_legacy_opts. (arm_cpus, arm_archs, arm_extensions, arm_fpus) (arm_float_abis, arm_eabis): Make const. * include/opcode/arm.h: Use ARM_CPU_FEATURE. (ARM_AEXT_*, FPU_ENDIAN_PURE, FPU_VFP_HARD): New. (arm_feature_set): Change to a structure. (ARM_CPU_HAS_FEATURE, ARM_MERGE_FEATURE_SETS, ARM_CLEAR_FEATURE, ARM_FEATURE): New macros.
* * dir.cc (readdir_worker): Add comment about writing old 32 bit d_ino.Corinna Vinschen2006-01-312-8/+8
| | | | | * include/cygwin/version.h: Bump API minor number to 152. (CYGWIN_VERSION_CHECK_FOR_NEEDS_D_INO): Remove.
* * 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.