Commit Graph

300 Commits

Author SHA1 Message Date
Ralf Corsepius
82973a283f 2005-08-31 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 819/filesystem
        * src/ttyname_r.c: Remove.
        * src/ttyname.c: Partial update from FreeBSD.
        * Makefile.am: Reflect changes above.
2005-08-31 04:34:58 +00:00
Joel Sherrill
5978038f77 2005-08-17 Nickolay Semyonov <snob@oktetlabs.ru>
PR 744/filesystem
	* libcsupport/src/unlink.c, libfs/src/dosfs/msdos_eval.c: DOSFS did not
	support permissions on directories so the check performed by unlink
	would always fail. The unlink code was modified to support a not
	supported status being returned.
2005-08-17 19:17:37 +00:00
Joel Sherrill
5c12a265fa 2005-08-12 Chris Johns <chrisj@rtems.org>
PR 808/rtems_misc
	* src/printk.c: Fix bug where specifying field width crashed on pc386
	BSP.
2005-08-12 23:55:14 +00:00
Ralf Corsepius
28e7d30f34 2005-08-02 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 817/rtems
	* src/gxx_wrappers.c: Rename
	rtems_gxx_recursive_mutex_init_function to
	rtems_gxx_recursive_mutex_init.
2005-08-02 12:37:44 +00:00
Jennifer Averett
9d31e3498c 2005-05-13 Jennifer Averett <jennifer.averett@oarcorp.com>
* src/mallocfreespace.c:
	PR 786/rtems
	Backport mallocfreespace optimization.
2005-05-13 17:09:26 +00:00
Ralf Corsepius
e8ece0b494 2005-01-14 Ralf Corsepius <ralf.corsepius@rtems.org>
* src/gxx_wrappers.c: Backport from trunk. Add support for GCC-4.0.
2005-01-14 05:03:32 +00:00
Joel Sherrill
294daf49c0 2003-11-26 Joel Sherrill <joel@OARcorp.com>
PR 524/filesystem
	* src/newlibc.c: Address 1K buffer leak from incomplete cleanup of
	newlib reentrancy handler.
2003-11-26 17:53:41 +00:00
Joel Sherrill
c11ca8144b 2003-11-26 Joel Sherrill <joel@OARcorp.com>
PR 523/filesystem
	* src/malloc.c: Make malloc family safer for use from ISRs and
	dispatching critical sections. If in a critical section while doing
	a free(), then the free is deferred until the next malloc() attempt.
2003-11-26 17:51:00 +00:00
Jennifer Averett
86042ae953 2003-11-25 Jennifer Averett <jennifer@OARcorp.com>
PR 519/filesystem
	* include/rtems/libio_.h, src/eval.c, src/rmdir.c, src/unlink.c:
	Check write permissions in parent directory for file or
	directory delete
2003-11-25 17:27:55 +00:00
Joel Sherrill
49f466c75d 2003-10-22 Joel Sherrill <joel@OARcorp.com>
PR 511/filesystem
	* src/malloc.c: Add deferred free and protect against C Program Heap
	operations while in a dispatch disable critical section or ISR.
2003-10-22 16:54:15 +00:00
Joel Sherrill
328acbe8d2 2003-10-02 Phil Torre <ptorre@zetron.com>
PR 504/rtems
	* src/newlibc.c: Fix memory allocation of libc extension so it is
	dispatch disabled safe See PR for detailed explanation.
2003-10-02 12:38:52 +00:00
Joel Sherrill
2e9d1ef581 2003-09-26 Till Strauman <strauman@slac.stanford.edu>
PR 498/rtems
	* src/printk.c: RTEMS printk() does not support the %i format which is
	used by a lot of driver/BSP etc. code. The trivial patch allows %i/%I
	as an alias for %d/%D.
2003-09-26 17:37:42 +00:00
Ralf Corsepius
4c6fa77a56 2003-09-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 489/rtems
	* src/newlibc.c: Reflect struct Thread_Control_struct.libc_reent
	having changed from void * to struct _reent*.
2003-09-15 02:14:28 +00:00
Ralf Corsepius
d45368c23f 2003-09-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 486/rtems
	* src/newlib.c: Unconditionally include <stdio.h>
