summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * newlib/libc/sys/h8300hms/Makeile.am (lib_a_SOURCES): Add read.c.Thomas Fitzsimmons2002-05-176-11/+38
| | | | | | * newlib/libc/sys/h8300hms/read.c: New file. Magic trap 0xC8 for sim. * newlib/libc/sys/h8300hms/syscalls.c: Move _read() to read.c. * newlib/libs/sys/h8300hms/sys/syscall.h: New file.
* * fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with highChristopher Faylor2002-05-172-2/+16
| | | | | order part of 64 bit address on OS's which do not support that kind of operation. Otherwise Windows 95 will become confused.
* * h8300.h: Corrected defs of all control regs and eepmov instr.Andrey Volkov2002-05-172-43/+48
|
* print_insn_sh cleanup:Joern Rennecke2002-05-172-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | include: * dis-asm.h (print_insn_shl, print_insn_sh64l): Remove prototype. gdb: * sh-tdep.c (gdb_print_insn_sh64): Delete. (gdb_print_insn_sh): Just set info->endian and use print_insn_sh. (sh_gdbarch_init): Always use gdb_print_insn_sh. opcodes: * disassemble.c (disassembler): Just use print_insn_sh for bfd_arch_sh. * sh-dis.c (LITTLE_BIT): Delete. (print_insn_sh, print_insn_shl): Deleted. (print_insn_shx): Renamed to (print_insn_sh). No longer static. Handle SHmedia instructions. Use info->endian to determine endianness. * sh64-dis.c (print_insn_sh64, print_insn_sh64l): Delete. (print_insn_sh64x): No longer static. Renamed to (print_insn_sh64). Removed pfun_compact and endian arguments. If we got an uneven address to indicate SHmedia, adjust it. Return -2 for SHcompact instructions. sim/sh64: * sim-if.c (sh64_disassemble_insn): Use print_insn_sh instead of print_insn_shl.
* * fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()Corinna Vinschen2002-05-173-15/+22
| | | | | | | | | | by __seterrno_from_win_error(). * security.cc (open_local_policy): Ditto. (get_lsa_srv_inf): Ditto. (get_user_groups): Ditto. (get_user_primary_group): Ditto. (create_token): Ditto. (subauth): Ditto.
* * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me whenCorinna Vinschen2002-05-174-16/+9
| | | | | | opening file for writing timestamp. * wincap.cc: Remove flag has_specific_access_rights. * wincap.h: Ditto.
* * libc/machine/sh/strcpy.S (strcpy): make sure r0 has right valueJoern Rennecke2002-05-162-4/+8
| | | | at first loop exit point.
* * libc/machine/sh/strcpy.S (strcpy): Replace LITTLE_ENDIAN withJoern Rennecke2002-05-162-1/+6
| | | | __LITTLE_ENDIAN__.
* * syscalls.cc (seteuid): Set default dacl in process token.Corinna Vinschen2002-05-165-74/+140
| | | | | | | | | | | | | | | Replace in-line code by call to verify_token(). (setegid): Reverse change from 2002-01-21. Add call to RevertToSelf and set primary group in impersonation token. * security.cc (create_token): Store pgrpsid in token security descriptor, except if it already appears in my_grps. Use sec_acl() in place of get_dacl(). (verify_token): Create from code in seteuid(), with tighter checks. (get_dacl) Deleted. (get_group_sidlist): Add argument to indicate if pgrpsid is already in the groups. * security.h: Define verify_token(). * autoload.cc: Load GetKernelObjectSecurity().
* * testsuite/lib/newlib.exp: Add newlib_include_flags to compileThomas Fitzsimmons2002-05-162-1/+4
| | | | options when testing natively on i[3456]86-*-linux.
* * ChangeLog: Update.Thomas Fitzsimmons2002-05-151-0/+10
|
* * testsuite/lib/checkoutput.exp (newlib_check_output): OutputThomas Fitzsimmons2002-05-153-119/+119
| | | | | | | | | only one pass or fail per test file. Trim \r's from output values received from test programs. Remove support for named tests. * testsuite/newlib.locale/UTF-8.exp: Update to support new newlib_check_output behaviour. * testsuite/newlib.locale/UTF-8.c: Likewise.
* 2002-05-15 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-158-20/+168
| | | | | | | | | | | | | | | | | * libc/include/stdlib.h: Add on_exit prototype. * libc/include/sys/reent.h (struct _atexit): Add argument array and bits to track type of exit routine to support both on_exit and atexit. (_REENT_INIT_PTR): Add missing fields that won't be zeroed out by default and change the setting of the atexit structure. (_REENT_INIT)[!_REENT_SMALL]: Remove extraneous end brace. * libc/stdlib/on_exit.c: New file. * libc/stdlib/Makefile.am: Add support for on_exit. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/atexit.c: Change to initialize types field. * libc/stdlib/exit.c: Change to look at types field for each exit routine and either call an atexit-style or an on_exit-style routine accordingly.
* * cygpath.cc (get_short_paths): Fix more error checking.Corinna Vinschen2002-05-153-58/+73
| | | | | | | | | (get_short_name): Ditto. * cygpath.cc (main): Add option H to show the Windows' profiles directory. Support short names for options DPSW. Clean up copied code lines. * utils.sgml: Update cygpath section for H option and s support.
* * cygpath.cc (get_short_name): Fix error checking.Corinna Vinschen2002-05-142-1/+5
|
* * kill.cc (prog_name) New global variable.Christopher Faylor2002-05-132-7/+60
| | | | | | | | (usage) Standardize usage output. Add descriptions. (print_version) New function. (longopts) Accomodate new version option. (opts) Ditto. (main) Ditto.
* * configure.in: simplify makefile fragment collection.DJ Delorie2002-05-132-36/+38
|
* * configure.in: remove code to build emacs.DJ Delorie2002-05-132-23/+10
|
* * mh-apollo68: remove unused HDEFINES setting.DJ Delorie2002-05-134-6/+6
| | | | | * mh-dgux: remove unused HDEFINES setting. * mh-dgux386: remove unused HDEFINES setting, duplicate RANLIB=true
* * configure.in : Remove --srcdir argument from targargs and buildargsDJ Delorie2002-05-132-7/+15
| | | | (it's always overridden in the Makefile anyway). Rearrange a bit.
* 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-132-3/+21
| | | | | | * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Don't allow v specifier with n or L specifiers. For vector c format, move tmp declaration to the top.
* * configure: move some logic to configure.inDJ Delorie2002-05-133-16/+17
| | | | * configure.in: move some logic from configure
* * cygwin.din: Add strlcat and strlcpy.Christopher Faylor2002-05-133-1/+11
| | | | * include/cygwin/version.h: Increment API minor version number.
* 2002-05-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-133-13/+115
| | | | | | | | | | | | * libc/machine/powerpc/vfprintf.c(__VFPRINTF_R)[__ALTIVEC__]: Restore the original format specifier when looping for vectors to compensate for any changes made in vector %g format processing. Also add syntax checking for various invalid scenarios involving vector format extensions. * libc/machine/powerpc/vfscanf.c(__VFSCANF_R)[__ALTIVEC__]: Fix return code setting for vector formats. Also treat vector separator mismatch as a match error instead of an input error. Perform some syntax checking for vector formats.
* * strlcat.c: Add file.Thomas Fitzsimmons2002-05-132-0/+144
| | | | * strlcpy.c: Add file.
* 2002-05-10 Mark Bradshaw <bradshaw@staff.crosswalk.com>Thomas Fitzsimmons2002-05-134-8/+22
| | | | | | | * libc/include/string.h (!__STRICT_ANSI__): Add strlcat and strlcpy. * libc/string/Makefile.am: Add strlcat.c and strlcpy.c. * libc/string/strlcat.c: New file. * libc/string/strlcpy.c: New file.
* * shared.cc (__sec_user): Split into sec_acl() and call orig_sid().Corinna Vinschen2002-05-133-42/+44
| | | | | (sec_acl): Create from part of __sec_user(), except creator/owner. * security.h: Define sec_acl() and MAX_DACL_LEN.
* * kill.cc (listsig): Display numeric id when given symbolic input.Christopher Faylor2002-05-132-1/+8
|
* document kill -h.Christopher Faylor2002-05-131-0/+3
|
* * kill.cc (usage): Show new options. Allow specification of output stream.Christopher Faylor2002-05-132-3/+13
| | | | (main): Implement 'h' option.
* Update ChangeLog with missing entry.Christopher Faylor2002-05-132-1/+8
|
* * Makefile.in (kill.exe): Add as a specific target.Christopher Faylor2002-05-134-28/+114
| | | | | | | | | | * kill.cc (longopts): New. (opts): Ditto. (get_sig): Accept const char * parameter. Return -1 on unknown signal. (test_for_unknown_sig): New function. (listsig): New function. (main): Use getopt_long for option parsing. Implement -l, and -s options. Use test_for_unknown_sig() to test for signal validity.
* remove a commaChristopher Faylor2002-05-121-1/+1
|
* * fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using O_DIROPEN whenChristopher Faylor2002-05-122-4/+14
| | | | OS doesn't support it. Return proper errno in that case.
* fix entryChristopher Faylor2002-05-121-3/+3
|
* * syscalls.cc (_read): Change error to EBADF if attempt to write to aChristopher Faylor2002-05-122-0/+13
| | | | non-writable fd.
* * mount.cc (do_mount): Default to non-exec option for remote drives. ReportChristopher Faylor2002-05-124-16/+70
| | | | | | | | | | | warnings before attempting a mount. (longopts): Add no-executable option. (mount_commands): Ditto. (opts): Ditto. (usage): Ditto. Indicate that system mount is now the default. (main): Accommodate no-executable option. Make system mount the default. * umount.cc (usage): Indicate that system umount is now the default. (main): Make system umount the default.
* * fhandler.h (executable_states): For now, make dont_care_if_executableChristopher Faylor2002-05-125-60/+80
| | | | | | | | | | equivalent to not_executable. * sys/mount.h: Define MOUNT_NOTEXEC. * path.h (fs_info): New class. (path_conv): Move fs-specific fields to new 'fs' structure. (path_conv::update_fs_info): Move to fs_info and rename to just 'update'. * path.cc (fs_info::update): Ditto. Return 'true' if successful. (fillout_mntent): Add ',noexec' to list of reported options.
* * fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler warning.Christopher Faylor2002-05-122-1/+6
|
* fix formattingChristopher Faylor2002-05-122-12/+17
|
* fix commentChristopher Faylor2002-05-121-1/+1
|
* * autoload.cc: Add dynamic load statements for 'ZwQueryInformationProcess' andChristopher Faylor2002-05-1210-73/+1001
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'ZwQueryVirtualMemory'. * fhandler.h: Change type of bufalloc and filesize members of fhandler_virtual from int to size_t. Change type of position member from __off32_t to __off64_t. Add new fileid member to fhandler_virtual class. Make seekdir take an __off64_t argument. Make lseek take an __off64_t argument. Add fill_filebuf method to fhandler_virtual. Add fill_filebuf method to fhandler_proc. Add fill_filebuf method to fhandler_registry. Add fill_filebuf method to fhandler_process. Add saved_pid and saved_p members to fhandler_process. * fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'. (proc_fhandlers array): Ditto. (fhandler_proc::open): Use fill_filebuf to flesh out the file contents. (fhandler_proc::fill_filebuf): New method. (fhandler_proc::format_proc_meminfo): Ditto. (fhandler_proc::format_proc_stat): Ditto. (fhandler_proc::format_proc_uptime): Ditto. * fhandler_process.cc (process_listing): Add 'stat' and 'statm'. (fhandler_process::fstat): Find the _pinfo structure for the process named in the filename. Return ENOENT if the process is no longer around. Set the gid and uid fields of the stat structure. (fhandler_process::open): Store pid and pointer to _pinfo structure in saved_pid and saved_p respectively. Use fill_filebuf to flesh out file contents. (fhandler_proc::fill_filebuf): New method. (format_process_stat): New function. (format_process_status): Ditto. (format_process_statm): Ditto. (get_process_state): Ditto. (get_mem_values): Ditto. * fhandler_registry.cc (fhandler_registry::seekdir): Change argument type from __off32_t to __off64_t. (fhandler_registry::fill_filebuf): New method. * fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type from __off32_t to __off64_t. (fhandler_virtual::lseek): Ditto. (fhandler_virtual::fill_filebuf): New method. (fhandler_virtual::fhandler_virtual): Initialise fileid to -1. * wincap.cc: Set flag has_process_io_counters appropriately. * wincap.h: Add flag has_process_io_counters.
* * libnosys/acconfig.h (HAVE_SECTION_ATTRIBUTES): New macro.Thomas Fitzsimmons2002-05-116-28/+76
| | | | | | * libnosys/configure.in: Check gcc's support for section attributes. * libnosys/warning.h: Have link_warning expand to nothing if gcc does not support section attributes.
* 2002-05-10 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-05-102-0/+58
| | | | * sim-sh.h: New file, for sh gdb<->sim interface.
* 2002-05-10 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-102-2/+6
| | | | * libc/string/strchr.c: Fix comment typo.
* * syscalls.cc (_write): Change error to EBADF if attempt to write to aChristopher Faylor2002-05-092-0/+8
| | | | non-writable fd.
* 2002-05-09 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz2002-05-092-10/+20
| | | | | | * signals.h: Update comments. (enum target_signal): Remove conditional compilation around Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
* * acinclude.m4: Add support for --enable-newlib-multithread.Thomas Fitzsimmons2002-05-08125-2150/+3572
| | | | | * configure.host (newlib_cflags): Add -D__SINGLE_THREAD__ if --enable-newlib-multithread=no.
* * libc/stdio/getc_u.c: New file.Thomas Fitzsimmons2002-05-089-13/+343
| | | | | | | | | | | * libc/stdio/getchar_u.c: New file. * libc/stdio/putc_u.c: New file. * libc/stdio/putchar_u.c: New file. * libc/include/stdio.h: Add declarations for getc_unlocked, getchar_unlocked, putc_unlocked and putchar_unlocked. * libc/stdio/Makefile.am (LIB_SOURCES): Add new files. (CHEWOUT_FILES): Add new files' .def's. * libc/stdio/putchar.c (_putchar_r): Replace __sputc with putc.
* * libc/machine/sh/memset.S (memset, __SHMEDIA__ code):Joern Rennecke2002-05-082-16/+24
| | | | | Also handle as single quad word when destination ends at last byte of first quad word. Fix byte selection in single quad code.