Commit Graph

1759 Commits

Author SHA1 Message Date
Joel Sherrill
aed5ae00ee 2001-08-16 Joel Sherrill <joel@OARcorp.com>
* src/mqueuesendsupp.c: Account for possibly blocking during the
	core send operation.
2001-08-16 19:30:59 +00:00
Joel Sherrill
bfe5d15ef1 2001-08-16 Joel Sherrill <joel@OARcorp.com>
* rtems_telnetd/.cvsignore: New file.
2001-08-16 18:49:28 +00:00
Joel Sherrill
3c6cc4a04f 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* shell/pty.c: Moved to libnetworking/rtems_telnetd.
2001-08-09 22:26:51 +00:00
Joel Sherrill
ccb13cfe7c 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* libc/getgrent.c, libc/getpwent.c: the 'ls' and more related command
	previous failed after a chroot(). (unknown user & group)
2001-08-09 22:11:19 +00:00
Joel Sherrill
b6a2d2fa5d 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* src/imfs/imfs_eval.c: The CD_UP problem in imfs_eval has been
	touched. The order of the questions is the key.
2001-08-09 22:09:36 +00:00
Joel Sherrill
70d689aed4 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* shell/Makefile.am, shell/README, shell/cmds.c, shell/shell.c,
	shell/shell.h: Updates.
2001-08-09 22:08:46 +00:00
Joel Sherrill
bd520203a0 2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* Makefile.am, configure.in, rtems_servers/Makefile.am,
	rtems_servers/telnetd.c, rtems_servers/telnetd.h,
	rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c,
	rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c,
	rtems_telnetd/telnetd.h, wrapup/Makefile.am:
	  - pty and telnetd have a new subdir rtems_telnetd to avoid
	    the side effect when ftpd change.
	  - the tcp/ip stats have been implemented into icmds.c and
	    started when telnetd daemon is started.
	* rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
	* rtems_telnetd: New directory.
	* rtems_telnetd/Makefile.am, rtems_telnetd/README,
	rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h,
	rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
2001-08-09 22:06:51 +00:00
Joel Sherrill
ecb5f95413 2001-08-09 Keith Outwater <vac4050@cae597.rsc.raytheon.com>
* monitor/mon-command.c: Add support for partial command matching.
	The monitor used to have this functionality before it was overhauled
	to support addition of user commands.
2001-08-09 21:39:34 +00:00
Joel Sherrill
ff19ae5957 2001-08-09 Chris Johns <ccj@acm.org>
* cpu_asm.S: This patch was co-developed with Eric Norum
	<eric.norum@usask.ca>.  It closes a one instruction window
	on some m68k CPU cores.  It fixes symptoms seen as:
	    1) No more `interrupt handler invoked twice for
	       a single interrupt'.
	    2) No more `lockup when mc68360 CPM and PIT interrupts
	       are at different levels'.
	It does insert a little more overhead on machines without hardware
	interrupt stacks but correctness has a price.
2001-08-09 21:04:29 +00:00
Joel Sherrill
02e4dcd3a2 2001-08-09 Joel Sherrill <joel@OARcorp.com>
* src/snd_mbx.c, src/tsnd_mbf.c: Unblocking message queue operations
	should NOT use _Thread_Executing for return status since it is
	permissible to invoke message send operations from an ISR.  This was
	reported by Suvrat Gupta <suvrat@utstar.com>.
2001-08-09 20:48:58 +00:00
Joel Sherrill
a781bbffb4 2001-08-09 Joel Sherrill <joel@OARcorp.com>
* src/mqueuesendsupp.c: Unblocking message queue operations should
	NOT use _Thread_Executing for return status since it is permissible
	to invoke message send operations from an ISR.  This was reported
	by Suvrat Gupta <suvrat@utstar.com>.
2001-08-09 20:48:20 +00:00
Joel Sherrill
33c31af7c8 2001-08-09 Joel Sherrill <joel@OARcorp.com>
* src/msgqsubmit.c: Unblocking message queue operations should
	NOT use _Thread_Executing for return status since it is permissible
	to invoke message send operations from an ISR.  This was reported
	by Suvrat Gupta <suvrat@utstar.com>.