2003-09-13 03:41:38 +00:00
Joel Sherrill
8638d32b25 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/chain.h, include/clockdrv.h, include/console.h,
	include/iosupp.h, include/rtc.h, include/spurious.h,
	include/timerdrv.h, include/vmeintr.h, include/motorola/mc68230.h,
	include/rtems/libcsupport.h, include/rtems/libio.h,
	include/rtems/libio_.h, include/rtems/termiostypes.h,
	include/sys/termios.h, include/zilog/z8036.h, include/zilog/z8530.h,
	include/zilog/z8536.h, src/__brk.c, src/__gettod.c, src/__sbrk.c,
	src/__times.c, src/access.c, src/base_fs.c, src/cfgetispeed.c,
	src/cfgetospeed.c, src/cfsetispeed.c, src/cfsetospeed.c, src/chdir.c,
	src/chmod.c, src/chown.c, src/chroot.c, src/close.c, src/ctermid.c,
	src/dup.c, src/dup2.c, src/eval.c, src/fchdir.c, src/fchmod.c,
	src/fcntl.c, src/fdatasync.c, src/fpathconf.c,
	src/fs_null_handlers.c, src/fstat.c, src/fsync.c, src/ftruncate.c,
	src/getdents.c, src/getpwent.c, src/hosterr.c, src/ioctl.c,
	src/isatty.c, src/libio.c, src/libio_sockets.c, src/link.c,
	src/lseek.c, src/lstat.c, src/malloc.c, src/mallocfreespace.c,
	src/mkdir.c, src/mkfifo.c, src/mknod.c, src/mount.c, src/newlibc.c,
	src/no_libc.c, src/no_posix.c, src/open.c, src/pathconf.c,
	src/pipe.c, src/privateenv.c, src/read.c, src/readlink.c,
	src/rewinddir.c, src/rmdir.c, src/seekdir.c, src/stat.c,
	src/symlink.c, src/tcdrain.c, src/tcflow.c, src/tcflush.c,
	src/tcgetattr.c, src/tcgetprgrp.c, src/tcsendbreak.c,
	src/tcsetattr.c, src/tcsetpgrp.c, src/telldir.c, src/termios.c,
	src/termiosinitialize.c, src/truncate.c, src/umask.c, src/unixlibc.c,
	src/unlink.c, src/unmount.c, src/utime.c, src/write.c: URL for
	license changed.
2003-09-04 18:46:59 +00:00
Joel Sherrill
0ccd9daa6e 2003-09-04 Joel Sherrill <joel@OARcorp.com>
PR 479/rtems_misc
	* src/malloc.c: Per multiple standards realloc does not free the
	original memory if the allocation of the requested larger block
	fails.
2003-09-04 12:41:29 +00:00
Joel Sherrill
38845ecfbd 2003-09-02 Joel Sherrill <joel@OARcorp.com>
* src/open.c: Fix typo.
2003-09-02 21:03:13 +00:00
Joel Sherrill
863829e3ba 2003-09-02 Ilya Alexeev <ilya@continuum.ru>
PR 472/filesystem
	src/malloc.c: Need to include apimutex.h when MALLOC_STATS is defined.
2003-09-02 21:02:51 +00:00
Ralf Corsepius
34e6f9131b 2003-08-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 449/rtems:
	* src/getegid.c: New (Copied from ../posix/src).
	* src/geteuid.c: New (Copied from ../posix/src).
	* src/getgid.c: New (Copied from ../posix/src).
	* src/getgroups.c: New (Copied from ../posix/src).
	* src/getlogin.c: New (Copied from ../posix/src).
	* src/getpgrp.c: New (Copied from ../posix/src).
	* src/getpid.c: New (Copied from ../posix/src).
	* src/getppid.c: New (Copied from ../posix/src).
	* src/getuid.c: New (Copied from ../posix/src).
	* src/setpgid.c: New (Copied from ../posix/src).
	* src/setsid.c: New (Copied from ../posix/src).
	* src/no_posix: Remove getpid and _getpid_r.
	* Makefile.am: Reflect changes above.
2003-08-19 08:30:41 +00:00
cvs2git
c2eba811f4 This commit was manufactured by cvs2svn to create branch 'rtems-4-6-branch'.
Cherrypick from master 2003-08-18 07:31:32 UTC Ralf Corsepius <ralf.corsepius@rtems.org> '2003-08-18	Ralf Corsepius <corsepiu@faw.uni-ulm.de>':
    cpukit/libcsupport/src/getegid.c
    cpukit/libcsupport/src/geteuid.c
    cpukit/libcsupport/src/getgid.c
    cpukit/libcsupport/src/getgroups.c
    cpukit/libcsupport/src/getlogin.c
    cpukit/libcsupport/src/getpgrp.c
    cpukit/libcsupport/src/getpid.c
    cpukit/libcsupport/src/getppid.c
    cpukit/libcsupport/src/getuid.c
    cpukit/libcsupport/src/setpgid.c
    cpukit/libcsupport/src/setsid.c
2003-08-18 07:31:33 +00:00
Jennifer Averett
f114f9d03c 2003-08-05 Till Strauman <strauman@slac.stanford.edu>
PR 442/filesystem
	* src/open.c: file never closed if ftruncate() fails in open()
