Commit Graph

1759 Commits

Author SHA1 Message Date
Joel Sherrill
6e7e723c31 2001-04-11 Joel Sherrill <joel@OARcorp.com>
* cpu.c: Removed duplicate declaration for _ISR_Vector_table.
2001-04-11 13:48:30 +00:00
Joel Sherrill
bfbc4d3ccd 2001-03-26 Zoltan Kocsi <zoltan@bendor.com.au>
* src/eventsurrender.c: Clear event condition when task is unblocked.
	This makes sure that subsequent event send thinks the task is still
	blocked and overwrites the initial events received.
2001-03-29 15:51:08 +00:00
Joel Sherrill
d79ef179dc 2001-03-23 Joel Sherrill <joel@OARcorp.com>
* src/imfs/memfile.c: Reapply fix from bug report from
	Jose Sturniolo <jsturnio@nec.com.ar> where NULL pointer
	was dereferenced when freeing a triply indirect file.
	The fix was applied to the 4.5 release branch and not
	the development branch.
2001-03-23 14:02:02 +00:00
Joel Sherrill
ab6d08ffc1 2001-03-19 Joel Sherrill <joel@OARcorp.com>
* sys/utsname.h: Added C++ wrapper.
2001-03-19 13:08:20 +00:00
Joel Sherrill
a2cc545e34 2001-03-15 Ralf Corsepiu <corsepius@faw.uni-ulm.de>
* include/.cvsignore: Remove danlgling file.
2001-03-15 13:42:58 +00:00
Joel Sherrill
aa7f8a1f5d 2001-03-14 Joel Sherrill <joel@OARcorp.com>
* cpu.c, rtems/score/cpu.h, rtems/score/mipstypes.h:
	Removed unused variable _CPU_Thread_dispatch_pointer
	and cleaned numerous comments.
2001-03-14 16:43:35 +00:00
Joel Sherrill
2e549dad4b 2001-03-13 Joel Sherrill <joel@OARcorp.com>
* cpu.c, cpu_asm.S, iregdef.h, rtems/score/cpu.h, rtems/score/mips.h:
	Merged MIPS1 and MIPS3 code reducing the number of lines of assembly.
	Also reimplemented some assembly routines in C further reducing
	the amount of assembly and increasing maintainability.
2001-03-14 00:14:18 +00:00
Joel Sherrill
07fbfcedf0 2001-01-31 Sergei Organov <osv@javad.ru>
* rtems_servers/ftp.d: Following changes:
	  - Hacks with current dir and root dir removed in favor of new libio
	    support for task-local current and root directories.
	  - Bug in `close_data_socket()' introduced by previous change fixed.
	  - `command_pasv()' changed to set timeout on socket we are listening
	    on and code fixed to don't close socket twice on error.
	  - `serr()' changed to clear `errno'.
	  - `data_socket()' changed to clear `errno' before `bind()'.
	  - `session()' changed to clear `errno' before processing session.
	  - `close_data_socket()' fixed to close both active and passive sockets
	  - Initialize info->data_socket to -1 in `daemon()'
	  - Initialize `fname' to empty string  in `exec_command()'
2001-03-05 23:01:43 +00:00
Joel Sherrill
c0394d4b3b 2001-02-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: AC_DEFINE RTEMS_UNIX if RTEMS_CPU=unix.
2001-02-12 14:53:10 +00:00
Joel Sherrill
974d213fc9 2001-02-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* monitor/mon-command.c: Use #if defined(RTEMS_UNIX).
2001-02-12 14:51:46 +00:00
Joel Sherrill
329509fbdd 2001-02-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am, rtems/score/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:41:35 +00:00
Joel Sherrill
8887f8cd6d 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rpc/Makefile.am: Apply include_*HEADERS instead of
	H_FILES.
2001-02-05 18:38:44 +00:00
Joel Sherrill
e6d8fe4717 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am, arpa/Makefile.am, machine/Makefile.am, net/Makefile.am,
	netinet/Makefile.am, nfs/Makefile.am, rtems/Makefile.am,
	rtems_servers/Makefile.am, rtems_webserver/Makefile.am,
	sys/Makefile.am, vm/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
	* include/Makefile.am: Remove.
	* Makefile.am: Add handling of *.h files.
	* configure.in: Remove include/Makefile.
