summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* add new filesChristopher Faylor2002-05-024-0/+1325
|
* add commentChristopher Faylor2002-05-021-0/+1
|
* * path.h (pathconv_arg): Add PC_POSIX.Christopher Faylor2002-05-0211-64/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (path_conv): Add normalized_path field. * path.cc (path_conv::~path_conv): New destructor. (path_conv::check): Set normalized_path, where appropriate. * dtable.cc (build_fhandler_from_name): Use normalized path from path_conv. * syscalls.cc (chroot): Ditto. * cygheap.h: Remove path_prefix_p declaration. Christopher Faylor <cgf@redhat.com> (minor fixups) * Makefile.in: Add fhandler_proc.o, fhandler_registry.o, fhandler_process.o and fhandler_virtual.o. * dtable.cc (dtable::build_fhandler): Add entries for FH_PROC, FH_REGISTRY and FH_PROCESS. Set unix_name to the normalized posix path. * fhandler.h: Add constants for FH_PROC, FH_REGISTRY and FH_PROCESS. Add class declarations for fhandler_virtual, fhandler_proc, fhandler_registry and fhandler_virtual. Update fhandler_union accordingly. * fhandler_proc.cc: New file. Add implementation for fhandler_proc. * fhandler_virtual.cc: New file. Add implementation for fhandler_virtual. * fhandler_process.cc: New file. Add implementation for fhandler_process. * fhandler_registry.cc: New file. Add implementation for fhandler_registry. * path.cc: Add isproc and isvirtual_dev macros. * path.cc (path_conv::check): Add check for virtual devices. * path.cc (mount_info::conv_to_win32_path): Convert paths in /proc to empty Win32 paths. * path.cc (chdir): Replace check for FH_CYGDRIVE with more generic isvirtual_dev macro. Force setting of posix path for virtual fhandlers. * path.h: Add externally visible path_prefix_p and normalized_posix_path prototypes.
* * include/winnt.h (THREAD_*, EVENT_*, MUTANT_*,Danny Smith2002-05-022-0/+28
| | | | SEMAPHORE_*, MUTEX_*): Add new defines.
* * utmp.h: Define more UNIX constants.Christopher Faylor2002-05-022-0/+9
|
* * configure.in (noconfigdirs): Replace [ ] with test.Thomas Fitzsimmons2002-05-012-2/+4
|
* * configure.in (noconfigdirs): Do not add target-newlib ifThomas Fitzsimmons2002-05-012-1/+20
| | | | target == i[3456]86-*-linux*, and host == target.
* * include/cygwin/types.h: Include <sys/sysmacros.h>.Christopher Faylor2002-05-012-0/+6
|
* * Makefile.am: Add support for checking multilibs.Thomas Fitzsimmons2002-05-013-4/+14
|
* * libc/Makefile.am (SUBLIBS): Add LIBC_EXTRA_LIB.Thomas Fitzsimmons2002-05-0119-3/+166
| | | | | | | | | | | | | | | | | (SUBDEFS): Add LIBC_EXTRA_DEF. * libc/configure.in (LIBC_EXTRA_LIB): New variable. (LIBC_EXTRA_DEF): Likewise. (extra_dir): Likewise. * libc/machine/xscale/machine: New directory. * libc/machine/xscale/machine/profile.h: New file. * Makefile.am (site.exp): Remove newlib_cflags. Add multibuildtop. * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's. * testsuite/lib/flags.exp: New file. * testsuite/lib/newlib.exp: Load flags.exp. (newlib_target_compile): Remove libgloss directory references. (newlib_init): Remove newlib_cflags references.
* * Add flags.exp.Thomas Fitzsimmons2002-05-011-0/+82
|
* * Makefile.am (site.exp): Remove newlib_cflags. AddThomas Fitzsimmons2002-05-015-20/+22
| | | | | | | | | multibuildtop. * testsuite/newlib.locale/UTF-8.c: Change fprintf's to printf's. * testsuite/lib/flags.exp: New file. * testsuite/lib/newlib.exp: Load flags.exp. (newlib_target_compile): Remove libgloss directory references. (newlib_init): Remove newlib_cflags references.
* * include/commctrl.h (SNDMSG): Define and use throughoutDanny Smith2002-05-013-175/+193
| | | | | in other macros instead of SendMessage. * include/commdlg.h (SNDMSG): Ditto.
* * testsuite/lib/newlib.exp (newlib_target_compile): ChangeThomas Fitzsimmons2002-04-302-1/+4
| | | | method of finding libgloss_target_dir.
* * Makefile.am (site.exp): Change host_alias, host_triplet,Thomas Fitzsimmons2002-04-304-20/+26
| | | | | | | | | | target_alias, target_triplet to refer to gcc's host and target variables (newlib's build and host variables). * testsuite/lib/newlib.exp (newlib_init): Change build references to host references, host references to target references to reflect Makefile.am changes. (newlib_target_compile): Likewise. (newlib_finish): Likewise.
* * Various formatting and whitespace changes.Thomas Fitzsimmons2002-04-3016-47/+44
|
* * config.guess: Updated to 2002-04-26's version.Mark Mitchell2002-04-303-19/+25
| | | | * config.sub: Updated to 2002-04-26's version.
* * config/mh-cxux: remove dead codeDJ Delorie2002-04-3019-30/+19
| | | | | | | | | | | | | | | | | | | * config/mh-dgux386: remove dead code * config/mh-hp300: remove dead code * config/mh-hpux: remove dead code * config/mh-hpux8: remove dead code * config/mh-irix5: remove dead code * config/mh-irix6: remove dead code * config/mh-ncr3000: remove dead code * config/mh-ncrsvr43: remove dead code * config/mh-necv4: remove dead code * config/mh-sco: remove dead code * config/mh-solaris: remove dead code * config/mh-sysv: remove dead code * config/mh-sysv4: remove dead code * config/mh-sysv5: remove dead code * config/mh-irix4: remove, contains only dead code * configure.in: delete reference to absent file
* * configure.in: replace '[' with 'test'DJ Delorie2002-04-302-73/+81
|
* * configure.in (h8300*-*-rtems*): Disable libf2c and libgcj.DJ Delorie2002-04-302-0/+19
| | | | (sparc-*-elf*, sparc64-*-elf*): Disable libgcj.
* * configure.in: Eliminate references to gash.DJ Delorie2002-04-303-8/+6
| | | | * Makefile.in: Eliminate references to gash.
* * configure.in: Remove useless references to 'pic' makefile fragments.DJ Delorie2002-04-3011-10/+13
| | | | | | | | | | | | | * config/mt-armpic: Delete. * config/mt-elfalphapic: Delete. * config/mt-i370pic: Delete. * config/mt-ia64pic: Delete. * config/mt-m68kpic: Delete. * config/mt-papic: Delete. * config/mt-ppcpic: Delete. * config/mt-s390pic: Delete. * config/mt-sparcpic: Delete. * config/mt-x86pic: Delete.
* * configure.in: Remove useless references to 'pic' makefile fragments.DJ Delorie2002-04-302-71/+2
|
* * configure.in: (*-*-windows*) Finish removing.DJ Delorie2002-04-302-3/+2
|
* * configure.in: Eliminate redundant test for libgui.DJ Delorie2002-04-302-4/+4
|
* 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-292-0/+6
| | | | * libc/sys/linux/io64.c (fstat64, lstat64): New syscalls added.
* Fix trivial typo in last changeJonathan Larmour2002-04-291-1/+1
|
* * arm/syscall.h: New file. To define extra syscall values for RedBoot.Jonathan Larmour2002-04-293-16/+160
| | | | | | | | | | | | | | | * arm/redboot-syscalls.c (_close): Fix setting of errno value. (_lseek): Ditto. (_open): Ditto. (_write): Ditto. (_read): Ditto. (_rename): New function. (_system): Ditto. (_stat): Ditto. (_unlink): Call a syscall for this now. (isatty): Ditto. (_fstat): Ditto. (_gettimeofday): Ditto.
* * libc/sys/arm/syscalls.c (_rename): New function. Just a stub.Jonathan Larmour2002-04-294-1/+31
| | | | | | | (_system): New function. Ditto. * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM. * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale targets.
* 2002-04-29 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-2910-16/+342
| | | | | | | | | | | | * libc/include/sys/unistd.h (pread, pwrite): Added prototypes. * libc/unix/Makefile.am: Add pread.c and pwrite.c. * libc/sys/linux/Makefile.am: Add pread64.c and pwrite64.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/unix/Makefile.in: Ditto. * libc/sys/linux/pread64.c: New file. * libc/sys/linux/pwrite64.c: Ditto. * libc/unix/pread.c: Ditto. * libc/unix/pwrite.c: Ditto.
* * mkgroup.c (main): Change call to exit() to a return statement.Corinna Vinschen2002-04-293-26/+70
| | | | | | | | | | | | * mkpasswd.c (main): Ditto. * mkpasswd.c (usage): Simplify usage output. Generalize to allow use for help. Correct '?' typo to 'h'. (longopts): Add version option. (opts): Add 'v' version option. (print_version): New function. (main): Accommodate new version option. Accommodate usage parameter changes.
* 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-266-15/+80
| | | | | | | | * libc/sys/linux/Makefile.am: Add io64.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/io.c(mkfifo, fsync, fdatasync): Added syscalls. * libc/sys/linux/signal.c (sigwaitinfo, sigtimedwait): Ditto. * libc/sys/linux/io64.c: New file.
* 2002-04-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-265-12/+32
| | | | | | | | | | * configure.in (CC_FOR_NEWLIB): New variable that bases on $(CC) and adds targ-include and libc/include as -isystem directives if they are not already part of $(CC). * Makefile.am (AM_MAKEFLAGS): Change setting of CC to equal $(CC_FOR_NEWLIB). * configure: Regenerated. * Makefile.in: Ditto.
* * configure.in: Remove cinstall target.Christopher Faylor2002-04-254-7/+7
| | | | | * Makefile.in: Ditto. * configure: Regenerate.
* 2002-04-25 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2002-04-255-8/+42
| | | | | | | * libc/sys/linux/Makefile.am: Add support for sched.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sched.c: New file. * libc/sys/linux/sys/types.h: Add struct timespec.
* * configure.in (CC_FOR_BUILD): Set to gcc whetherThomas Fitzsimmons2002-04-254-10/+40
| | | | | | cross-compiling or not. (CC): Add -isystem's for targ-include and libc/include when they do not already appear in CC.
* 2002-04-24 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2002-04-252-0/+5
| | | | * dwarf2.h: Add DW_AT_GNU_vector.