summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Check invalidCorinna Vinschen2011-10-214-4/+13
| | | | | | | success only on Samba shares. * mount.cc (fs_info::update): Drop has_buggy_basic_info flag for NcFsd. * syscalls.cc (unlink_nt): Fix typo in comment.
* Check in missing ChangeLog entry.Christopher Faylor2011-10-211-0/+7
|
* * globals.cc (ro_u_ncfsd): New R/O unicode string.Corinna Vinschen2011-10-216-10/+31
| | | | | | | | | | | * mount.cc (fs_info::update): Check for "NcFsd" FS. Set flags and change comments accordingly. (fs_names): Add entry for NcFsd FS. * mount.h (enum fs_info_type): Add ncfsd. (class fs_info): Add ncfsd flag and accessor methods. * path.h (class path_conv): Add fs_is_ncfsd method. * syscalls.cc (unlink_nt): Experimentally try delete-on-close on NcFsd in STATUS_CANNOT_DELETE case.
* * fhandler.h (fhandler*::copyto): Free path_conv strings first.Christopher Faylor2011-10-202-4/+45
| | | | | | * path.h (cfree_and_null): Rename and expand from cfree_maybe. (path_conv &operator =): Call free_strings rather than freeing strings directly.
* Throughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.Christopher Faylor2011-10-2014-171/+211
| | | | | | | | | | | | | | | | * devices.cc: Regenerate. * dtable.cc: (fh_alloc): Preserve /dev/tty name when that's what we opened. (build_fh_pc): Preserve any existing name. * fhandler.cc (fhandler_base::open_with_arch): Ditto. * fhandler_tty.cc (fhandler_pty_master::fhandler_pty_master): Force the name to /dev/ptmx while preserving other pty master device information. * path.h (cfree_maybe): New macro. (path_conv::operator =): Free any allocated strings in target. (path_conv::free_strings): Delete unused function. * sigproc.cc (proc_terminate): Remove previous accommodation for execed processes since it didn't have the desired effect. Change comment to a FIXME. * spawn.cc (chExeced): Mark NO_COPY. (exe_suffixes): Ditto.
* * syscalls.cc (try_to_bin): Improve debug output.Corinna Vinschen2011-10-203-33/+90
| | | | | | | | | | (check_dir_not_empty): Take additional path_conv argument. Improve debug output. Change syscall_printf to debug_printf. (unlink_nt): Improve debug output. Change syscall_printf to debug_printf. (unlink): Change syscall_printf to debug_printf. * cygthread.h: Fix copyright dates.
* PR ld/13254Alan Modra2011-10-192-0/+8
| | | | | | | | | | | include/ * bfdlink.h (struct bfd_link_info): Add error_textrel. bfd/ * elflink.c (bfd_elf_final_link): Emit error_textrel error. ld/ * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Add -z text, -z notext, -z textoff options for all targets having shared lib support.
* * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memchr-stub.c,Nick Clifton2011-10-188-3/+399
| | | | | | | | | | | | | | | | memchr.S. * libc/machine/arm/arm_asm.h: Add ifdef to allow it to be included in .S files. * libc/machine/arm/memchr-stub.c: New file - just selects what to compile. * libc/machine/arm/memchr.S: New file - ARMv6t2/v7 version. * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add strlen-armv7.S. * libc/machine/arm/strlen-armv7.S: New file. * libc/machine/arm/strlen.c: Add ifdef optimised code so it isn't for v7 or 6t2. * libc/machine/arm/Makefile.in: Regenerate.
* * path.cc: Extend two comments. Mention the name RtlpCurDirRefCorinna Vinschen2011-10-182-5/+20
| | | | for reference.
* * dcrt0.cc (dll_crt0_1): Copy argv before passing to main().Christopher Faylor2011-10-172-1/+16
|
* * sigproc.cc (proc_terminate): Avoid setting ppid to 1 if we're execing.Christopher Faylor2011-10-172-1/+13
|
* * cygerrno.h (__set_errno): Modify debugging output to make searching straceChristopher Faylor2011-10-1531-4005/+6589
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | logs easier. Throughout, change /dev/tty* to /dev/pty*. Throughout, add flags argument to fhandler_*::dup methods. * devices.in: Rename (temporarily?) /dev/ttyN to /dev/ptyN. Add /dev/ptymN devices for pty masters. * devices.cc: Regenerate. * devices.h (MAX_CONSOLES): Set to max number supported by devices.in. (fh_devices::FH_PTMX): Rename from FH_PTYM. (device::operator int): Return by reference. * dtable.cc (fh_alloc): Take pc as an argument rather than just the device. This makes debugging easier since more information is available. Actually implement handling for already-allocated pty master devices. Make different decisions when generating fhandler for not-opened devices. Add kludge to deal with opening /dev/tty. (cnew_no_ctor): New macro. (build_fh_pc): Make debugging output more verbose. Use new clone() fhandler interface to duplicate archetypes. Reset last term opened. (dtable::dup_worker): Use Use new clone() fhandler interface to duplicate archetypes. Pass flags to child dup handler. (dtable::dup3): Set O_NOCTTY flag if newfd is not stdin/stdout/stderr. * fhandler.cc (fhandler_base::reset): Rename from operator =() and reduce functionality and sense of copy direction. (fhandler_base::open_with_arch): Use published interface to query io_handle(). Use new copyto() fhandler method to copy from/to found archetype. * fhandler.h: Throughout, delete size(), add copyout, clone, and fhandler_* (void *) methods. (fhandler_base::reset): Rename from operator =(). (fhandler_termios::is_dev_tty): Delete. (fhandler_termios): change "protected" region to "private". (fhandler_termios::is_dev_tty): Delete. (fhandler_termios): Rearrange protected/public. (fhandler_termios::fhandler_termios): Remember last fhandler_termios "opened". (fhandler_termios::~fhandler_termios): Forget last fhandler_termios opened. (ioctl): Rename from ioctl_termios. Take a void * argument. Reflect argument change in pinfo::set_ctty. (fhandler_console::dup): Declare new function. Set ctty here if appropriate. (fhandler_pty_master::from_master): Privatize. (fhandler_pty_master::to_master): Ditto. (fhandler_pty_master::dwProcessId): Ditto. (fhandler_pty_master::fhandler_pty_master): Add an `int' argument. (fhandler_pty_master::open_setup): Declare new function. (fhandler_pty_master::~fhandler_pty_master): Declare new method. (fhandler_nodevice): Remove commented out function declaration. * fhandler_console.cc: Use get_ttyp() instead of tc() throughout. (fhandler_console::dup): Define new function to set controlling ctty on dup, as appropriate. (fhandler_console::ioctl): Reflect ioctl_termios name change. (fhandler_console::setup): Rename from get_tty_stuff. (fhandler_console::open_setup): Reflect argument change in pinfo::set_ctty. (fhandler_console::fhandler_console): Set _tc here. * fhandler_termios.cc (handler_termios::ioctl): Rename. Take a void * arg like other ioctl functions. * fhandler_tty.cc (fhandler_pty_slave::dup): Call myself->set_ctty to potentially reset the controlling terminal. (fhandler_pty_slave::ioctl): Reflect name/arg change for ioctl_termios. (fhandler_pty_slave::fhandler_pty_slave): Take a "unit" argument. Call setup() here so that we will know the unit number of this fhandler as soon as possible. Set the unit as appropriate. (handler_pty_master::open): Move most stuff to constructor and open_setup. (handler_pty_slave::open_setup): Reflect argument change in pinfo::set_ctty. (handler_pty_master::open_setup): Define new function. (fhandler_pty_master::cleanup): Clear handles as a flag that the destructor does not have to do "close" operations. (fhandler_pty_master::close): Ditto. (fhandler_pty_master::~fhandler_pty_master): Define new method. (fhandler_pty_master::ioctl): Reflect name/arg change for ioctl_termios. (fhandler_pty_master::setup): Allocate tty here. Rely on handles being returned from allocated test rather than opening them here. Avoid setting _need_nl here since it is already zeroed in the constructor. Set up device information with DEV_TTYM_MAJOR. * path.h (path_conv &operator =): Take a const argument. (path_conv::dup): Ditto. (pathconv_arg::PC_OPEN): New enum. (pathconv_arg::PC_CTTY): Ditto. (path_types::PATH_CTTY): Ditto. (path_types::PATH_OPEN): Ditto. (path_conv::isopen): New method. (path_conv::isctty_capable): Ditto. * path.cc (path_conv::check): Set PATH_OPEN and PATH_CTTY as appropriate. * pipe.cc (fhandler_pipe::open): Use copyto to copy pipe handle. * syscall.cc (open): Reinstate fd > 2 check to disallow resetting ctty on non-std* handles. * tty.cc (tty_list::allocate): Pass out handles for allocated tty. use `not_allocated' to find unallocated ttys. Avoid keeping the lock since the allocation of the tty should be sufficient to prevent multiple access. (tty::not_allocated): Clarify comment. Rename. Return handles when an unused tty is found. Simply test for existing tty. (tty::exists): Rewrite to use `not_allocated'. * tty.h (NTTYS): Reset down to actual number supported by devices.in. (tty::not_allocated): Declare new function. (tty_list::allocate): Pass out read/write tty handles. Zero them when not found. * fhandler_proc.cc: Reflect name change from FH_PTYM -> FH_PTMX. * pinfo.h (pinfo::set_ctty): Reduce/reorder arguments passed in. * pinfo.cc (pinfo::set_ctty): Ditto. Just use tc() built into the passed-in fhandler_termios pointer. Return true if ctty is assigned. * syscalls.cc (open): Call build_fh_pc with PC_OPEN flag. Set PC_CTTY if appropriate. (stat_worker): Remove is_dev_tty () stuff.
* * fhandler_process.cc (dos_drive_mappings::fixup_if_match): ConvertCorinna Vinschen2011-10-152-0/+13
| | | | native NT network paths into DOS UNC paths.
* * sec_auth.cc (get_token_group_sidlist): Add CONSOLE LOGON SID onCorinna Vinschen2011-10-156-67/+130
| | | | | | | | | | | | | | | | | | | | | | | | | systems supporting it. Never add SERVICE SID but keep code in for future reference. Explain why. (get_priv_list): Add cygpsid pointer parameter. Point it to the mandatory integrity SID which matches account and privileges. (create_token): Fetch mandatory integrity SID from call to get_priv_list. (lsaauth): Call get_priv_list with additional NULL pointer. Change comment accordingly. * sec_helper.cc (well_known_console_logon_sid): New static SID. (cygpriv): Change to structure containing extra flag to store info about required integrity level. (privilege_luid): Accommodate changes to cygpriv. Return integrity level in new high_integrity parameter. (privilege_name): Accommodate changes to cygpriv. (set_privilege): Drop trailing \n from debug output. (set_cygwin_privileges): Don't set SE_CREATE_GLOBAL_PRIVILEGE anymore since it's just not needed, but keep code in for future reference. Change comment accordingly. * security.h (well_known_console_logon_sid): Declare. (privilege_luid): Align declaration to above change. * wincap.h (wincaps::has_console_logon_sid): New element. * wincap.cc: Implement above element throughout.
* * cygcheck.cc (dump_sysinfo): Add Windows 8 recognition. Note asCorinna Vinschen2011-10-132-4/+15
| | | | unsupported. Update products array.
* * path.cc (find_fast_cwd_pointer): Allow 'push crit-sect-addr' insteadCorinna Vinschen2011-10-132-3/+11
| | | | of 'mov edi, crit-sect-addr; push edi' and set rcall accordingly.
* * path.cc (copy_cwd_str): Move up in file to be accessible fromCorinna Vinschen2011-10-132-166/+241
| | | | | | | | | | | | | class fcwd_access_t. (class fcwd_access_t): New class to consolidate and hide the details of the various FAST_CWD implementations. Add implementation for Windows 8 Developer Preview. (fast_cwd_version): Make static private member of fcwd_access_t. (fast_cwd_ptr): Change base type to fcwd_access_t. (find_fast_cwd_pointer): Return fcwd_access_t**. (find_fast_cwd): Ditto. Rip out all FAST_CWD implementations and use fcwd_access_t methods instead. (cwdstuff::override_win32_cwd): Ditto.
* * fhandler_console.cc (fhandler_console::cursor_set): Disable forcingCorinna Vinschen2011-10-122-1/+16
| | | | y to the current winBottom position. Explain why.
* * cygwin.din: Remove some _tc* exports. Add tcgetsid().Christopher Faylor2011-10-1112-33/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * dtable.cc (fh_alloc): Revert ill-advised setting of major/minor. Use new is_dev_tty to remember that this device was opened as /dev/tty. * fhandler.cc (fhandler_base::fstat): Remove leftover debugging statement. (fhandler_base::tcgetsid): New function. * fhandler.h ((fhandler_base::tcgetsid): Declare new function. (fhandler_base::is_dev_tty): Ditto. (fhandler_termios::opened_as_dev_tty): Declare new field. (fhandler_termios::is_dev_tty): Declare new function. (fhandler_termios::tcgetsid): Ditto. (fhandler_pty_common::use_archetype): Move here from subclass. (fhandler_pty_slave::use_archetype): Move up. (fhandler_pty_master::use_archetype): Ditto. * fhandler_console.cc (fhandler_console::ioctl): Rename second argument from `buf' to `arg' for consistency. Call ioctl_termios for common fhandler_termios ioctl handling. * fhandler_tty.cc (fhandler_pty_slave::ioctl): Call ioctl_termios for common fhandler_termios ioctl handling. (fhandler_pty_master::ioctl): Ditto. * fhandler_termios.cc (fhandler_termios::tcgetsid): Implement new function. (fhandler_termios::ioctl_termios): Ditto. Implements TIOCSCTTY handling. * syscalls.cc (stat_worker): Set /dev/tty device info when appropriate. * termios.cc (tcgetpgrp): Avoid extraneous "isatty" check. (tcgetsid): Implement new function. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 253. * include/sys/termios.h (TIOCSCTTY): Define.
* * utils.sgml (getconf): Expand documentation.Yaakov Selkowitz2011-10-112-4/+24
|
* * dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0. Reset major/minorChristopher Faylor2011-10-112-4/+13
| | | | from the specific tty to those for /dev/tty.
* * libc/time/mktm_r.c: (__tzcalc_limits) Fix Julian day calculation.Corinna Vinschen2011-10-113-13/+40
| | | | | * libc/time/mktime.c: (mktime) Fix tm_yday, tm_mday updating when timezone causes roll over.
* oops - fix typo in previous delta.Nick Clifton2011-10-111-11/+390
|
* oops - omitted from previous delta.Nick Clifton2011-10-111-248/+31
|
* * syscalls.cc (open): Add temporary kludge to avoid assigning the controllingChristopher Faylor2011-10-103-0/+13
| | | | | tty on open unless the open is for stdin/stdout/stderr. * tty.cc (tty_list::connect): Set ENXIO when can't find a tty.
* * fhandler.h (fhandler_process::closedir): Declare.Corinna Vinschen2011-10-103-0/+13
| | | | | * fhandler_process.cc (fhandler_process::closedir): New function to avoid a SEGV in fhandler_proc::closedir.
* * cygserver.sgml: Change -v to -V, same as in sources.Corinna Vinschen2011-10-102-1/+5
|
* * cygserver.cc (print_usage): Align output to utilities in utilsCorinna Vinschen2011-10-102-26/+29
| | | | | directory. (print_version): Ditto.
* * ldd.cc (VERSION): Remove.Corinna Vinschen2011-10-102-2/+4
|
* * ldd.cc: Update copyright.Christopher Faylor2011-10-102-1/+5
|
* * Align usage output, version output, as well as usage and versionCorinna Vinschen2011-10-1021-611/+687
| | | | | | | | | option handling to use the same style throughout all Cygwin utils. Throughout use program_invocation_short_name to refer to current process name in Cygwin executables. * utils.sgml: Align documentation to above change. Add missing sections for getconf, ldd, and setmetamode. * strace.cc (proc_child): Avoid compiler warning.
* include/elf/Alan Modra2011-10-102-1/+6
| | | | | | | | | | | | | | | | * ppc64.h (R_PPC64_TOCSAVE): Add. bfd/ * elf64-ppc.c (ppc64_elf_howto_table): Add R_PPC64_TOCSAVE entry. (struct ppc_link_hash_table): Add tocsave_htab. (struct tocsave_entry): New. (tocsave_htab_hash, tocsave_htab_eq, tocsave_find): New functions. (ppc64_elf_link_hash_table_create): Create tocsave_htab.. (ppc64_elf_link_hash_table_free): ..and delete it. (build_plt_stub): Always put STD_R2_40R1 first. (ppc64_elf_size_stubs): Check for R_PPC64_TOCSAVE following reloc on plt call. If present add prologue nop location to tocsave_htab. (ppc64_elf_relocate_section): Convert prologue nop to std. Skip first insn of plt call stub when R_PPC64_TOCSAVE present.
* * libc/sys/arm/crt0.S: Synchronise with libgloss version.Nick Clifton2011-10-102-0/+67
| | | | * libc/sys/arm/arm.h: Imported from libgloss.
* * locale.cc (usage): Restructure, rephrase, add new options. DropCorinna Vinschen2011-10-103-40/+123
| | | | | | | | | | | | | | arguments, don't exit. (print_version): New function. (longopts): Add -f, -n, and -V options. Reorder. (opts): Add -f, -n, and -V options. (main): Call GetSystemDefaultUILanguage for -s option. Call GetUserDefaultUILanguage for -u option. Add -f and -n options and call GetUserDefaultLCID and GetSystemDefaultLCID respectively. Return 0 after calling usage in -h case. Add -V option and call print_version. Don't print full usage in default case, rather just a short help message similar to GNU tools. * utils.sgml (locale): Align to above changes. Rephrase description.
* * cygcheck.cc (check_keys): Use UNICODE Win32 functions.Corinna Vinschen2011-10-102-6/+10
|
* * fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.Christopher Faylor2011-10-102-2/+11
| | | | (fhandler_pty_slave::open): Change ENOENT to ENXIO when can't open a tty.
* * fhandler.h (fhandler_console::tc_getpgid): New function.Christopher Faylor2011-10-073-1/+19
| | | | | * spawn.cc (spawn_guts): Add logic to put pure-windows processes "in the background" when they are started that way.
* * include/sys/cygwin.h (cygwin_getinfo_types): Define valuesCorinna Vinschen2011-10-072-3/+54
| | | | additionally as preprocessor symbols.
* * rx/crt0.S: Initialise the PID address register.Nick Clifton2011-10-072-5/+25
| | | | (__pid_base): Define weakly.
* Fix copyright.Corinna Vinschen2011-10-071-1/+2
|
* * fhandler_termios.cc (fhandler_termios::tcsetpgrp): Send __SIGSETPGRPCorinna Vinschen2011-10-064-2/+16
| | | | | | | | pseudo signal to process group instead of just calling init_console_handler. * sigproc.cc (wait_sig): Call init_console_handler here on __SIGSETPGRP signal. * sigproc.h (__SIGSETPGRP): Define.
* 2011-10-06 Christian Franke <franke@computer.org>Christian Franke2011-10-063-17/+73
| | | | | | | | | | * include/cygwin/wait.h: Use new __wait_status_to_int() macro to access status value in W*() status checks. Fix status description. * include/sys/wait.h: Allow `int' and `union wait' as wait status parameter. Change __wait_status_to_int() macro and wait () prototypes accordingly. Add inline functions for C++. Remove extra `;'.
* * readelf.c (get_machine_dlags): Add support for RX's PID mode.Nick Clifton2011-10-052-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ld-scripts/phdrs.exp: Expect to fail for the RX. * elf32-rx.c: Add support for PID mode. (rx_elf_relocate_section): Add checks for unsafe PID relocations. Include addend in R_RX_SYM relocations. * config/rx-defs.h (rx_pid_register): New. (rx_gp_register): New. * config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg. (displacement): Add PID support. * config/tc-rx.c (rx_pid_mode): New. (rx_num_int_regs): New. (rx_pid_register): New. (rx_gp_register): New. (options): Add -mpid and -mint-register= options. (md_longopts): Likewise. (md_parse_option): Likewise. (md_show_usage): Likewise. (rx_pid_symbol): New. (rx_pidreg_symbol): New. (rx_gpreg_symbol): New. (md_begin): Support PID. (rx_validate_fix_sub): Support PID. (tc_gen_reloc): Support PID. * doc/c-rx.texi: Document PID support. * rx.h (E_FLAG_RX_PID): New.
* * external.cc (create_winenv): Rename from sync_winenv. TakeCorinna Vinschen2011-10-054-7/+30
| | | | | | | | environment pointer as parameter and return pointer to corresponding win32 environment block if != NULL. Otherwise just sync as before. (cygwin_internal): Add CW_CVT_ENV_TO_WINENV case. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_ENV_TO_WINENV.
* * net.cc (socketpair): Bind first socket to loopback only as well.Corinna Vinschen2011-10-052-1/+5
|
* 2011-10-04 Greta Yorsh <Greta.Yorsh@arm.com>Jeff Johnston2011-10-042-0/+164
| | | | * testsuite/newlib.string/memcpy-1.c: New test.
* * libc/machine/arm/memcpy.S: Fix unaligned access copying.Nick Clifton2011-10-042-4/+14
|
* Rationalise structure layout; add dirent.d_type field.Keith Marshall2011-10-013-60/+215
|
* * libc/machine/arm/memcpy.S: New file. Contains a hand codedNick Clifton2011-09-295-3/+481
| | | | | | | | memcpy function optimized for the cortex-a15. * libc/machine/arm/memcpy-stub.c: New file. * libc/machine/arm/Makefile.am (lib_a_SOURCES): Add memcpy-stub.c, memcpy.S. * libc/machine/arm/Makefile.in: Regenerate.
* * arm/crt0.s: Support 0 heap base response from HeapInfo syscall.Nick Clifton2011-09-292-0/+17
|