2001-02-05 18:36:27 +00:00
Joel Sherrill
792eb74296 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/Makefile.am, include/rtems/score/Makefile.am,
	inline/rtems/score/Makefile.am, macros/rtems/score/Makefile.am
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:33:09 +00:00
Joel Sherrill
3ebf5df3c6 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am, include/rtems/Makefile.am,
	inline/rtems/Makefile.am, macros/rtems/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:32:28 +00:00
Joel Sherrill
f0ab3fa51e 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am, include/rtems/rtems/Makefile.am,
	inline/rtems/rtems/Makefile.am, macros/rtems/rtems/Makefile.am,
	rtems/optman/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:32:04 +00:00
Joel Sherrill
890f07cb83 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am, include/rtems/posix/Makefile.am,
	include/sys/Makefile.am, inline/rtems/posix/Makefile.am,
	macros/rtems/posix/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:31:28 +00:00
Joel Sherrill
9fae0f872d 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/Makefile.am, include/itronsys/Makefile.am,
	include/rtems/itron/Makefile.am, inline/rtems/itron/Makefile.am,
	macros/rtems/itron/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:31:00 +00:00
Joel Sherrill
620e82636b 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* untar/Makefile.am, monitor/Makefile.am, dummy/Makefile.am,
	devnull/Makefile.am, dumpbuf/Makefile.am, mw-fb/Makefile.am,
	stackchk/Makefile.am, rtmonuse/Makefile.am, cpuuse/Makefile.am:
	Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:26:26 +00:00
Joel Sherrill
8b5d0db30b 2001-02-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/imfs/Makefile.am: Apply include_*HEADERS instead of H_FILES.
2001-02-05 18:24:14 +00:00
Joel Sherrill
a76e2b4c96 2001-01-29 Joel Sherrill <joel@OARcorp.com>
* src/objectextendinformation.c: Added include of string.h to
	eliminate warning.
2001-01-29 18:46:09 +00:00
Joel Sherrill
623893cc0d 2001-01-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/confdefs.h: define CONFIGURE_NEWLIB_EXTENSION 0 if not
	using NEWLIB, cleanup related comment.
2001-01-29 15:43:46 +00:00
Joel Sherrill
9c63d90561 2001-01-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/confdefs.h: include cpuopts.h, replace stubdr w/ devnull.
2001-01-26 21:54:57 +00:00
Joel Sherrill
56f20bacf0 2001-01-26 Joel Sherrill <joel@OARcorp.com>
* libc/chroot.c: Fixed naming problems.  Names were changed
	when the code this depends on was merged.
2001-01-26 14:50:54 +00:00
Joel Sherrill
37535317d9 2001-01-25 Joel Sherrill <joel@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Bug report from Peter Mueller
	<peter.o.mueller@gmx.de> because of not correcting for the ISR
	vector table now being allocated from the workspace.
2001-01-26 14:12:48 +00:00
Joel Sherrill
809feccc93 2001-01-25 Eric Norum <eric.norum@usask.ca>
* lib/tftpDriver.c: Reduce first timeout interval.  This
	improves throughput on systems which are dropping packets.
	Only the first timeout is reduced.  This keeps the number
	of extra packets down on networks that are very busy and
	dropping lots of packets.
2001-01-25 22:59:32 +00:00
Joel Sherrill
c54152a26c 2001-01-25 Joel Sherrill <joel@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Bug report from Peter Mueller
	<peter.o.mueller@gmx.de> because of not correcting for the ISR
	vector table now being allocated from the workspace.
2001-01-25 18:45:59 +00:00
Joel Sherrill
2a929cc871 2001-01-25 Fernando Ruiz <fernando.ruiz@ctv.es>
* Alternate email is correo@fernando-ruiz.com
	* libc/privateenv.c: New file.
	* include/rtems/libio_.h, libc/Makefile.am, libc/base_fs.c,
	libc/unmount.c: Moved default umask, current working directory,
	root, and links followed count into a structure "user environment"
	that can then be treated as a unit.  This enable giving unique
	copies of these to individual threads or collection of threads.
