summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * ntdll.h (NtNotifyChangeDirectoryFile): Declare.Corinna Vinschen2007-08-215-29/+91
| | | | | | | | | | | | | | (NtQueryAttributesFile): Move to maintain alphabetical order of declarations. Add comment to note that timestamp information returned by NtQueryAttributesFile is unreliable. * path.h (etc::changed_h): Move here. (etc::fn): Change type to OBJECT_ATTRIBUTES. (etc::last_modified): Change type to LARGE_INTEGER. (etc::init): Take PUNICODE_STRING as second argument. * path.cc: Accomodate above changes. (etc::test_file_change): Use NT native functions. (etc::dir_changed): Ditto. * uinfo.cc (pwdgrp::load): Call etc::init with NT native path.
* * fhandler_disk_file.cc: Change debugging output througout to printCorinna Vinschen2007-08-212-15/+20
| | | | the NT status consistently. Use UNICODE path information if available.
* Bring over from the GCC tree:Ben Elliston2007-08-213-4/+9
| | | | | | | 2007-08-21 Richard Guenther <rguenther@suse.de> * configure.ac: Add types checking to stage1 checking flags. * configure: Regenerate.
* * hookapi.cc (ld_preload): Call LoadLibraryW.Corinna Vinschen2007-08-203-1/+13
| | | | * path.h (path_conv::get_wide_win32_path_len): Define.
* * fhandler.cc (rootdir): Delete.Corinna Vinschen2007-08-203-90/+5
| | | | * winsup.h (rootdir): Drop declaration.
* * path.cc (fillout_mntent): Append backslash to drive-only paths beforeCorinna Vinschen2007-08-193-14/+14
| | | | | | calling fs_info::update. * path.h (fs_info::clear): Simplify. (fs_info::fs_info): Add constructor.
* 2007-08-18 Paul Brook <paul@codesourcery.com>Joseph Myers2007-08-187-6/+58
| | | | | | | | | | | | | | | | | Joseph Myers <joseph@codesourcery.com> * Makefile.tpl (DEBUG_PREFIX_CFLAGS_FOR_TARGET): New. (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Include it. * Makefile.in: Regenerate. * configure.ac (--with-debug-prefix-map): New. * configure: Regenerate. config: 2007-08-18 Paul Brook <paul@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * mt-gnu (CXXFLAGS_FOR_TARGET): Add $(DEBUG_PREFIX_CFLAGS_FOR_TARGET).
* * spawn.cc (spawn_guts): Fix typo in comment.Corinna Vinschen2007-08-172-1/+5
|
* * autoload.cc (CloseDesktop): Define.Corinna Vinschen2007-08-173-18/+65
| | | | | | | | | (CreateDesktopA): Define. (SetThreadDesktop): Define. * spawn.cc (spawn_guts): When starting a process under another user account, don't open up permissions on current window station and desktop. Instead, if not in interactive session, create a new per-user window station plus default desktop and use that for the child process.
* 2007-08-17 Richard Sandiford <richard@codesourcery.com>Richard Sandiford2007-08-174-0/+22
| | | | | | | | | Nigel Stephens <nigel@mips.com> * config/mt-sde: New file. * configure.ac (mips*-sde-elf*): New stanza. Use config/mt-sde as target_makefile_frag. * configure: Regenerate.
* * Makefile.def (STAGE2_CFLAGS, STAGE3_CFLAGS, STAGE4_CFLAGS):Alexandre Oliva2007-08-174-222/+2770
| | | | | | | | Add to flags_to_pass. Adjust uses of BOOT_CFLAGS. (bootstrap2-debug, bootstrap-debug): New bootstrap stages. * Makefile.tpl (STAGE2_CFLAGS, STAGE3_CFLAGS, STAGE4_CFLAGS): New. (do-compare, do-compare3, do-compare-debug): New. ([+compare-target+]): Use them.
* bfd/H.J. Lu2007-08-162-2/+5
| | | | | | | | | | | | | | | | | | 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> * elf.c: Revert last change. binutils/ 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> * readelf.c: Revert last change. include/elf/ 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> * common.h: Revert last change.
* * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Handle S_IFSOCKCorinna Vinschen2007-08-163-4/+10
| | | | | | mode bit by setting the SYSTEM attribute. * fhandler_socket.cc (fhandler_socket::fchmod): Add S_IFSOCK mode bit when calling fhandler_disk_file::fchmod. Don't set attributes here.
* * path.h (path_conv::operator char *): Delete.Corinna Vinschen2007-08-169-38/+54
| | | | | | | | | | | | | (path_conv::operator const char *): Delete. * dlfcn.cc: Throughout, replace path_conv::operator char * and path_conv::operator const char * by call to path_conv::get_win32 for easier transition to UNICODE_PATHs. * fhandler_socket.cc: Ditto. * hookapi.cc: Ditto. * path.cc: Ditto. * spawn.cc: Ditto. * syscalls.cc: Ditto. * uinfo.cc: Ditto.
* * dir.cc (readdir_worker): Convert w32name to PUNICODE_STRING.Corinna Vinschen2007-08-165-10/+18
| | | | | | * sec_acl.cc (getacl): Convert debug output to print native NT path. * security.cc (set_file_attribute): Ditto. * syscalls.cc (try_to_bin): Ditto and fix buggy debug statement.
* * ntdll.h (RtlAcquirePebLock): Declare.Corinna Vinschen2007-08-163-5/+12
| | | | | (RtlReleasePebLock): Declare. * path.cc (cwdstuff::set): Change PEB only while it's locked.
* * fhandler.h (fhandler_base::get_namehash): Use NT native path.Corinna Vinschen2007-08-163-2/+8
| | | | | * fhandler_disk_file.cc (readdir_get_ino): Ditto in call to hash_path_name.
* bfd/H.J. Lu2007-08-162-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> * elf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR. (bfd_section_from_phdr): Likewise. (get_program_header_size): Likewise. Add a PT_GNU_ATTR segment if there is an attribute section. (_bfd_elf_map_sections_to_segments): Likewise. (IS_SECTION_IN_INPUT_SEGMENT): Likewise. binutils/ 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> * readelf.c (get_segment_type): Change PT_GNU_STACK to PT_GNU_ATTR. include/elf/ 2007-08-16 H.J. Lu <hongjiu.lu@intel.com> * common.h (PT_GNU_STACK): Renamed to ... (PT_GNU_ATTR): This. (PT_GNU_STACK): New. Make an alias of PT_GNU_ATTR.
* * ntdll.h (RtlCreateUnicodeStringFromAsciiz): Fix declaration.Corinna Vinschen2007-08-164-46/+70
| | | | | | | | | | | | (RtlUpcaseUnicodeChar): Declare. * path.cc (hash_path_name): Split into three functions, taking the path as char *, PWCSTR, or PUNICODE_STRING. Move implementation into PUNICODE_STRING-based function. Drop old drive-relative path consideration. * winsup.h (iswdirsep): Like isdirsep but for WCHARs. (isabspath_u): Like isabspath, for PUNICODE_STRINGs. (iswabspath): Like isabspath, for PWCHARs. (hash_path_name): Add new declarations.
* * path.cc (get_nt_native_path): Allow to convert special paths whichCorinna Vinschen2007-08-153-11/+19
| | | | | | have no native NT path representation for simplified debug output. * syscalls.cc: Convert debug output to print native NT path. (unlink): Drop redundant debug output.
* * fhandler_disk_file.cc (fhandler_disk_file::link): Drop superfluousCorinna Vinschen2007-08-153-8/+6
| | | | | test for trailing dot. * path.h (path_conv::operator []): Remove.
* * fhandler_socket.cc (get_inet_addr): Use NT native functions forCorinna Vinschen2007-08-153-21/+51
| | | | | | accessing the file representing the local socket. (fhandler_socket::bind): Ditto. * ntdll.h: Declare NtReadFile.
* * path.cc (symlink_info::check): In case of ERROR_SHARING_VIOLATION andCorinna Vinschen2007-08-142-3/+22
| | | | | ERROR_ACCESS_DENIED, try to get file attributes by using directory functions.
* * path.cc (fs_info::update): Correctly handle the volume root directory.Corinna Vinschen2007-08-142-2/+9
|
* * fhandler.h (fhandler_base::pc): Make public.Corinna Vinschen2007-08-147-25/+39
| | | | | | | | | | | | | | | * fhandler_disk_file.cc (fhandler_disk_file::link): Drop extern declaration of stat_suffixes. Use NT native path in debug output. (fhandler_base::utimes_fs): Simplify closeit case. Use close_fs to close newly opened file handle. (fhandler_base::open_fs): Use NT native path in debug output. * path.cc: Throughout drop extern declaration of stat_suffixes. * path.h (stat_suffixes): Declare. * sec_acl.cc (acl_worker): Drop extern declaration of stat_suffixes. * times.cc (utimes_worker): Take path_conv as parameter instead of single-byte pathnam, drop nofollow argument, accommodate throughout. Compare UNICODE paths when enumerating file descriptors. Fix formatting. Use NT native path in debug output.
* * mmap.cc: Call NtClose instead of CloseHandle throughout.Corinna Vinschen2007-08-132-17/+32
| | | | | (CreateMapping): Drop unused last argument. Accommodate throughout. (mmap64): Re-open file with execute permissions using NtOpenFile.
* * fhandler.h (fhandler_base::close_fs): Reintroduce (as inline function)Corinna Vinschen2007-08-134-5/+12
| | | | | | | | for clearness. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Revert previous change. (fhandler_base::open_fs): Ditto. * fhandler_socket.cc (fhandler_socket::close): Ditto.
* 2007-08-13 Carlos O'Donell <carlos@codesourcery.com>Jeff Johnston2007-08-132-4/+5
| | | | | * arm/crt0.S: Remove '.set' for __stack, hardware_init_hook, and software_init_hook.
* * Makefile.in (DLL_OFILES): Remove delqueue.o.Corinna Vinschen2007-08-139-162/+36
| | | | | | | | | | | | | | | | | | | | | | | | * delqueue.cc: Delete. * fhandler.h (fhandler_base::close_fs): Drop declaration. (fhandler_disk_file::close): Drop declaration. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Call close instead of close_fs. (fhandler_base::fstat_helper): Use open FH_UNIX handle in call to get_file_attribute. (fhandler_base::open_fs): Call close instead of get_file_attribute. (fhandler_disk_file::close): Remove. (fhandler_base::close_fs): Remove. * fhandler_socket.cc (fhandler_socket::close): Just call fhandler_base::close for FH_UNIX sockets. * shared.cc (user_shared_initialize): Drop call to user_shared->delqueue.init. * shared_info.h (CURR_USER_MAGIC): Change according to below change. (MAX_DELQUEUES_PENDING): Remove. (class delqueue_list): Remove. (class user_info): Remove delqueue. * syscalls.cc (close_all_files): Drop call to user_shared->delqueue.process_queue. (unlink): Drop delqueue handling.
* * devices.in (dev_storage): Use native NT device name for kmsg mailslot.Corinna Vinschen2007-08-138-45/+79
| | | | | | | | | | | | | | | * devices.cc: Regenerate. * fhandler.cc (fhandler_base::operator =): Use path_conv assignment operator. (fhandler_base::set_name): Ditto. (fhandler_base::open): Use NT native path in debug output. * fhandler_mailslot.cc: Convert to NT native function calls. * ntdll.h (struct _FILE_MAILSLOT_SET_INFORMATION): Define. (NtCreateMailslotFile): Declare. * path.cc (path_conv::set_normalized_path): Don't set wide_path to NULL. (path_conv::set_name): Remove unused function. * path.h (path_conv::set_name): Drop declaration. (path_conv::operator =): Define.
* * standards.texi: Import 22 July 2007 version.Nick Clifton2007-08-134-570/+1264
| | | | | * fdl.texi: Import version 1.2. * make-stds.texi: Import 2006 version.
* * configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS, baseargs): PassBen Elliston2007-08-133-0/+19
| | | | | --silent if $silent. * configure: Regenerate.
* * faq-programming.xml: Clarify where to run "make check".Christopher Faylor2007-08-122-2/+7
|
* * src-release (DEVO_SUPPORT): Add COPYING3 and COPYING3.LIB.Daniel Jacobowitz2007-08-122-1/+6
|
* * fhandler.cc (fhandler_base::open): Remove HIDDEN_DOT_FILES code.Corinna Vinschen2007-08-124-17/+6
| | | | | * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Ditto. * path.cc (symlink_worker): Ditto.
* * syscalls.cc (getw): Remove redundant implementation.Corinna Vinschen2007-08-122-56/+8
| | | | | | | (putw): Ditto. (wcscmp): Ditto. (wcslen): Ditto. (memccpy): Ditto.
* * ntdll.h: Add descriptive comments to special Rtl functions.Corinna Vinschen2007-08-124-74/+294
| | | | | | | | | | | | | | | | | | | | | (STATUS_OBJECT_PATH_NOT_FOUND): Define. (STATUS_BUFFER_OVERFLOW): Define. (FILE_SUPERSEDED): Define. (FILE_OPENED): Define. (FILE_CREATED): Define. (FILE_OVERWRITTEN): Define. (FILE_EXISTS): Define. (FILE_DOES_NOT_EXIST): Define. (PIO_APC_ROUTINE): Typedef. (NtFsControlFile): Fix parameter types to use PIO_APC_ROUTINE. (NtWriteFile): Declare. (RtlInt64ToHexUnicodeString): Declare. * strfuncs.cc: Include ntdll.h. (RtlInt64ToHexUnicodeString): New function. * syscalls.cc (try_to_bin): Rewrite using native NT functions. Only try to create recycle bin after unsuccessfully trying to move file. Also try to create special files in recycle bin so that Windows Explorer isn't unnecessarily stampeded.
* 2007-08-10 Carlos O'Donell <carlos@codesourcery.com>Jeff Johnston2007-08-102-166/+402
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com> * arm/syscalls.c (_stat): Use _close * arm/syscalls.c (struct poslog): Rename to... (struct fdent): ... this. (FILE_HANDLE_OFFSET): Remove. (findslot): Return a struct fdent* if fd is valid, otherwise return NULL. (newslot): New function. (remap_handle): Remove. (initialise_monitor_handles): Use stdout as fallback for stderr. (wrap): Rename to... (checkerror): ... this. (_swiread): Use checkerror() for the return of SWI calls. Correct the use of r0. (_read): Use findslot(). Return EBADF on bad handle. (_swilseek): Call findslot(). Check for valid whence. Check for negative offset when using SEEK_CUR, and check for overflow. Use checkerror(). Check *_Flen calls for errors. (_swiwrite): Correct the use of r0. (_write): Call findslot(). (_swiopen): Call findslot(). Check for valid flags. Use checkerror(). Call newslot(). Handle O_TRUNC, and O_WRONLY. Return index into openfiles[] for fd. (_swiclose): Correct the use of r0. (_close): Handle stderr == stdout case. Only reclaim handle if _swiclose succeeded. (_getpid): Use __attribute__((unused)). (_sbrk): Fix formatting. (_swistat): New function. (_stat): Call _swistat(). (_fstat): Call _swistat(). (_unlink): Correct the use of r0. (isatty): Call finslot(). Correct the use of r0. (_system): Call checkerror(). Correct the use of r0. (_rename): Correct the use of r0.
* * path.cc (fillout_mntent): Fix calculation of unicode buffer size.Corinna Vinschen2007-08-102-1/+6
|
* * syscalls.cc (rename): Check oldpath and newpath for trailing dirCorinna Vinschen2007-08-102-31/+127
| | | | | | | | | | | | | separators, require them to be existing directories if so. Check for a request to change only the case of the filename. Check paths for case insensitve equality only once. Handle renaming a directory to another, existing directory by unlinking the destination directory first. If newpath points to an existing file with R/O attribute set, try to unset R/O attribute first. Augment hardlink test by not checking directories. If renaming fails with STATUS_ACCESS_DENIED, try to unlink existing destination filename and try renaming again. Drop useless test for non-empty directory. Always close fh at the end of the function.
* * gendef (sigbe): Reset "incyg" while the stack lock is active to avoid aChristopher Faylor2007-08-092-1/+6
| | | | potential race.
* * syscalls.cc (rename): Close oldpath file handle immediately afterCorinna Vinschen2007-08-093-4/+14
| | | | | | trying to rename it. Use nfh handle when checking for non-empty newpath directory. Only change status if check_dir_not_empty really returns STATUS_DIRECTORY_NOT_EMPTY.
* 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-08-032-1/+2
| | | | | * include/_mingw.h: Increment version to 3.13. * Makefile.in: Reset CYGRELEASE to 1
* 2007-03-25 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>Chris Sutcliffe2007-08-032-2/+6
| | | | * include/_mingw.h: Increment version to 3.13.
* 2007-08-03 Chris Sutcliffe <ir0nh34d@users.sf.net>Chris Sutcliffe2007-08-033-3/+8
| | | | | * include/w32api.h: Increment version to 3.10. * Makefile.in: Ditto.
* 2007-08-03 Ralf Corsepius <ralf.corsepius@rtems.org>Jeff Johnston2007-08-032-0/+43
| | | | * libc/include/tar.h: New.
* 2007-08-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-08-034-17/+25
| | | | | | | | * libc/sys/linux/intl/Makefile.am: Change stpcpy reference to lcl_stpcpy to avoid conflict with new stpcpy.c in libc/string. * libc/sys/linux/intl/Makefile.in: Regenerated. * libc/sys/linux/intl/stpcpy.c: Renamed to... * libc/sys/linux/intl/lcl_stpcpy.c: ..this.
* * Makefile.in (cygcheck.exe): Add bloda.o as prerequisite, adjustingDave Korn2007-08-034-5/+438
| | | | | | | | dependency-filtering $(wordlist ...) call appropriately. Link ntdll. (bloda.o): New rule to build bloda.o * cygcheck.cc (dump_sysinfo): Call bloda function dump_dodgy_apps(). * bloda.cc: New file implements detection of applications from the Big List Of Dodgy Apps.
* Implement fmemopen and open_memstream.Eric Blake2007-08-028-10/+780
| | | | | | | | | | | | | | * libc/stdio/fmemopen.c (_fmemopen_r, fmemopen): New file. * libc/stdio/open_memstream.c (_open_memstream_r, open_memstream): New file. * libc/stdio/fopencookie.c (fcwriter): Minor optimization. * libc/include/stdio.h (dprintf, vdprintf): Group all POSIX 200x functions together. (fmemopen, open_memstream): Declare new functions. * libc/stdio/stdio.tex: Document them. * libc/stdio/Makefile.am (ELIX_4_SOURCES, CHEWOUT_FILES): Add fmemopen and open_memstream. * libc/stdio/Makefile.in: Regenerate.
* bfd/H.J. Lu2007-08-022-7/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-02 H.J. Lu <hongjiu.lu@intel.com> * coffcode.h (ALIGN_SET): Removed. (ELIFALIGN_SET): Likewise. (coff_set_alignment_hook): Handle IMAGE_SCN_ALIGN_128BYTES, IMAGE_SCN_ALIGN_256BYTES, IMAGE_SCN_ALIGN_512BYTES, IMAGE_SCN_ALIGN_1024BYTES, IMAGE_SCN_ALIGN_2048BYTES, IMAGE_SCN_ALIGN_4096BYTES and IMAGE_SCN_ALIGN_8192BYTES. include/coff/ 2007-08-02 H.J. Lu <hongjiu.lu@intel.com> * pe.h (IMAGE_SCN_ALIGN_POWER_BIT_POS): New. (IMAGE_SCN_ALIGN_POWER_BIT_MASK): Likewise. (IMAGE_SCN_ALIGN_POWER_NUM): Likewise. (IMAGE_SCN_ALIGN_POWER_CONST): Likewise. (IMAGE_SCN_ALIGN_128BYTES): Likewise. (IMAGE_SCN_ALIGN_256BYTES): Likewise. (IMAGE_SCN_ALIGN_512BYTES): Likewise. (IMAGE_SCN_ALIGN_1024BYTES): Likewise. (IMAGE_SCN_ALIGN_2048BYTES): Likewise. (IMAGE_SCN_ALIGN_4096BYTES): Likewise. (IMAGE_SCN_ALIGN_8192BYTES): Likewise. (IMAGE_SCN_ALIGN_1BYTES): Redefined with IMAGE_SCN_ALIGN_POWER_CONST. (IMAGE_SCN_ALIGN_2BYTES): Likewise. (IMAGE_SCN_ALIGN_4BYTES): Likewise. (IMAGE_SCN_ALIGN_8BYTES): Likewise. (IMAGE_SCN_ALIGN_16BYTES): Likewise. (IMAGE_SCN_ALIGN_32BYTES): Likewise. (IMAGE_SCN_ALIGN_64BYTES): Likewise.