2001-08-09 20:48:01 +00:00
Joel Sherrill
00815403be 2001-08-09 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/coremsg.h, inline/rtems/score/coremsg.inl,
	src/coremsgsubmit.c: Unblocking message queue operations should
	NOT use _Thread_Executing for return status since it is permissible
	to invoke message send operations from an ISR.  This was reported
	by Suvrat Gupta <suvrat@utstar.com>.
2001-08-09 20:46:12 +00:00
Joel Sherrill
2082fe2919 2001-08-03 Joel Sherrill <joel@OARcorp.com>
* libc/libio_sockets.c (rtems_bsdnet_fdToSocket): Per bug
	report from Gene Smith <Gene.Smith@sea.siemens.com>, enhanced the
	error checking to account for a socket being closed.
2001-08-03 16:06:33 +00:00
Joel Sherrill
b8c8cab3fc 2001-07-06 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>
* src/imfs/deviceio.c: Make sure errno gets set to reflect
	the status from the driver.
2001-07-06 21:48:16 +00:00
Joel Sherrill
77b8106919 2001-07-03 Joel Sherrill <joel@OARcorp.com>
* cpu.c: Fixed typo.
2001-07-03 16:58:56 +00:00
Joel Sherrill
1a7ea60194 2001-05-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems_servers/Makefile.am: Deleted blank lines.
2001-06-18 22:36:09 +00:00
Joel Sherrill
451198be14 2001-06-14 Joel Sherrill <joel@OARcorp.com>
* rtems_servers/telnetd.c, shell/telnetd.h: Moved from libmisc/shell
	so the network stack to address network depenendency.
	* rtems_servers/Makefile.am: Modified to reflect above.
2001-06-14 13:35:47 +00:00
Joel Sherrill
8e2b4deb2a 2001-06-14 Joel Sherrill <joel@OARcorp.com>
* shell/telnetd.c, shell/telnetd.h: Moved to
	libnetworking/rtems_servers so the network stack to address network
	depenendency.
	* shell/Makefile.am: Modified to reflect above.
2001-06-14 13:34:53 +00:00
Joel Sherrill
5fef5234a4 2001-05-25 Joel Sherrill <joel@OARcorp.com>
* shell/cmds.c: Removed code from inappropriate source.
2001-05-25 17:52:03 +00:00
Joel Sherrill
fe70df1927 2000-05-25 Sergei Organov <osv@javad.ru>
* macros/rtems/score/coresem.inl, inline/rtems/score/coresem.inl:
	Cut and paste problem incorrectly enabled interrupts twice with
	the first time being too early.
2001-05-25 16:59:28 +00:00
Joel Sherrill
e807db0033 2001-05-25 Joel Sherrill <joel@OARcorp.com>
* src/imfs/imfs_initsupp.c: Create the root node with the
	desired permissions.  Nodes should be created with the right
	permissions because chmod() is not supported by the miniIMFS
	so changing after creation is not possible.
2001-05-25 13:47:47 +00:00
Joel Sherrill
c891fe082e 2001-05-25 Joel Sherrill <joel@OARcorp.com>
* libc/base_fs.c: Deleted chmod() now that IMFS creates the
	root node with the desired permissions.  chmod() is also not
	supported by the miniIMFS so this is not allowable.
2001-05-25 13:46:02 +00:00
Joel Sherrill
87fb080d75 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* include/rtems/libio_.h: Added login name, uid, gid, euid, and egid
	so they can be part of the private environment.
2001-05-24 22:04:03 +00:00
Joel Sherrill
b2712e35b9 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* monitor/mon-prmisc.c: Correct print line.
	* shell/Makefile.am: Added new file telnetd.c.
	* shell/telnetd.c, shell/telnetd.h, shell/pty.c: New files.
	* shell/shell.c, shell/cmds.c, shell/shell.h: Numerous improvments:
	   - The shell_init has a new parameter 'forever' because in
	     /dev/console you need that this process runs forever but in
	     tcp/ip not. (respawn?)
	   - A new task for every session opened trought tcp/ip telnet client.
	     (the chargen,daytime and more are possible of implementation but
	     I ask me if they are necesary)
	   - Exit from the session delete the task and when the client fails too.
	   - More cmds have been implemented. (very reduced version of these)
	     umask, chmod, id, whoami, rm, cat, ...
	   - A reduced line edit has been implemented.
	       Ctrl-C abort the input,
	       Ctrl-d in the first position gives EOF (logout).
	       '\b' and DEL makes the rubout operation.
	       I think that readline() for every session spents a lot of resources.