2001-01-25 15:59:58 +00:00
Joel Sherrill
38371dbebb 2001-01-24 Sergei Organov <osv@javad.ru>
* rtems_servers/ftpd.c, rtems_servers/ftpd.h: Major enhancements
	as listed below:
	  - Timeouts on sockets implemented. 'idle' field added to
	    configuration. No timeout by default to keep backward compatibility.
	    Note: SITE IDLE command not implemented yet.
	  - Basic global access control implemented. 'access' field added to
	    configuration. No access limitations by default to keep backward
	    compatibility.
	  - Anchor data socket for active mode (using self IP and port 20.)
	  - Fixed default data port support (still not tested).
	  - Don't allow IP address different from originating host in
	    PORT command to improve security.
	  - Fixed bug in MDTM command.
	  - Check for correctness of parsing of argument in command_port().
	  - Fixed squeeze_path() to don't allow names like 'NAME/smth' where
	    'NAME' is not a directory.
	  - Command parsing a little bit improved: command names are now
	    converted to upper-case to be more compatible with RFC (command
	    names are not case-sensitive.)
	  - Reformat comments so that they have RTEMS look-and-feel.
	  - Fixed DELE, SITE CHMOD, RMD, MKD broken by previous changes
	  - True ASCII mode implemented (doesn't work for hooks and /dev/null)
	  - Passive mode implemented, PASV command added.
	  - Default port for data connection could be used (untested, can't find
	    ftp client that doesn't send PORT command)
	  - SYST reply changed to UNIX, as former RTEMS isn't registered name.
	  - Reply codes reviewed and fixed.
2001-01-24 19:20:24 +00:00
Joel Sherrill
f42b726174 2001-01-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add src/config.h
	* src/Makefile.am: Add INCLUDES += -I. to pickup config.h
	* src/.cvsignore: Add config.h and stamp-h
	* src/*.c: Add config.h support.
2001-01-24 14:17:28 +00:00
Joel Sherrill
b978374039 2001-01-23 Joel Sherrill <joel@OARcorp.com>
* src/alarm.c: Eliminated use of C++ style comments.
2001-01-23 22:42:58 +00:00
Joel Sherrill
a93baa4383 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/clockgetres.c: Fixed match problem.  We are not converting
	an interval to a timespec -- it is actually a real number of
	microseconds.
2001-01-22 14:19:05 +00:00
Joel Sherrill
d6b1d73bc7 2001-01-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add src/imfs/config.h
	* src/imfs/Makefile.am: Add INCLUDES += -I. to pickup config.h
	* src/imfs/.cvsignore: Add config.h and stamp-h
	* src/imfs/*.c: Add config.h support.
2001-01-22 14:05:14 +00:00
Joel Sherrill
7a55888efe 2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems.h, src/signalcatch.c: Modifications to make
	CodeWarrior happy.
2001-01-22 13:47:07 +00:00
Joel Sherrill
32ba727717 2001-01-22 Michael Hamel <mhamel@adi.co.nz>
* include/rtems/posix/semaphore.h, inline/rtems/posix/semaphore.inl,
	src/ptimer1.c, include/rtems/posix/semaphore.h,
	inline/rtems/posix/semaphore.inl, src/alarm.c, src/ptimer1.c,
	src/semaphorenametoid.c, src/semopen.c, src/semunlink.c:
	Modifications to make CodeWarrior happy.
2001-01-22 13:46:28 +00:00
Joel Sherrill
3f777d0edf 2001-01-12 Sergei Organov <osv@javad.ru>
* rtems_servers/ftpd.c, rtems_servers/ftpd.h: Major enhancements
	as listed below:
	    - use pool of pre-created threads to handle sessions instead of
  	      creating/deleting threads on the fly
	    - LIST output is now similar to what "/bin/ls -al" would output,
	      thus FTP clients such Netscape are happy with it.
	    - LIST NAME now works (both for files and directories)
	    - added support for NLST, CDUP, and MDTM FTP commands to make
	      more FTP clients happy
	    - keep track of CWD for every session separately
	    - ability to specify root directory name for FTPD in configuration
	      table. FTPD will then create illusion for FTP clients that this
	      is actually root directory.
	    - ignore options sent in commands, thus LIST -al FILE works and
	      doesn't try to list "-al" directory.
	    - buffers are allocated on stack instead of heap where possible to
	      eliminate malloc/free calls (avoid possible heap fragmentation
	      troubles).
	    - drop using of task notepad to pass parameters - use function
	      arguments instead
	    - use snprintf() instead of sprintf() as the latter is unsafe
	    - use of PF_INET in socket() instead of AF_INET

	    Here are ftp clients I've tried new FTPD with (all of them
	    running on Debian GNU/Linux 2.2):

	         Lftp 2.1.10
	         NcFTP 2.4.3
	         Netscape 4.75
	         ftp
	         mc 4.5.49
2001-01-12 13:51:56 +00:00
Joel Sherrill
d19415873f 2001-01-12 Jake Janovetz <janovetz@uiuc.edu>
* src/imfs/imfs.h, src/imfs/imfs_creat.c, src/imfs/imfs_debug.c,
	src/imfs/imfs_eval.c, src/imfs/imfs_fchmod.c,
	src/imfs/imfs_handlers_memfile.c, src/imfs/imfs_init.c,
	src/imfs/imfs_initsupp.c, src/imfs/imfs_stat.c, src/imfs/memfile.c,
	src/imfs/miniimfs_init.c: Final developmental update to "tarfs".
	When rtems_tarfs_load() is called, it checks the permissions
	on each file.  If there is write permission, it just creates a
	standard file using "creat()" and therefore, uses the IMFS MEMORY_FILE.
	If there is no write permission, it creates a LINEAR_FILE node
	with the appropriate properties.  If the permission is ever changed
	to writeable, IMFS_fchmod converts it to a regular memory file.
2001-01-12 13:44:12 +00:00
Joel Sherrill
9c1dc8cd2a 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* rtems/score/mips.h (mips_get_sr, mips_set_sr): Corrected
	register constraints from "general" to "register".
2001-01-12 13:36:30 +00:00
Joel Sherrill
d9f61654c7 2001-01-12 Joel Sherrill <joel@OARcorp.com>
* src/README.mqueue: Enhanced example.
2001-01-12 13:34:24 +00:00
Joel Sherrill
16ad7eafed 2001-01-09 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.S: Use SR_INTERRUPT_ENABLE_BITS instead of SR_XXX constants
	to make it easier to conditionalize the code for various ISA levels.
2001-01-09 16:48:26 +00:00
Joel Sherrill
81f6e8cca4 2001-01-08 Joel Sherrill <joel@OARcorp.com>
* src/threadinitialize.c: Fix my bad hack of Ralf's fp_area
	warning removal patch. :(
2001-01-08 19:16:26 +00:00
Joel Sherrill
9c49db4d6a 2001-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add libc/config.h
	* libc/Makefile.am: Add INCLUDES += -I. to pickup config.h
	* libc/.cvsignore: Add config.h and stamp-h
	* libc/*.c: Add config.h support.
2001-01-08 18:26:44 +00:00
Joel Sherrill
ac5c8c7a18 2001-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/threadinitialize.c: Removed warning.
2001-01-08 18:23:40 +00:00
Joel Sherrill
1800f71707 2001-01-08 Joel Sherrill <joel@OARcorp.com>
* idtcpu.h: Commented out definition of "wait".  It was stupid to
	use such a common word as a macro.
	* rtems/score/cpu.h (_CPU_ISR_Disable): Fixed for mips ISA 3.
	* rtems/score/mips.h: Added include of <idtcpu.h>.
	* rtems/score/mips.h (mips_enable_in_interrupt_mask): Corrected.
2001-01-08 18:16:51 +00:00
Joel Sherrill
85d03e28c7 2001-01-05 Joel Sherrill <joel@OARcorp.com>
* devnull: New addition.  Moved from libcpu/sh.
	* devnull/devnull.c, devnull/devnull.h, devnull/.cvsignore,
	devnull/Makefile.am: New files.
	* Makefile.am, configure.in, wrapup/Makefile.am: Modified to reflect
	addition of above.
2001-01-05 13:26:51 +00:00
Joel Sherrill
d6ea098b77 2001-01-03 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Added _CPU_Initialize_vectors().
2001-01-03 16:37:08 +00:00
Joel Sherrill
fe7acdcf8b 2001-01-03 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Added _CPU_Initialize_vectors().
	* cpu_asm.S: Modify to properly dereference _ISR_Vector_table
	now that it is dynamically allocated.
2001-01-03 16:36:23 +00:00
Joel Sherrill
9fd4f5c5c2 2001-01-03 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Added _CPU_Initialize_vectors().
	* cpu_asm.S: Eliminated warning for duplicate definition of EXTERN.
2001-01-03 16:35:08 +00:00
Joel Sherrill
ac0043451d 2001-01-03 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Added _CPU_Initialize_vectors().
	* cpu_asm.S: Modify to properly dereference _ISR_Vector_table
	now that it is dynamically allocated.
2001-01-03 16:32:23 +00:00
Joel Sherrill
0dd2ee71df 2001-01-03 Joel Sherrill <joel@OARcorp.com>
* ChangeLog: Removed duplicate entry.
2001-01-03 16:31:51 +00:00