2003-08-05 15:54:28 +00:00
Joel Sherrill
b7d37d6e28 2003-07-08 Joel Sherrill <joel@OARcorp.com>
PR 419/rtems
	* src/termios.c: Removed warning.
2003-07-08 15:28:40 +00:00
Chris Johns
901c84a986 Patch by Chris Johns <cjohns@cybertec.com.au> adding the rtems_termios_bufsize call. 2003-07-02 14:17:25 +00:00
Joel Sherrill
35b8dbb934 2003-04-17 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
PR 399/rtems_misc
	* src/termios.c: In canonical mode, when input is present in the
	input buffer that contains an EOL character and some following
	characters, a read call read data behind the EOL character, although
	it should stop reading with the EOL character.
2003-05-26 15:57:21 +00:00
Ralf Corsepius
0f7d5a778f 2003-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/no_posix.c: include <reent.h> instead of <sys/reent.h>
2003-04-17 10:45:07 +00:00
Joel Sherrill
3b585c3be6 2003-04-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 389/rtems
	* src/no_posix.c: Correct _kill_r() prototype and make it conditional
	on newlib.
2003-04-16 19:40:47 +00:00
Joel Sherrill
bce564105d 2003-04-03 Eri Valette <eric.valette@free.fr>
PR 381/core
	* src/newlibc.c: Switch from using _REENT_INIT to _REEINT_INIT_PTR
	to fix strange run-time problem where EIP was corrupted on pc386 BSP.
2003-04-03 23:01:31 +00:00
Ralf Corsepius
8114f30144 2003-03-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: AC_CHECK_FUNCS(strlcpy strlcat).
	* src/strlcat.c: New (extracted from pppd/utils.c).
	* src/strlcpy.c: New (extracted from pppd/utils.c).
	* Makefile.am: Add BSD_C_FILES, strlcat.c, strlcpy.c.
2003-03-19 00:49:15 +00:00
Joel Sherrill
c494deb85d Patch against RTEMS-ss-20030128
Author: Till Straumann <strauman@slac.stanford.edu>

2003/2/11

This patch addresses the following issues:
2003-02-20	Till Straumann <strauman@slac.stanford.edu>

	PR 349/bsps
	* src/mount.c, src/privateenv.c:
  	    - mount() bugfix: allocated 'loc' node must be released if
			mount fails due to missing node_type_h
	    - silence compiler warning about improper pointer type

Index: cpukit/libcsupport/src/mount.c
===================================================================
RCS file: /afs/slac/g/spear/cvsrep/rtems/src-20030128/cpukit/libcsupport/src/mount.c,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 mount.c
*** cpukit/libcsupport/src/mount.c	29 Jan 2003 22:57:19 -0000	1.1.1.2
--- cpukit/libcsupport/src/mount.c	7 Feb 2003 20:47:49 -0000
***************
*** 142,147 ****
--- 142,149 ----
              mount_point, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE ) == -1 )
        goto cleanup_and_bail;

+     loc_to_free = &loc;
+
      /*
       * Test for node_type_h
       */
***************
*** 155,161 ****
       *  Test to see if it is a directory
       */

-     loc_to_free = &loc;
      if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
        errno = ENOTDIR;
        goto cleanup_and_bail;
--- 157,162 ----
Index: cpukit/libcsupport/src/privateenv.c
===================================================================
RCS file: /afs/slac/g/spear/cvsrep/rtems/src-20030128/cpukit/libcsupport/src/privateenv.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 privateenv.c
*** cpukit/libcsupport/src/privateenv.c	29 Jan 2003 22:57:20 -0000	1.1.1.3
--- cpukit/libcsupport/src/privateenv.c	30 Jan 2003 18:01:40 -0000
***************
*** 65,71 ****
     tmp->refcnt = 1;
  #endif

