Commit Graph

831 Commits

Author SHA1 Message Date
Joel Sherrill
a1f10111da 2002-10-28 Joel Sherrill <joel@OARcorp.com>
* include/rtems/libio.h: Change rtems_filesystem_node_types_t from
	enumeration to int to eliminate warnings when values are overridden.
2002-10-28 14:04:03 +00:00
Ralf Corsepius
56a1ae369d 2002-10-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add nostdinc to AM_INIT_AUTOMAKE.
2002-10-25 06:18:56 +00:00
Joel Sherrill
4dfda3beb6 2002-10-24 <strauman@slac.stanford.edu>
* src/eval.c: Per PR293, added freenode calls for evaluate
        link failures.
2002-10-24 22:24:41 +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
Ralf Corsepius
f8cb04a54a 2002-10-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* .cvsignore: Reformat.
	Add autom4te*cache.
	Remove autom4te.cache.
2002-10-21 12:04:36 +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
5d0b2f75eb 2002-09-14 Joel Sherrill <joel@OARcorp.com>
* include/rtems/libio.h: Change rtems_filesystem_read_t and
	rtems_filesystem_write_t to return ssize_t to match read(2)
	and write(2) respectively.
2002-09-14 21:07:02 +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
5af0cf2fb2 2002-07-30 Joel Sherrill <joel@OARcorp.com>
* include/sys/utime.h: Removed as file is now part of the RTEMS
	newlib support.
	* Makefile.am: Reflect above.
	* include/rtems/termiostypes.h: Avoid use of __P.
2002-07-30 23:26:18 +00:00
Joel Sherrill
8d6db1780f 2002-07-30 Joel Sherrill <joel@OARcorp.com>
* include/sys/utime.h: Removed as file is now part of the RTEMS
	newlib support.
	* Makefile.am: Reflect above.
2002-07-30 23:26:17 +00:00
Ralf Corsepius
eb5100ba37 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Use .$(OBJEXT) instead of .o.
2002-07-22 13:39:11 +00:00
Ralf Corsepius
8b006a771c 2002-07-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Eliminate LIBNAME. Use AM_CPPFLAGS instead of
	INCLUDES (Upcoming automake standard).
2002-07-22 06:35:17 +00:00
Ralf Corsepius
705a070160 2002-07-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: RTEMS_TOP(../..).
2002-07-05 15:55:09 +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
Ralf Corsepius
8c746fe197 2002-07-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove RTEMS_PROJECT_ROOT.
2002-07-01 09:59:55 +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
Ralf Corsepius
da8f88a23e 2002-06-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use AC_CONFIG_AUX_DIR(../..).
	Add AC_PROG_RANLIB.
2002-06-27 04:00:20 +00:00
Ralf Corsepius
b8ad66c74f 2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge src/Makefile.am.
	* configure.ac: Reflect changes above.
	* src/Makefile.am: Remove.