2001-05-24 21:58:39 +00:00
Joel Sherrill
e565720aad 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* libc/ttyname.c (ttyname_r): Removed duplicate call to closedir().
	* libc/getpwent.c: Create a more robust /etc/passwd and /etc/group.
	* libc/base_fs.c: Change permissions of files and directories.  Now uses
	octal constants.
2001-05-24 21:43:08 +00:00
Joel Sherrill
aaf6063737 2000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>
* src/getegid.c, src/geteuid.c, src/getgid.c, src/getlogin.c,
	src/getuid.c: Now save their values in private user environment.
2001-05-24 21:38:10 +00:00
Joel Sherrill
6937dfd6aa 2000-05-24 Joel Sherrill <joel@OARcorp.com>
* rtems/score/mips.h: Added constants for MIPS exception numbers.
	All exceptions should be given low numbers and thus can be installed
	and processed in a uniform manner.  Variances between various MIPS
	ISA levels were not accounted for.
2001-05-24 19:49:31 +00:00
Joel Sherrill
44ce2da155 2000-05-24 Joel Sherrill <joel@OARcorp.com>
* rtems/score/mips.h: Added constants for MIPS exception numbers.
	All exceptions should be given low numbers and thus can be installed
	and processed in a uniform manner.  Variances between various MIPS
	ISA levels were not accounted for.
2001-05-24 19:49:30 +00:00
Joel Sherrill
d26dce208d 2001-05-24 Greg Menke <gregory.menke@gsfc.nasa.gov>
* Assisted in design and debug by Joel Sherrill <joel@OARcorp.com>.
	* cpu_asm.S: Now works on Mongoose-V.  Missed in previous patch.
2001-05-24 13:19:51 +00:00
Joel Sherrill
e2040badd2 2001-05-22 Greg Menke <gregory.menke@gsfc.nasa.gov>
* rtems/score/cpu.h: Add the interrupt stack structure and enhance
	the context initialization to account for floating point tasks.
	* rtems/score/mips.h: Added the routines mips_set_cause(),
	mips_get_fcr31(), and mips_set_fcr31().
	* Assisted in design and debug by Joel Sherrill <joel@OARcorp.com>.
2001-05-22 22:59:42 +00:00
Joel Sherrill
c8f7f94b4e 2001-05-11 Joel Sherrill <joel@OARcorp.com>
* libc/write.c: Change type of rc to match return type from
	underlying function per report from Eric Norum.
2001-05-11 13:01:01 +00:00
Joel Sherrill
d85594d462 2001-05-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/Makefile.am: Remove -D__STRICT_ANSI__.
2001-05-10 13:03:32 +00:00
Joel Sherrill
ba91ea3d66 2001-05-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/score/.cvsignore: Add stamp-h, cpuopts.h,
	cpuopts.h.in, cpuopts-tmp.h.
2001-05-09 13:10:17 +00:00
Joel Sherrill
6ce466d9da 2001-05-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/cpu.h: Remove #undef __STRICT_ANSI__.
2001-05-08 22:58:08 +00:00
Joel Sherrill
d72caa64cc 2001-04-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* shell/cmds.c, shell/shell.c: Remove fileno-hacks.
	* monitor/mon-symbols.c: Remove #undef __STRICT_ANSI__.
2001-05-07 13:17:25 +00:00
Joel Sherrill
53c3a2c6dc 2001-04-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add [-ansi -fasm] to RTEMS_PROG_CC_FOR_TARGET.
2001-05-07 13:16:57 +00:00
Joel Sherrill
c556d0bacc 2001-05-07 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.S: Merged patches from Gregory Menke
	<Gregory.D.Menke.1@gsfc.nasa.gov> that clean up
	stack usage and include nops in the delay slots.
2001-05-07 13:06:56 +00:00
Joel Sherrill
6f43d82ecb 2001-04-24 Joel Sherrill <joel@OARcorp.com>
* libc/libio.c (rtems_libio_allocate): Make sure size and offset
	fields are cleared on each file open.  Before this field was cleared,
	this resulted in the value from the last time that IOP was used
	being still in place.  Discovered by  Andrew Bythell
	<abythell@nortelnetworks.com>.
	* libc/open.c: Remove redundant setting of iop->offset.