!    sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env);
     if (sc != RTEMS_SUCCESSFUL) {
  	 /* don't use free_user_env because the pathlocs are
  	  * not initialized yet
--- 65,71 ----
     tmp->refcnt = 1;
  #endif

!    sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env);
     if (sc != RTEMS_SUCCESSFUL) {
  	 /* don't use free_user_env because the pathlocs are
  	  * not initialized yet
2003-02-20 22:10:38 +00:00
Joel Sherrill
bce9f3b173 2003-02-20 Wolfram Wadepohl <W.Wadepohl@indumat.de>
PR 357/rtems_misc
	* src/termios.c (rtems_termios_open):  Fixed code the incorrectly
	checked that the wrong pointer during allocation was NULL.
2003-02-20 20:45:40 +00:00
Ralf Corsepius
a0d2c79a73 2003-02-18 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/privateenv.c: Fix prototype for free_user_env.
2003-02-18 12:51:46 +00:00
Joel Sherrill
f4f341bb9c 2003-02-05 Till Straumann <strauman@slac.stanford.edu>
PR 340/filesystem
	* src/fcntl.c: Add missing _fcntl_r assumed to exist by newlib.
2003-02-05 21:23:49 +00:00
Joel Sherrill
97aaa2a20a 2003-02-03 Joel Sherrill <joel@OARcorp.com>
PR 338/filesystem
	* src/unixlibc.c: Side-effect of fixing reentrancy problem with
	rtems_io_lookup_name() (API change).
2003-02-03 23:57:33 +00:00
Joel Sherrill
d90b74e07b 2003-02-03 Till Straumann <strauman@slac.stanford.edu>
PR 339/filesystem
	* src/chroot.c: Fix violation of FS node object copy semantics.
2003-02-03 22:00:30 +00:00
Jennifer Averett
f6161c72d1 2003-01-03 Till Straumann <strauman@slac.stanford.edu>
* ChangeLog, base_fs.c, getpwent.c, privateenv.c
	Per PR303, Fix violation of node_access copy syemantics
2003-01-03 18:14:09 +00:00
Jennifer Averett
4257974362 2002-12-26 Till Straumann <strauman@slac.stanford.edu
* src/fchdir.c - PR302 fix violation of FS node object copy semantics
2002-12-26 15:48:48 +00:00
Joel Sherrill
83333e9473 2002-12-06 Joel Sherrill <joel@OARcorp.com>
* src/malloc.c: Fixed code that incorrected did a disable dispatch
	instead of locking and unlocking the allocator mutex.
2002-12-06 13:49:57 +00:00
Ralf Corsepius
c7078611fc 2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add various checks to enhance portability.
	* src/termios.c: Reflect changes to configure.ac.
2002-12-06 06:25:58 +00:00
Joel Sherrill
4b5335229e 2002-11-07 <strauman@slac.stanford.edu>
* src/mount.c: Per PR297, correct fs_mountme failure paths.
2002-11-11 21:36:19 +00:00
Jennifer Averett
dae3dd1098 2002-11-07 <strauman@slac.stanford.edu>
* src/mount.c: Per PR297, correct fs_mountme failure
        paths.
2002-11-07 15:45:09 +00:00
Joel Sherrill
df4b9d6415 2002-10-31 Joel Sherrill <joel@OARcorp.com>
* src/mallocfreespace.c: Corrected sense of status check to
	match change inside RTEMS.
	* src/newlibc.c: Removed warning.
2002-10-31 20:16:34 +00:00
Eric Norum
108bab3ee7 Add vprintk function for kernel printing from routines
which have already obtained the va_list pointer.
2002-10-30 19:47:03 +00:00
Jennifer Averett
1d6662951e 2002-10-24 <strauman@slac.stanford.edu>
* src/eval.c: Per PR293, added freenode calls for evaluate
                      link failures.
2002-10-24 18:54:07 +00:00
Jennifer Averett
bf61751c5a 2002-10-23 <strauman@slac.stanford.edu>
* src/mount.c per PR290, add check for ops->node_type_h
        * src/mknod.c per PR291, remove erroneous call to freenod
2002-10-23 18:10:27 +00:00
Joel Sherrill
ed8c513a74 2002-10-02 Eric Norum <eric.norum@usask.ca>
* src/getpwent.c: Per PR283, reimplement to address reentrancy problems.
	* src/getgrent.c: Removed as functionality is now just a wrapper for
	common routines in src/getpwent.c.
	* Makefile.am: Reflect file removal.
2002-10-02 17:33:17 +00:00
Joel Sherrill
193fe69007 2002-09-14 Eric Norum <eric.norum@usask.ca>
* src/readdir_r.c: New file.
	* Makefile.am: Reflect above.
2002-09-14 17:04:05 +00:00
Joel Sherrill
771e79d6a9 2002-08-12 Eric Norum <eric.norum@usask.ca>
* src/write.c (_write_r): Change prototype to match newlib's reent.h.
2002-08-12 23:50:06 +00:00
Joel Sherrill
2e2cf92151 2002-07-01 Joel Sherrill <joel@OARcorp.com>
* src/__times.c: Corrected from previous attempt to cleanup.
2002-07-01 22:35:07 +00:00
Joel Sherrill
b43314ae91 2002-06-28 Joel Sherrill <joel@OARcorp.com>
* src/__times.c: Cleaned up comments, return more information,
	and eliminated the fatal error on clock not set since it cannot
	occur.
2002-06-28 18:51:35 +00:00
Joel Sherrill
3fa500f7e2 2001-05-24 Joel Sherrill <joel@OARcorp.com>
* src/.cvsignore: New file.
2002-05-24 15:38:42 +00:00