summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* correct email addressChristopher Faylor2006-12-112-2/+2
|
* * child_info.h (child_info_spawn::__stdin): New element.Christopher Faylor2006-12-1115-121/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (child_info_spawn::__stdin): Ditto. (CURR_CHILD_INFO_MAGIC): Regenerate. * dcrt0.cc (check_sanity_and_sync): Minor cleanup. (child_info_spawn::handle_spawn): Handle new __std* elements by calling move_fd. * dtable.cc (dtable::move_fd): Define new function. * dtable.h (dtable::move_fd): Declare new function. * fhandler.h (fhandler_pipe::popen_pid): Declare new element. * fhandler.h (fhandler_pipe::get_popen_pid): Define new function. * fhandler.h (fhandler_pipe::set_popen_pid): Ditto. * pipe.cc (fhandler_pipe::fhandler_pipe): Zero popen_pid. (fhandler_pipe::dup): Ditto. * spawn.cc (handle): Change second argument to bool. (spawn_guts): Accept __stdin/__stdout arguments and set them appropriately in child_info structure and in STARTUPINFO structure. * syscalls.cc (popen): New cygwin-specific implementation using spawn. (pclose): Ditto. * winsup.h (spawn_guts): Accommodate new arguments for spawn_guts. * fhandler.cc (fhandler_base::set_no_inheritance): Make second arg a bool. * fhandler.h (fhandler_base::set_no_inheritance): Ditto for declaration. * child_info.h (child_info::msv_count): Rename from the now-inappropriate "zero". (child_info_spawn::filler): Add filler to work around Vista bug. (child_info_fork::filler): Ditto. * dcrt0.cc (get_cygwin_startup_info): Remove "zero" check since it is now always filled out. * fork.cc (frok::parent): Move ch.zero manipulation to constructor. * spawn.cc (spawn_guts): Ditto. Remove _ch wrapper. * sigproc.cc (child_info::child_info): Initialize starter[]. * shared.cc (shared_info::heap_slop_size): Remove noisy system_printfs. * shared_info.h (CURR_SHARED_MAGIC): Regenerate.
* * fhandler.cc (rootdir): Fix typo in comment.Corinna Vinschen2006-12-113-3/+8
| | | | * syscalls.cc (try_to_bin): Ditto.
* * configure.in: Handle spu makefile frag.Alan Modra2006-12-116-135/+158
| | | | | | | | * config/mt-spu: New file. * Makefile.tpl (MAINT): Define (MAINTAINER_MODE_FALSE, MAINTAINER_MODE_TRUE): Define. * configure: Regenerate. * Makefile.in: Regenerate.
* * config.sub, config.guess: Update from upstream sources.Ben Elliston2006-12-113-5/+22
|
* * configure.in: Sync with GCC (spu-*-*).Ben Elliston2006-12-113-0/+11
| | | | * configure: Sync with GCC.
* * spu/exit.c (libgloss_exit): Rename from this ..Ben Elliston2006-12-111-11/+12
| | | | | (_exit): .. to this. Overhaul. (exit): Remove.
* Resurrect.Ben Elliston2006-12-101-0/+44
|
* Remove (missed in previous commit).Ben Elliston2006-12-101-56/+0
|
* Typo fix.Ben Elliston2006-12-101-1/+1
|
* * mount.cc (do_mount): Avoid unnecessary cygwin_conv_to_win32_path and passChristopher Faylor2006-12-102-4/+6
| | | | POSIX path directly - this avoids a cygwin DLL warning.
* * autoload.cc (SHFileOperationA): Drop definition.Corinna Vinschen2006-12-108-44/+153
| | | | | | | | | | | | | | | | | | | * ntdll.h (struct _FILE_RENAME_INFORMATION): Define. * path.cc (fs_info::update): Note length of rootdir prefix in root_len. (get_nt_native_path): New function, taking over functionality of path_conv::get_nt_native_path. (path_conv::get_nt_native_path): Just call get_nt_native_path. * path.h (get_nt_native_path): Declare. (struct fs_info): New member root_len. (fs_info::length): New inline method returning root_len. (path_conv::rootdir): New inline method returning rootdir prefix. * syscalls.cc (try_to_bin): Rewrite using only system calls. (unlink_nt): Call try_to_bin with additional handle to open file parameter. (statvfs): Use path_conv::rootdir method. * wincap.h: Define has_recycle_dot_bin throughout. * wincap.cc: Ditto.
* * fhandler.cc (rootdir): Clarify comment.Corinna Vinschen2006-12-102-2/+7
|
* * fhandler.cc (rootdir): Don't look for volume mount points on remoteCorinna Vinschen2006-12-102-2/+8
| | | | shares.
* * fhandler.cc (rootdir): Drop useless post-increment. Take volumeCorinna Vinschen2006-12-102-2/+62
| | | | | mount points into account. (check_posix_perm): Allocate space for root directory big enough.
* * syscalls.cc (try_to_bin): Add comment that this is not possiblyCorinna Vinschen2006-12-092-0/+12
| | | | the final version.
* 2006-12-08 Sa Liu <saliu@de.ibm.com>Jeff Johnston2006-12-089-86/+323
| | | | | | | | | | | | | | * spu/exit.c (libgloss_exit): Rename from this .. (_exit): .. to this. Overhaul. (exit): Remove. * spu/crt0.S, spu/crti.S, spu/crtn.S: New files. * spu/crt0.C, spu/init.c: Remove. * spu/configure.in (AC_INIT): Check for crt0.S, not crt0.C. * spu/configure: Regenerate. * spu/Makefile.in (crti.o, crtn.o, crt1.o, crt2.o): New targets. (OBJS): Remove init.o. (CRTOBJS): New. (OUTPUTS): Add $(CRTOBJS).
* * Makefile.def (dependencies): Add dependency forMike Stump2006-12-083-0/+13
| | | | | | install-target-libssp and install-target-libgomp on install-gcc. * Makefile.in: Regenerate.
* * syscalls.cc (unlink_nt): Open native symlinks withCorinna Vinschen2006-12-072-0/+9
| | | | FILE_OPEN_REPARSE_POINT flag.
* * ntdll.h (STATUS_DELETE_PENDING): Define.Corinna Vinschen2006-12-073-90/+124
| | | | | | | | (struct _FILE_DISPOSITION_INFORMATION): Define. * syscalls.cc (unlink_9x): new function to delete file on 9x. * syscalls.cc (unlink_nt): new function to delete file on NT. (unlink): Simplify. Move OS dependent stuff into aforementioned functions. Also handle FILE_ATTRIBUTE_HIDDEN as R/O-like flag.
* bfd/Kazu Hirata2006-12-072-12/+24
| | | | | | | | | | | | | | | | | | | | | * elf32-m68k.c: Update uses of EF_M68K_*. binutils/ * readelf.c: Update uses of EF_M68K_*. gas/ * config/tc-m68k.c: Update uses of EF_M68K_*. include/elf * m68k.h (EF_M68K_ISA_MASK, EF_M68K_ISA_A_NODIV, EF_M68K_ISA_A, EF_M68K_ISA_A_PLUS, EF_M68K_ISA_B_NOUSP, EF_M68K_ISA_B, EF_M68K_ISA_C, EF_M68K_MAC_MASK, EF_M68K_MAC, EF_M68K_EMAC, EF_M68K_EMAC_B, EF_M68K_FLOAT): Rename to EF_M68K_CF_ISA_MASK, EF_M68K_CF_ISA_A_NODIV, EF_M68K_CF_ISA_A, EF_M68K_CF_ISA_A_PLUS, EF_M68K_CF_ISA_B_NOUSP, EF_M68K_CF_ISA_B, EF_M68K_CF_ISA_C, EF_M68K_CF_MAC_MASK, EF_M68K_CF_MAC, EF_M68K_CF_EMAC, EF_M68K_CF_EMAC_B, EF_M68K_CF_FLOAT, respectively.
* * autoload.cc (SHFileOperationA): Define.Corinna Vinschen2006-12-073-1/+48
| | | | | | | * syscalls.cc (try_to_bin): New function trying to move a file to the recycle bin. (unlink): Fix arguments used in CreateFile for delete on close. Before closing the handle, try to move the file to the recycle bin.
* * cygheap.h (struct cwdstuff): Add "sync" member and accompanyingCorinna Vinschen2006-12-074-31/+69
| | | | | | | | | | "keep_in_sync" methods. * external.cc (cygwin_internal): Call above keep_in_sync method when CW_SYNC_WINENV is requested. * path.cc (cwdstuff::init): Don't change to windows_system_directory if keep_in_sync is requested. (cwdstuff::keep_in_sync): New method. (cwdstuff::set): Take sync flag into account.
* * termios.cc: Change include order to accomodate change to sys/ioctl.h.Corinna Vinschen2006-12-062-1/+5
|
* merge from gccDJ Delorie2006-12-061-1/+1
|
* * fhandler_mem.cc (fhandler_dev_mem::open): Fix comment.Corinna Vinschen2006-12-063-3/+10
| | | | | | * wincap.cc (has_physical_mem_access): Reflect the fact that physical memory access has been made a protected operation beginning with 2003 Server.
* Define ATTRIBUTE_PACKED and use as necessary.Nick Clifton2006-12-066-8/+27
|
* * include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ.Corinna Vinschen2006-12-062-1/+6
|
* * winsup.h (WINVER): Set to 0x0600 to cover Vista.Corinna Vinschen2006-12-062-1/+5
|
* * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Fix typo.Corinna Vinschen2006-12-062-1/+5
|
* * path.cc (cwdstuff::init): Don't change to windows_system_directoryCorinna Vinschen2006-12-052-4/+13
| | | | if Cygwin DLL has been loaded dynamically.
* * path.cc (cwdstuff::set): Don't try to open directory on systems notCorinna Vinschen2006-12-052-7/+15
| | | | supporting that.
* * dcrt0.cc (get_cygwin_startup_info): Fix comment.Corinna Vinschen2006-12-053-3/+12
| | | | | * wincap.cc (wincapc::init): Always reset needs_count_in_si_lpres2 to false on non 64-bit systems.
* Fix date.Corinna Vinschen2006-12-051-1/+1
|
* * dcrt0.cc (get_cygwin_startup_info): Change zeros to DWORD array.Corinna Vinschen2006-12-056-2/+71
| | | | | | | | | | | Expect first DWORD in child_info struct being set to non-zero if wincap.needs_count_in_si_lpres2 is set. Add comment to explain why. * fork.cc (frok::parent): Set ch.zero[0] to a sensible count value if wincap.needs_count_in_si_lpres2 is set. * spawn.cc (spawn_guts): Ditto. Add filler bytes after ch on stack to accomodate needs_count_in_si_lpres2. * wincap.h: Define needs_count_in_si_lpres2 throughout. * wincap.cc: Ditto.
* 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-042-0/+9
| | | | * libc/machine/spu/strncpy.c: Add padding.
* 2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-042-0/+8
| | | | * testsuite/newlib.string/tstring.c:
* 2006-12-01 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-12-013-2/+7
| | | | | * libc/machine/spu/strchr.c: Fix mask for misaligned string. * libc/machine/spu/strrchr.c: Ditto.
* 2006-11-30 Lev Bishop <lev.bishop@gmail.com>Jeff Johnston2006-11-302-2/+7
| | | | | * libc/include/math.h: Allow C99 functions/macros to be defined for C++ even when __STRICT_ANSI__.
* include:Joern Rennecke2006-11-302-0/+13
| | | | | | | | | | | | | | | | | | | 2006-05-03 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> PR driver/29931 * libiberty.h (make_relative_prefix_ignore_links): Declare. libiberty: 2006-05-03 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> PR driver/29931 * make-relative-prefix.c (make_relative_prefix_1): New function, broken out of make_relative_prefix. Make link resolution dependent on new parameter. (make_relative_prefix): Use make_relative_prefix_1. (make_relative_prefix_ignore_links): New function.
* * dir.cc (mkdir): Check last path component for "..".Corinna Vinschen2006-11-308-97/+118
| | | | | | | | | | | | | | | | | | | | | (rmdir): Don't check last path component for "..". * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Drop kludge which tries to allow deleting the current working directory. * path.cc (has_dot_last_component): Add parameter to indicate testing for "..". Take trailing slash into account. (symlink_info::posixify): Rely on cygheap->cwd.win32 having a useful value. (cwdstuff::init): Initialize cygheap->cwd with current working directory. Change to windows_system_directory afterwards. (cwdstuff::set): Never call SetCurrentDirectory here. Just check if changing into target directory would be allowed. Add comment to explain why. * path.h (has_dot_last_component): Declare with second parameter. * pinfo.cc (pinfo::zap_cwd): Remove. (pinfo::exit): Drop call to zap_cwd. * pinfo.h (class pinfo): Remove declaration of zap_cwd. * spawn.cc (spawn_guts): Set current working directory for non-Cygwin child applications. Drop call to zap_cwd.
* 2006-11-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-11-302-1/+12
| | | | | * libc/stdio/makebuf.c (__smakebuf): If dealing with an asprintf-family buffer, make the default initial size 64.
* 2006-11-29 Eric Blake <ebb9@byu.net>Jeff Johnston2006-11-292-6/+22
| | | | | * libc/stdio/fvwrite.c (__sfvwrite_r): Avoid off-by-one error in asprintf, as well as quadratic realloc behavior.
* 2006-11-29 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2006-11-295-5/+12
| | | | | | | * libc/machine/spu/memset.c: Fix type of explicit cast. * libc/machine/spu/strncmp.c: Add explicit cast. * libc/machine/spu/strrchr.c: Ditto. * libc/machine/spu/strspn.c: Ditto.
* * security.cc (create_token): Revert erroneous change to testCorinna Vinschen2006-11-283-4/+9
| | | | | | subauth_token for INVAILD_HANDLE_VALUE. * syscalls.cc (seteuid32): Set create_token's subauth_token parameter back to NULL.
* * fhandler.cc (fhandler_base::open): Fix previous patch to handle theCorinna Vinschen2006-11-282-4/+10
| | | | SYSTEM attribute as well.
* Remove entries checked in by accident.H.J. Lu2006-11-271-610/+0
|
* bfd/Bob Wilson2006-11-272-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | * elf32-xtensa.c (elf_xtensa_special_sections): Add .xtensa.info. gas/ * config/tc-xtensa.c (XSHAL_ABI): Add default definition. (directive_state): Disable scheduling by default. (xtensa_add_config_info): New. (xtensa_end): Call xtensa_add_config_info. gas/testsuite/ * gas/elf/section2.e-xtensa: New file. * gas/elf/elf.exp: Use it. include/ * xtensa-config.h (XSHAL_ABI): New. (XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New. ld/ * emultempl/xtensaelf.em (XSHAL_ABI): Add default definition. (replace_insn_sec_with_prop_sec): Use bfd_make_section_with_flags. Delete redundant code to set sections flags and alignment. (xt_config_info_unpack_and_check, check_xtensa_info): New. (elf_xtensa_after_open): Iterate over input statements instead of link_info.input_bfds. (elf_xtensa_before_allocation): Likewise. Call check_xtensa_info for each input, and write a new .xtensa.info section in the output.
* * xtensa-isa.h (STATIC_LIBISA): Delete.Bob Wilson2006-11-272-6/+7
|
* * fhandler.cc (fhandler_base::open): Fix handling of files withCorinna Vinschen2006-11-272-0/+12
| | | | HIDDEN attribute set.