2002-06-17 15:05:53 +00:00
Ralf Corsepius
8ed9f53d29 2002-06-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Include $(top_srcdir)/../automake/*.am.
	Use ../aclocal.
	* src/Makefile.am: Include $(top_srcdir)/../automake/*.am.
2002-06-17 09:12:49 +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
Joel Sherrill
c8e972f57b 2002-05-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
Relocate libcsupport from c/src/lib to c/src/exec/libcsupport.
	* configure.ac: Use ENV_RTEMSCPU. Reflect changed paths.
	* Makefile.am: Reflect changed paths.
	* src/Makefile.am: Reflect changed paths.
2002-05-17 18:32:22 +00:00
Joel Sherrill
7c844e30ab 2001-05-17 Joel Sherrill <joel@OARcorp.com>
* libc/envlock.c: Implemented code to let newlib's envlock share
	the libio open/close mutex.  Since both should be lightly used,
	this should not lead to problems and saves resources.
2002-05-17 18:03:34 +00:00
Joel Sherrill
c0d4abe6b0 2002-05-15 Chris Johns <ccj@acm.org>
* libc/newlibc.c: Per PR141, move the C library re-enterrant
	support directly into the thread dispatch code. RTEMS needs
	libc and so requiring libc to use a user extension with its
	overhead is not the best solution. This patch lowers the
	overhead to 2 pointer moves.
2002-05-15 16:29:05 +00:00
Joel Sherrill
f85a3c56ed 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Remove.
	* include/sys/utsname.h: Added, removed times (now in newlib).
	* Makefile.am: Merge include/Makefile.am
	* libc/utsname.c: Relocated from posix/src.
	* libc/Makefile.am: Reflect changes above.
	* configure.ac: Remove include/Makefile
2002-05-14 20:52:51 +00:00
Joel Sherrill
baf7133855 2001-05-14 Till Straumann <strauman@slac.stanford.edu>
* Per PR212, added envlock support for newlib.  This is used
	by at least getenv()/putenv() to avoid race conditions.
	* libc/envlock.c: New file.
	* libc/Makefile.am: Modified to reflect above.
2002-05-14 19:02:06 +00:00
Joel Sherrill
deb66d121b 2002-05-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Remove.
	* include/sys/utsname.h: Added, removed times (now in newlib).
	* Makefile.am: Merge include/Makefile.am

	* libc/utsname.c: Relocated from posix/src.
	* libc/Makefile.am: Reflect changes above.

	* configure.ac: Remove include/Makefile
2002-05-14 18:46:05 +00:00
Joel Sherrill
b7be6533db 2002-05-14 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/sys/ioctl.h: Relocated from libnetworking/sys.
	* include/sys/filio.h: Relocated from libnetworking/sys.
	* include/sys/sockio.h: Relocated from libnetworking/sys.
	* include/Makefile.am: Reflect changes above.
	* configure.ac: Take out *NETWORKING*.
2002-05-14 18:03:57 +00:00
Joel Sherrill
616b9f56ca 2001-04-26 Joel Sherrill <joel@OARcorp.com>
* libc/gxx_wrappers.c: Fix to keep prototype same as in gcc and
	remove warning.
2002-04-26 23:24:45 +00:00
Joel Sherrill
1216c9cebf 2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/scandir.c: Initialize nitems = 0.
2002-04-17 14:01:34 +00:00
Joel Sherrill
485e80fa03 2002-04-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am: Add stdint.h and inttypes.h.
	  (reported by Mike Siers <mikes@poliac.com>)
	* include/stdint.h: New file.
	* include/inttypes.h: New file.
2002-04-16 13:23:40 +00:00
Joel Sherrill
29fd4e38bd 2002-04-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/stat.c: include <string.h>.
	* libc/printk.c: Remove libcpu/cpu.h.
2002-04-08 18:29:16 +00:00
Joel Sherrill
47f7dc5dac 2002-04-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/ctermid.c: Include <string.h>.
	* libc/ttyname.c: Ditto.
	* libc/ttyname_r.c: Ditto.
2002-04-03 14:22:58 +00:00
Joel Sherrill
b449267bfd 2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
	AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
	AM_INIT_AUTOMAKE([no-define foreign 1.6]).
	* include/Makefile.am: Remove AUTOMAKE_OPTIONS.
	* Makefile.am: Remove AUTOMAKE_OPTIONS.
	* libc/Makefile.am: Remove AUTOMAKE_OPTIONS.
2002-03-28 00:48:39 +00:00
Joel Sherrill
eaeb467139 2001-03-20 Joel Sherrill <joel@OARcorp.com>
* PR143
	* lib/include/rtems/termiostypes.h: Removed unneeded volatile on
	"theBuf" since no byte is read more than once anyway.
2002-03-20 17:59:12 +00:00
Joel Sherrill
49155d9325 2002-03-01 Eric Norum <eric.norum@usask.ca>
* libc/gxx_wrappers.c: Task is not preemptable while running a
	pthread_once init function.  This is slightly less heavy handed
	than disabling dispatching and seems better than consuming a mutex.
2002-03-01 17:45:33 +00:00
Joel Sherrill
5ec6f09189 2001-01-31 Mike Siers <mikes@poliac.com>
* Nice Update of PPPD support which eliminates the
	requiremetn that drivers be in the termios TASK_DRIVEN mode.
	Mike did significant testing and reports that it seems to be
	more stable and handle larger packets better.  This patch
	replaces the termios tasks with more general pppd network
	driver tasks.  The functions pppinput() and pppstart() get
	called from the interrupt service routine.
	* libc/termios.c: Added PPCDISC.
2002-01-31 21:42:36 +00:00
Joel Sherrill
d09ad1f0e0 2002-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/libio.h: Add #include <rtems/fs.h>.
	Reflect changes due to using rtems/fs.h.
	* include/rtems/libio_.h: Reworked.
2002-01-16 22:54:59 +00:00
Joel Sherrill
c447758161 2002-02-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/gxx_wrappers.c: Add #include <rtems/error.h>.
2002-01-08 12:05:19 +00:00
Joel Sherrill
d3ba9b35b4 2002-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/Makefile.am: Add MULTISUBDIR support.
	* libc/fcntl.c: Add #include <stdarg.h>.
	* libc/privateenv.c: Add #include <stdlib.h>.
2002-01-06 20:11:37 +00:00
Joel Sherrill
a02224e0e6 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/libio_.h: Remove set_errno_and_return_minus_one.
	* libc/cfsetispeed.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/cfsetospeed.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/chdir.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/chmod.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/chown.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/chroot.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/closedir.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/eval.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/fchdir.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/fchmod.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/fdatasync.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/fpathconf.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/fstat.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/fsync.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/ftruncate.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/getdents.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/ioctl.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/link.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/lseek.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/mknod.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/open.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/read.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/readlink.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/rmdir.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/stat.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/symlink.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/tcsetattr.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/telldir.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/ttyname.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/ttyname_r.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/unlink.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/unmount.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/utime.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
	* libc/write.c: Include <rtems/seterr.h>.
	Apply rtems_set_errno_and_return_minus_one.
2002-01-04 18:29:37 +00:00
Joel Sherrill
e180a77edd 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/clockgetres.c: Apply rtems_set_errno_and_return_minus_one.
	* src/clockgettime.c: Apply rtems_set_errno_and_return_minus_one.
	* src/clocksettime.c: Apply rtems_set_errno_and_return_minus_one.
	* src/killinfo.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueueclose.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuecreatesupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuegetattr.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuenotify.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueueopen.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuerecvsupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuesendsupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueuesetattr.c: Apply rtems_set_errno_and_return_minus_one.
	* src/mqueueunlink.c: Apply rtems_set_errno_and_return_minus_one.
	* src/nanosleep.c: Apply rtems_set_errno_and_return_minus_one.
	* src/pthreadkill.c: Apply rtems_set_errno_and_return_minus_one.
	* src/pthreadsigmask.c: Apply rtems_set_errno_and_return_minus_one.
	* src/ptimer1.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sched.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semaphorecreatesupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semaphorewaitsupp.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semclose.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semdestroy.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semgetvalue.c: Apply rtems_set_errno_and_return_minus_one.
	* src/seminit.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semopen.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sempost.c: Apply rtems_set_errno_and_return_minus_one.
	* src/semunlink.c: Apply rtems_set_errno_and_return_minus_one.
	* src/setpgid.c: Apply rtems_set_errno_and_return_minus_one.
	* src/setsid.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigaction.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigaddset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigdelset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigemptyset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigfillset.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigismember.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigpending.c: Apply rtems_set_errno_and_return_minus_one.
	* src/sigtimedwait.c: Apply rtems_set_errno_and_return_minus_one.
	* src/utsname.c: Apply rtems_set_errno_and_return_minus_one.
2002-01-04 18:28:24 +00:00
Joel Sherrill
29e1c00621 2002-01-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/printk.c: Include rtems/bspIo.h instead of bspIo.h.
	* include/Makefile.am: Remove bspIo.h.
	* include/bspIo.h: Removed.
2002-01-04 18:17:41 +00:00
Joel Sherrill
c43d7bd117 2001-11-30 Jennifer Averett <jennifer@OARcorp.com>
This was tracked as PR88.
	* libc/scandir.c: Fixed to perform cleanup on error conditions.
2001-11-30 12:03:15 +00:00
Joel Sherrill
bc2db66fcb 2001-11-07 Jennifer Averett <jennifer@OARcorp.com>
Reported by Ibragimov Ilya <ibr@oktet.ru> and tracked as PR63.
	* libc/chdir.c: Check for search/execute permissions on chdir.
	This requires passing RTEMS_LIBIO_PERMS_SEARCH to
	rtems_filesystem_evaluate_path().
2001-11-07 23:54:59 +00:00
Joel Sherrill
1e4968e4d7 2001-10-26 Joel Sherrill <joel@OARcorp.com>
* libc/libio.c: Cleanup of initialization per suggestion from
	Eric Norum.
2001-10-26 19:22:03 +00:00
Joel Sherrill
9c30d6a9a6 2001-10-25 Jennifer Averett <jennifer@OARcorp.com>
* libc/unmount.c: Primarily restructuring and clean up to address
	procedures which did not do what their name implied.  Also addressed
	problem situation where unmount fails and the filesystem was
	inconsistent.  The mounted filesystem could have been left hanging.
2001-10-25 17:41:07 +00:00
Joel Sherrill
1af7963479 2001-10-25 Jennifer Averett <jennifer@OARcorp.com>
* libc/libio.c: Initialize more fields to NULL/0 during initialiation.
	* include/rtems/libio_.h: Fix freenode macro so it works for sockets
	which do not have the full set of filesystem operations and are
	initialized via something other than open().
2001-10-25 17:38:55 +00:00
Joel Sherrill
0c40eb3064 2001-10-18 Till Straumann <strauman@SLAC.Stanford.EDU>
* libc/open.c, libc/close.c:  Moved freenode from open to
	  close.
2001-10-19 17:37:24 +00:00