summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * dir.cc (rmdir): Streamline. Detect attempts to remove directories fromChristopher Faylor2002-06-053-26/+34
| | | | | | "read-only" virtual devices. (Suggested by Pavel Tsekov) * syscalls.cc (unlink): Detect attempts to remove directories from "read-only" virtual devices. (From Pavel Tsekov)
* * dtable.cc (handle_to_fn): Check error return value from NtQueryObject firstChristopher Faylor2002-06-054-6/+18
| | | | | | before seeing if name buffer is NULL. * grp.cc (read_etc_group): Fix gcc warning regarding snprintf format. * passwd.cc (read_etc_passwd): Ditto.
* /tmp/cvs610a0efc.1Robert Collins2002-06-053-7/+48
|
* * grp.cc (read_etc_group): When emulating nonexisting group file onCorinna Vinschen2002-06-053-19/+93
| | | | | | | | | | | NT systems, read primary group SID from process token. Use that info to create correct group entry. On error or on 9x systems fallback to emulating Administrators group as before. (read_etc_passwd): When emulating nonexisting passwd file on NT systems, read user and primary group SID from process token. Use that info to create correct passwd entry. On error or on 9x systems fallback to emulating user with Administrator user id and Administrators group as before.
* * grp.cc (etc_group): Removed.Corinna Vinschen2002-06-054-105/+164
| | | | | | | | | | | | | | | (parse_grp): Make line parameter nonconst. Don't copy data into new allocated memory. Check for CR instead of LF to accomodate new read method. (add_grp_line): Make line parameter nonconst. (read_etc_group): Rearrange using new pwdgrp_read class. * passwd.cc (parse_pwd): Don't copy data into new allocated memory. Check for CR instead of LF to accomodate new read method. (read_etc_passwd): Rearrange using new pwdgrp_read class. * pwdgrp.h (pwdgrp_check::set_last_modified): Use different parameters. (class pwdgrp_read): New class for opening and reading passwd and group files.
* * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote shares.Christopher Faylor2002-06-0539-62/+60
| | | | | | * path.cc (mount_info::conv_to_win32_path): Set flags to binary when mount entry is not found. (mount_info::set_flags_from_win32_path): Ditto.
* * dtable.cc (handle_to_fn): Correct placement and length of name buffer.Christopher Faylor2002-06-052-2/+7
| | | | (Suggested by Pavel Tsekov)
* bfd/Jason Thorpe2002-06-052-0/+11
| | | | | | | | | | | | | | | | | | | | | * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo. (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c. (elf32-sh64-com.lo): New dependency list. * Makefile.in: Regenerate. * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec) (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add elf32-sh64-com.lo. * configure: Regenerate. * elf32-sh64.c (sh64_address_in_cranges) (sh64_get_contents_type, sh64_address_is_shmedia): Move to... (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb): (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to... * elf32-sh64-com.c: ...here. New file. include/elf/ * sh.h (_bfd_sh64_crange_qsort_cmpb, _bfd_sh64_crange_qsort_cmpl) (_bfd_sh64_crange_bsearch_cmpb, _bfd_sh64_crange_bsearch_cmpl): New prototypes.
* Remove fcntl.h includes throughout.Christopher Faylor2002-06-0533-146/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler.h: Move fcntl.h include here. (fhandler_base::set_flags): Accept supplied_bin argument. Make non-inlined. * dtable.cc (dtable::init_std_file_from_handle): Just use binmode from pc. (reset_to_open_binmode): Use set_flags. * cygwin.din (open): Avoid newlib wrapper. (read): Ditto. (unlink): Ditto. (write): Ditto. * fhandler.cc (fhandler_base::set_flags): Accept supplied_bin argument. Make binmode decisions here. (fhandler_base::open): Avoid using pc if it is NULL. Eliminate binmode logic. Just call set_flags with binmode argument. (fhandler_base::init): Call set_flags with binmode argument. * fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto. * fhandler_console.cc (fhandler_console::open): Ditto. (fhandler_console::init): Force binary on open. * fhandler_disk_file.cc (fhandler_disk_file::open): Don't set binmode here. Let it happen in base class. * fhandler_dsp.cc (fhandler_dev_dsp::open): Force binmode open. Set return value appropriately if unable to open. * fhandler_proc.cc (fhandler_proc::open): Make sure flags are set before open_status. * fhandler_process.cc (fhandler_process::open): Ditto. * fhandler_registry.cc (fhandler_registry::open): Ditto. * fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto. * fhandler_raw.cc (fhandler_dev_raw::open): Force O_BINARY by default. * fhandler_serial.cc (fhandler_serial::init): Ditto. * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. (fhandler_pty_master::open): Ditto. * fhandler_virtual.cc (fhandler_virtual::open): Ditto. * fhandler_windows.cc (fhandler_windows::open): Ditto. * fhandler_zero.cc (fhandler_dev_zero::open): Ditto. * net.cc (fdsock): Ditto. * path.cc (path_conv::check): Avoid checking for extension when error or directory. (set_flags): Set PATH_TEXT explicitly, when appropriate. (mount_info::conv_to_win32_path): Use set_flags() to set path flags. * path.h (PATH_TEXT): New enum. (path_conv::binmode): Return appropriate constant based on binmode. * pipe.cc (make_pipe): Set binmode to O_TEXT xor O_BINARY. * syscalls.cc (setmode_helper): Make debugging message a little clearer. (setmode): Set binmode via set_flags.
* * include/winnt.h (PACE_HEADER, PACCESS_ALLOWED_ACE,Danny Smith2002-06-042-3/+8
| | | | PACCESS_DENIED_ACE): Add typedefs.
* * fhandler.h (class fhandler_socket): Add private methodCorinna Vinschen2002-06-043-4/+28
| | | | | | | | | | | fixup_after_fork (bool, HANDLE). * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Move functionality to new private method. Add closing parent socket if not called from dup(). Create method new calling private method with appropriate parameter. (fhandler_socket::fixup_after_exec): Call private method fixup_after_fork with appropriate parameter. (fhandler_socket::dup): Ditto.
* * fhandler_dsp.cc (fhandler_dev_dsp::open): Set errno to EACCES ifCorinna Vinschen2002-06-042-1/+9
| | | | requested mode isn't supported.
* * fhandler.cc (fhandler_base::open): Don't set binmode if already set. Don'tChristopher Faylor2002-06-045-24/+42
| | | | | | | | | | | | | check for file. Files should already be set. Report on binary mode for debugging. (fhandler_base::fhandler_base): Don't set default binmode here. That's for later. * fhandler_console.cc (fhandler_console::output_tcsetattr): Don't set binmode, ever, for console. * fhandler_disk_file.cc (fhandler_disk_file::open): Always set the binary mode to the value derived from mount table. * path.cc (mount_info::conv_to_win32_path): Default to binmode if path does not translate into anything in the mount table.
* * umount.cc (version): New global variable.Christopher Faylor2002-06-042-13/+61
| | | | | | | | (longopts): Accommodate new --version option. (opts): Ditto. (usage): Standardize usage output. (print_version): New function. (main): Accommodate --help, --version options.
* * external.cc (cygwin_internal): Add CW_EXTRACT_DOMAIN_AND_USERCorinna Vinschen2002-06-033-1/+17
| | | | | | handling to call extract_nt_dom_user() from applications. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_EXTRACT_DOMAIN_AND_USER.
* * libc/include/sys/types.h: Don't define dev_t when compiling forCorinna Vinschen2002-06-032-0/+7
| | | | Cygwin.
* * syscalls.cc (stat64_to_stat32): Transform st_dev correctly.Corinna Vinschen2002-06-035-7/+39
| | | | | | | | | | (fstat64): Add evaluating st_ino and st_dev. (stat_worker): Evaluate st_dev as 32 bit value. * include/cygwin/stat.h: Use new dev_t definition throughout. * include/cygwin/types.h: Define __dev16_t and __dev32_t. Define dev_t according to __CYGWIN_USE_BIG_TYPES__ setting. * include/sys/sysmacros.h: Define major, minor and makedev according to __CYGWIN_USE_BIG_TYPES__ setting.
* * syscalls.cc (setegid32): Verify the correctness of the gidCorinna Vinschen2002-06-032-1/+7
| | | | of the group returned by getgrgid32.
* * security.cc (lsa2wchar): Suppressed.Corinna Vinschen2002-06-034-88/+114
| | | | | | | | | | | | | | | | | | | | (get_lsa_srv_inf): Suppressed. (get_logon_server_and_user_domain): Suppressed. (get_logon_server): Essentially new. (get_user_groups): Add "domain" argument. Only lookup the designated server and use "domain" in LookupAccountName. (is_group_member): Simplify the arguments. (get_user_local_groups): Simplify the arguments. Do only a local lookup. Use "BUILTIN" and local domain in LookupAccountName. (get_user_primary_group). Only lookup the designated server. (get_group_sidlist): Remove logonserver argument. Do not lookup any server for the SYSTEM account. (create_token): Delete logonserver and call to get_logon_server. Adjust arguments of get_group_sidlist, see above. * security.h: Delete declaration of get_logon_server_and_user_domain and add declaration of get_logon_server. * uinfo.cc (internal_get_login): Call get_logon_server instead of get_logon_server_and_user_domain.
* * regtool.cc (prog_name): New global variable.Christopher Faylor2002-06-032-65/+144
| | | | | | | | | (longopts): Ditto. (opts): Ditto. (usage): Standardize usage output. Rearrange/add descriptions. (print_version): New function. (main): Accomodate longopts and new --help, --version options. Add check for (_argv[optind+1] == NULL).
* * lib/thunk32.def (LIBRARY): Change to KERNEL32.dll.Danny Smith2002-06-023-1/+10
| | | | * lib/kernel32.def (ConvertToGlobalHandle): Add stub.
* * dtable.cc (handle_to_fn): Use largest match for device. CorrectlyChristopher Faylor2002-06-022-8/+37
| | | | (?) deal with remote drive weirdness.
* * strace.cc (forkdebug): Make true by default.Christopher Faylor2002-06-023-9/+18
| | | | | | (attach_process): Use window pid if cygwin pid isn't available (yet). (create_child): Use either DEBUG_ONLY_THIS_PROCESS or DEBUG_PROCESS, exclusively. (Suggested by Conrad.Scott@dsl.pipex.com)
* * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Check specificallyChristopher Faylor2002-06-022-2/+15
| | | | | for non-existent file, first. (fhandler_disk_file::fstat): Perform fd open on files with funny characters.
* * fhandler_process.cc (fhandler_process::open): Set fileid.Christopher Faylor2002-06-023-7/+12
|
* * how-programming.texinfo: Add more words to the "how to build".Christopher Faylor2002-06-022-7/+21
|
* Remove unneeded sigproc.h includes throughout.Christopher Faylor2002-06-0228-107/+83
| | | | | | | | | | | | | * fhandler.h (fhandler_proc::fill_filebuf): Take a pinfo argument. * fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Simplify search for given pid. (fhandler_proc::readdir): Assume that pid exists if it shows up in the winpid list. * fhandler_process.cc (fhandler_process::open): Simplify search for given pid. Call fill_filebuf with pinfo argument. (fhandler_process::fill_filebuf): Pass pinfo here and assume that it exists. * pinfo.h (pinfo::remember): Define differently if sigproc.h is not included. * dll_init.cc (dll_list::detach): Don't run destructor on exit.
* * configure.in: Complain about lack of w32api directory.Christopher Faylor2002-06-023-3/+18
| | | | * configure: Regenerate.
* * fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into caller.Christopher Faylor2002-06-026-28/+37
| | | | | | | | * syscalls.cc (stat_worker): Calculate dev and ino calculation here, if zero. * fhandler_proc.cc (fhandler_proc::fhandler_proc): Minor reorg for debugging. * fhandler_process.cc (fhandler_process::exists): Return 0 on nonexistence. (fhandler_process::fstat): Simplify pid logic. * fhandler_tape.cc (fhandler_dev_tape::fstat): Minor reformatting.
* include/elf/Richard Henderson2002-06-022-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * alpha.h (LITUSE_ALPHA_ADDR, LITUSE_ALPHA_BASE, LITUSE_ALPHA_BYTOFF, LITUSE_ALPHA_JSR, LITUSE_ALPHA_TLSGD, LITUSE_ALPHA_TLSLDM): New. gas/ * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h". Rename them LITUSE_ALPHA_*. bfd/ * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New. (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs in shared libraries. Fix DTPRELHI and TPRELHI value. (INSN_ADDQ, INSN_RDUNIQ): New. (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent. (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend argument. Reject dynamic symbols. Use LITUSE symbolic constants. (elf64_alpha_relax_got_load): Rename from relax_without_lituse. Handle GOTDTPREL and GOTTPREL relocations. (elf64_alpha_relax_gprelhilo): New. (elf64_alpha_relax_tls_get_addr): New. (elf64_alpha_relax_find_tls_segment): New. (elf64_alpha_relax_section): Handle TLS relocations. (ALPHA_ELF_LINK_HASH_TLS_IE): New. (elf64_alpha_check_relocs): Set it.
* * include/windef.h: Fix typo in last change.Danny Smith2002-06-012-1/+5
|
* * include/windef.h: Add no-op __try, __except, __finallyDanny Smith2002-06-014-21/+21
| | | | | | defines from ... * include/excpt.h: Remove file. * include/windows.h: Don't include excpt.h.
* * path.cc (chdir): Don't allow cd'ing to a non-directory virtual path.Christopher Faylor2002-06-012-0/+9
|
* Fill-out d10v enum so that there are no ``=''.Andrew Cagney2002-06-012-20/+61
|
* * fhandler_disk_file.cc (readdir): Move inode calculation into caller.Christopher Faylor2002-06-013-35/+59
| | | | | | (fhandler_cygdrive::readdir): Add "." and "..". * dir.cc (readdir): Move inode calculation here so that fhandler readdirs can benefit.
* remove accidentally checked in test version.Christopher Faylor2002-06-011-2/+0
|
* oopsChristopher Faylor2002-05-311-1/+0
|
* (add the rest of the ChangeLog)Christopher Faylor2002-05-311-0/+11
| | | | | | | | | | | * dtable.cc (dtable::init_std_file_from_handle): Default to using binmode derived from path_conv, when required. * fhandler.h (fhandler_base::get_w_binary): Default to binmode if nothing else is specified. * fhandler.h (fhandler_base::get_r_binary): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_handle): Work around g++ warning. * path.cc (path_conv::check): Remove a debugging statement.
* * fhandler_console.cc (fhandler_console::open): Reinstate setting of flags.Christopher Faylor2002-05-317-7/+16
|
* * fhandler_console.cc (fhandler_console::open): Always default to binmode.Christopher Faylor2002-05-312-9/+16
| | | | | | (fhandler_console::write_normal): Don't honor binmode setting. There is already a termios setting for this. (fhandler_console::init): Correct argument order in init call.
* * fhandler.cc (fhandler_base::open): Make default open mode == binmode.Christopher Faylor2002-05-312-7/+14
| | | | (fhandler_base::init): Set open flags based on derived binmode argument.
* * dll_init.cc (dll_list::init): Eliminate unneeded debugging statement.Christopher Faylor2002-05-312-1/+4
|
* * fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more files.Christopher Faylor2002-05-314-3/+13
| | | | | * fhandler_process.cc (fhandler_process::readdir): Ditto. * fhandler_registry.cc (fhandler_registry::readdir): Ditto.
* 2002-05-31 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-3111-111/+196
| | | | | | | | | | | | | | | | | | | | | | * libc/sys/linux/Makefile.am: Add sig.c and sigaction.c. Also make siglist.inc dependent on sig.c instead of signal.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sig.c: Rename from signal.c and change code to use NSIG instead of _NSIG. * libc/sys/linux/sigaction.c: New file. * libc/sys/linux/signal.c: Changed to be linux signal() function so as to override regular newlib default signal.c. * libc/sys/linux/linuxthreads/config.h: Add __ASSUME_REALTIME_SIGNALS definition. * libc/sys/linux/linuxthreads/testrtsig.h: New file. * libc/sys/linux/machine/i386/Makefile.am: Remove sigset.c. * libc/sys/linux/machine/i386/Makefile.in: Regenerated. * libc/sys/linux/machine/i386/sigset.c: Moved to linux main directory. * libc/sys/linux/sigset.c: Moved from machine/i386 directory. * libc/sys/linux/sys/signal.h: Redefine NSIG to _NSIG and override default linux sigset_t typedef by defining it equal to __sigset_t. * libc/unix/sigset.c: Add check so code isn't compiled on systems with a sigset_t that isn't implemented with a single int.
* * Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with BUILD_PREFIX,DJ Delorie2002-05-313-8/+12
| | | | | BUILD_PREFIX_1, to correct nomenclature. * configure: Likewise.
* * Makefile.in: Eliminate version-specific references to tcl8.1, tk8.1.DJ Delorie2002-05-313-10/+9
| | | | * configure.in: Eliminate version-specific references to tcl8.1, tk8.1.
* * config-ml.in: Propogate DESTDIR also.DJ Delorie2002-05-312-0/+5
|
* 2002-05-31 Michal Ludvig <mludvig@suse.cz>Michal Ludvig2002-05-312-2/+7
| | | | | * elf/dwarf2.h (DW_CFA_low_user, DW_CFA_high_user): Renamed to DW_CFA_lo_user, DW_CFA_hi_user respectively.
* * path.cc (path_conv::check): Set fileattr to INVALID_FILE_ATTRIBUTES forChristopher Faylor2002-05-312-1/+16
| | | | | | nonexistent virtual device path. (chdir): Set correct errno when attempt is made to cd to nonexistent virtual device path.
* [ gas/ChangeLog ]Chris Demetriou2002-05-312-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * config/tc-mips.c (mips_set_options): New "ase_mdmx" member. (mips_opts): Initialize "ase_mdmx" member. (file_ase_mdmx): New variable. (CPU_HAS_MDMX): New macro. (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx based on command line options and configuration defaults. (macro_build): Note in comment that use of MDMX in macros is not currently allowed. (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and "Z" MDMX operand types. (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set, and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand types. (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option): Add support for "-mdmx" and "-no-mdmx" options. (OPTION_ELF_BASE): Move to accomodate new options. (s_mipsset): Support ".set mdmx" and ".set nomdmx". (mips_elf_final_processing): Set MDMX ASE ELF header flag if file_ase_mdmx was set. * doc/as.texinfo: Document -mdmx and -no-mdmx options. * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set nomdmx" directives. [ gas/testsuite/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> * gas/mips/mips64-mdmx.s: New file. * gas/mips/mips64-mdmx.d: Likewise. * gas/mips/mips.exp: Run new "mips64-mdmx" test. [ include/opcode/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> * mips.h (OP_SH_ALN, OP_MASK_ALN, OP_SH_VSEL, OP_MASK_VSEL) (MDMX_FMTSEL_IMM_QH, MDMX_FMTSEL_IMM_OB, MDMX_FMTSEL_VEC_QH) (MDMX_FMTSEL_VEC_OB, INSN_READ_MDMX_ACC, INSN_WRITE_MDMX_ACC) (INSN_MDMX): New constants, for MDMX support. (opcode character list): Add "O", "Q", "X", "Y", and "Z" for MDMX. [ opcodes/ChangeLog ] 2002-05-30 Chris G. Demetriou <cgd@broadcom.com> Ed Satterthwaite <ehs@broadcom.com> * mips-dis.c (print_insn_arg): Add support for 'O', 'Q', 'X', 'Y', and 'Z' formats, for MDMX. (mips_isa_type): Add MDMX instructions to the ISA bit mask for bfd_mach_mipsisa64. * mips-opc.c: Add support for MDMX instructions. (MX): New definition. * mips-dis.c: Update copyright years to include 2002.