summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * common.h (NT_GNU_ABI_TAG): Define.Jason Thorpe2002-05-082-0/+24
| | | | | | | | (GNU_ABI_TAG_LINUX): Define. (GNU_ABI_TAG_HURD): Define. (GNU_ABI_TAG_SOLARIS): Define. (NT_NETBSD_IDENT): Define. (NT_FREEBSD_ABI_TAG): Define.
* * cygheap.h (class cygheap_user): Add member `orig_psid'.Corinna Vinschen2002-05-083-1/+19
| | | | | Add method `orig_sid()'. * cygheap.cc (cygheap_user::set_sid): Maintain orig_psid.
* * dumper.cc (usage) Standardize usage output. Generalize to allow use forChristopher Faylor2002-05-082-11/+59
| | | | | | | help. (longopts) New struct. Added longopts for all options. (print_version) New function. (main) Change getopt to getopt_long. Accommodate new help and version options.
* * libc/machine/powerpc/vfprintf.c[__ALTIVEC__]: Add vectorThomas Fitzsimmons2002-05-083-24/+50
| | | | | | | | support for 'p' format. Fix code to print bytes for vector integer formats that do not specify 'h' or 'l'. * libc/machine/powerpc/vfscanf.c[__ALTIVEC__]: Add vector support for 'p' specifier. Fix code to scan 16 bytes for vector integer formats that do not specify 'h' or 'l'.
* * libc/include/sys/stdio.h: New file.Thomas Fitzsimmons2002-05-0825-35/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libc/sys/linux/sys/stdio.h: New file. * libc/include/stdio.h: Add declarations for flockfile, ftrylockfile, and funlockfile. Include <sys/stdio.h>. * libc/stdio/clearerr.c: Add file locking. * libc/stdio/fclose.c: Likewise. * libc/stdio/feof.c: Likewise. * libc/stdio/ferror.c: Likewise. * libc/stdio/fflush.c: Likewise. * libc/stdio/fgetc.c: Likewise. * libc/stdio/fgetpos.c: Likewise. * libc/stdio/fgets.c: Likewise. * libc/stdio/fileno.c: Likewise. * libc/stdio/fputc.c: Likewise. * libc/stdio/fputs.c: Likewise. * libc/stdio/fread.c: Likewise. * libc/stdio/freopen.c: Likewise. * libc/stdio/fseek.c: Likewise. * libc/stdio/ftell.c: Likewise. * libc/stdio/fwrite.c: Likewise. * libc/stdio/getc.c: Likewise. * libc/stdio/putc.c: Likewise. * libc/stdio/setvbuf.c: Likewise. * libc/stdio/ungetc.c: Likewise. * libc/stdio/vfprintf.c: Likewise.
* * include/commctrl.h (ImageList_DragShowNolock): RemoveDanny Smith2002-05-072-1/+5
| | | | conflicting redeclaration.
* 2002-05-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-072-0/+190
| | | | * COPYING.LIBGLOSS: New file.
* Honour DESTDIRNick Clifton2002-05-072-2/+6
|
* * localtime.cc (tzsetwall): Use wildabbr if generated timezone nameCorinna Vinschen2002-05-072-7/+12
| | | | length < 3.
* * include/windows.h: Move _ANONYMOUS_UNION, _ANONYMOUS_STRUCT,Danny Smith2002-05-063-59/+65
| | | | | | | STRICT and related defines to ... * include/windef.h: Here. ChangeLog: Correct date and typo in last entry.
* 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-062-0/+7
| | | | * libc/include/stdlib.h (a64l, l64a, _l64a_r): Added prototypes.
* * libc/sys/arm/syscalls.c (_rename): Add parameter names.Thomas Fitzsimmons2002-05-062-2/+7
| | | | (_sbrk): Add cast of return value.
* 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-066-23/+301
| | | | | | | | | * libc/include/sys/reent.h (_l64a_buf): New reentrant area. (_REENT_L64A_BUF): New macro for accessing area. * libc/stdlib/Makefile.am: Add a64l.c and l64a.c. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/a64l.c: New file. * libc/stdlib/l64a.c: New file.
* 2002-05-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-05-065-6/+13
| | | | | | | * libc/unix/pread.c: Fix typo for _pread_r. * libc/unix/pwrite.c: Fix type for _pwrite_r. * libc/sys/linux/pread64.c: Fix typo for read syscall. * libc/sys/linux/pwrite64.c: Fix typo for write syscall.
* * spawn.cc (spawn_guts): Move call to set_process_privilege()Corinna Vinschen2002-05-064-11/+13
| | | | | | to load_registry_hive(). * registry.cc (load_registry_hive): ditto. * fork.cc (fork_parent): Call sec_user_nih() only once.
* * configure.in (noconfigdirs): Don't disable libgcj onAlexandre Oliva2002-05-052-1/+6
| | | | sparc64-*-solaris* and sparcv9-*-solaris*.
* * path.h (path_conv::path_conv): Initialise normalized_path to NULL.Christopher Faylor2002-05-042-1/+5
|
* .Christopher Faylor2002-05-041-0/+10
|
* * net.cc (getdomainname): Change second argument of getdomainname to size_t.Christopher Faylor2002-05-047-65/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fhandler_proc.cc (proc_listing): Add '.' and '..' to directory listing. (fhandler_proc::open): Change use of mode to flags. If the file does not exist already, fail with EROFS if O_CREAT flag is set. Change EROFS error to EACCES error when writing to a file. Use cmalloc to allocate memory for filebuf. (fhandler_proc::close): Use cfree to free filebuf. (fhandler_proc::get_proc_fhandler): Properly detect attempts to access unknown subdir. * fhandler_process.cc (process_listing): Add '.' and '..' to directory listing. (fhandler_process::open): Use cmalloc to allocate memory for filebuf. (fhandler_process::close): Use cfree to free filebuf. * fhandler_registry.cc (registry_listing): Add . and '..' to directory listing. (fhandler_registry::open): Move check for open for writing before open_key. Use cmalloc to allocate memory for filebuf. (fhandler_registry::close): Use cfree to free filebuf. (fhandler_registry::telldir): Use lower 16 bits of __d_position as position in directory. (fhandler_registry::seekdir): Ditto. * fhandler_virtual.cc (fhandler_virtual::write): Change EROFS error to EACCES error. (fhandler_virtual::open): Set the NOHANDLE flag. (fhandler_virtual::dup): Add call to fhandler_base::dup. Allocate child's filebuf using cmalloc. Copy filebuf from parent to child. (fhandler_virtual::close): Use cfree to free filebuf. (fhandler_virtual::~fhandler_virtual): Ditto. (from Chris Faylor <cgf@redhat.com>). (fhandler_registry::readdir): Add support for '.' and '..' files in subdirectories of /proc/registry. * path.cc (path_conv::check): Do not return ENOENT if a file is not found in /proc.
* * libc/include/sys/unistd.h: Define getdomainname under cygwin.Christopher Faylor2002-05-042-0/+7
|
* * configure.in: Revert 2002-04-18's patch; fixed in libjava.Alexandre Oliva2002-05-032-27/+4
|
* * configure.in (CC_FOR_NEWLIB): Change -isystem's to -I's.Thomas Fitzsimmons2002-05-033-2/+6
|
* * configure.in (FLAGS_FOR_TARGET): Do not addThomas Fitzsimmons2002-05-032-1/+6
| | | | | -B$$r/$(TARGET_SUBDIR)/newlib/ when compiling newlib natively on i[3456]86-*-linux*.
* * include/winsock2.h (int32): Remove typedef.Danny Smith2002-05-032-10/+26
| | | | | | (SEVICETYPE): Add typedef. (struct _flowspec):Revise struct definition, Comment on types used for members.
* * fhandler_proc.cc (fhandler_proc::fstat): Use fhandler name rather thanChristopher Faylor2002-05-038-24/+53
| | | | | | | | | | | | | | | | | | path_conv name. (fhandler_proc::open): Ditto. * fhandler_process.cc (fhandler_process::fstat): Use fhandler name rather than path_conv name. (fhandler_process::open): Ditto. * fhandler_registry.cc (fhandler_registry::fstat): Use fhandler name rather than path_conv name. (fhandler_registry::open): Ditto. * path.cc (path_conv::check): Don't copy posix path when virtual. (mount_info::conv_to_win32_path): Don't zero string when isproc. Just derive normal windows path. * path.h (path_conv::clear_normalized_path): Declare new method. * path.cc (path_conv::clear_normalized_path): Define new method. * dtable.cc (build_fhandler_from_name): Clear normalized path when finished to conserve space.
* * fhandler_proc.cc (fhandler_proc::fstat): Prime with information fromChristopher Faylor2002-05-022-6/+13
| | | | | fhandler_base::fstat. Use defines rather than constants for permission settings.
* * path.cc (hash_path_name): Improve hash function strength.Corinna Vinschen2002-05-022-3/+6
|
* missed a conflict indicatorRobert Collins2002-05-021-1/+0
|
* 2002-05-02 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-05-022-5/+14
| | | | | | * thread.cc (__pthread_cond_dowait): Fix a race on signalling from a thread woken by the same condition variable it's signalling on. Thanks to Michael Beach for the report and test case.
* * include/winnt.h (EVENT_*, SEMAPHORE_*, MUTEX_*): RemoveDanny Smith2002-05-023-7/+7
| | | | | more defines added in earlier 2002-05-02 change. * lib/Makefile.in (TEST_OPTIONS): Add -Wsystem-headers flag.
* * include/winnt.h (THREAD_PRIORITY_*): Remove defines.Danny Smith2002-05-022-9/+6
| | | | Add TIMER_* to last ChangeLog entry.