2001-04-24 23:10:04 +00:00
Joel Sherrill
eb22ebe0ec 2001-04-24 Joel Sherrill <joel@OARcorp.com>
* src/imfs/memfile.c (memfile_open): Did not set iop->size
	and thus the value was incorrect.  Before this field was cleared,
	this resulted in the value from the last time that IOP was used
	being still in place.  Discovered by  Andrew Bythell
	<abythell@nortelnetworks.com>.
2001-04-24 23:06:50 +00:00
Joel Sherrill
126405d9ef 2000-04-24 Eric Norum <eric.norum@usask.ca>
* lib/rtems_bsdnet_ntp.c: Modifications to make the RTEMS NTP
	synchronization a little more robust -- no NTP daemon yet, but
	at least it trys a little harder when the primary NTP server is down.
2001-04-24 21:02:03 +00:00
Joel Sherrill
d8a9155512 2001-04-20 Correo Fernando-ruiz <correo@fernando-ruiz.com>
* include/rtems/libio_.h, libc/chroot.c, libc/privateenv.c:
	Private environment and chroot() enhancements and fixes.  Comments:
	  + privateenv has been modified to let at chroot() to be more
	    POSIX like Sergei Organov recommended.
	  + A task owner lets that rtems_set_private_env() will be
	    called twice or more times.
	  + chroot() can be called without a previous
	    rtems_set_private_env(); (transpanrently)
	  + The second call of rtems_set_private_env() makes a internal
	    chroot("/") into global imfs_root.
	  + chroot() runs like chdir() without a previous chdir("/") with
	    the global root.
	  + The current directory can be in a wrong place like Linux and
	    many other Unices.
2001-04-20 21:11:25 +00:00
Joel Sherrill
dd74e612f1 2001-04-20 Correo Fernando-ruiz <correo@fernando-ruiz.com>
* Added initial shell functionality.
	* Makefile.am, configure.in, wrapup/Makefile.am:
	* shell/.cvsignore, shell/Makefile.am, shell/README,
	shell/cmds.c, shell/shell.c, shell/shell.h: New files.
2001-04-20 20:35:45 +00:00
Joel Sherrill
6fa636725c 2001-04-20 Radzislaw Galler <rgaller@et.put.poznan.pl>
* modem/ppp.c, pppd/main.c, pppd/pppmain.c, pppd/rtems-ppp.c,
	pppd/modem_example/modem.c, pppd/modem_example/ppp.c: Translated
	Polish comments and other strings into English
	* pppd/STATUS: Updated to reflect the changes
2001-04-20 20:32:08 +00:00
Joel Sherrill
a8c3326863 2001-04-20 Jake Janovetz <janovetz@uiuc.edu>
* rtems_servers/ftpd.c: Correct argument so hooks work again.
2001-04-20 19:17:08 +00:00
Joel Sherrill
a5bdcd9881 2001-04-20 Joel Sherrill <joel@OARcorp.com>
* devnull/devnull.c (null_initialize): Added check to
	ensure that the driver is only initialized once.  Otherwise,
	it will abort when the device /dev/null is present.
	(null_write): Do not dereference a NULL pointer.
2001-04-20 13:37:05 +00:00
Joel Sherrill
5346276237 2001-04-20 Joel Sherrill <joel@OARcorp.com>
* src/imfs/imfs_debug.c (IMFS_print_jnode): Modified to print
	only information that does not vary based on target or memory
	configuration.  The old prints are still there in case they
	are needed in the future to debug.  Printing target dependent
	addresses makes the test output vary by target unnecessarily.
2001-04-20 13:27:24 +00:00
Joel Sherrill
176e1ed8aa 2001-04-20 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.S: Added code to save and restore SR and EPC to
	properly support nested interrupts.  Note that the ISR
	(not RTEMS) enables interrupts allowing the nesting to occur.
2001-04-20 13:07:34 +00:00
Joel Sherrill
1d4bac927a 2001-04-16 Joel Sherrill <joel@OARcorp.com>
* include/confdefs.h: Fix real-time clock support.
2001-04-16 20:32:16 +00:00
Joel Sherrill
d6a2d7eeb1 2001-04-16 Joel Sherrill <joel@OARcorp.com>
* include/rtc.h: New file.
	* include/Makefile.am: Updated to reflect above.
2001-04-16 20:22:12 +00:00