| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o A new data structure rtems_filesystem_global_location_t was
introduced to be used for
o the mount point location in the mount table entry,
o the file system root location in the mount table entry,
o the root directory location in the user environment, and
o the current directory location in the user environment.
During the path evaluation global start locations are obtained to
ensure that the current file system instance will be not unmounted in
the meantime.
o The user environment uses now reference counting and is protected
from concurrent access.
o The path evaluation process was completely rewritten and simplified.
The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation
method. Recursive calls in the path evaluation have been replaced
with iteration to avoid stack overflows. Only the evaluation of
symbolic links is recursive. No dynamic memory allocations and
intermediate buffers are used in the high level path evaluation. No
global locks are held during the file system instance specific path
evaluation process.
o Recursive symbolic link evaluation is now limited by
RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value
via sysconf().
o The device file system (devFS) uses now no global variables and
allocation from the workspace. Node names are allocated from the
heap.
o The upper layer lseek() performs now some parameter checks.
o The upper layer ftruncate() performs now some parameter checks.
o unmask() is now restricted to the RWX flags and protected from
concurrent access.
o The fchmod_h and rmnod_h file system node handlers are now a file
system operation.
o The unlink_h operation has been removed. All nodes are now destroyed
with the rmnod_h operation.
o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system
operations.
o The path evaluation and file system operations are now protected by
per file system instance lock and unlock operations.
o Fix and test file descriptor duplicate in fcntl().
o New test fstests/fsnofs01.
|
|
|
|
|
| |
Add a red-black tree helper method to ease obtaining the direction opposite
to the current direction. Useful for manipulating and traversing an rbtree.
|
|
|
|
|
| |
* libnetworking/resolv.h: Partial sync with FreeBSD.
Add decls for res_send_setqhook, res_send_setrhook.
|
|
|
|
|
|
| |
* configure.ac: Check for rcmd in unistd.h.
* libnetworking/libc/rcmd.c: Build iff rcmd is declared in unistd.h.
Change rcmd's decl to match with Linux/FreeBSD's decl.
|
|
|
|
|
| |
Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a
mutex. Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
|
|
|
|
|
| |
* libcsupport/src/assocnamebad.c:
Add #define INSIDE_ASSOC.
|
|
|
|
|
| |
* sapi/include/confdefs.h:
Add decl of configuration_mount_table (Fix c++ mangling).
|
|
|
|
|
|
|
| |
Various tests must check program paths that result due to failed memory
allocations from the workspace. To avoid tinkering with internal
workspace structures throughout the test code these functions should be
used.
|
|
|
|
| |
The inet_aton() function returns non-zero in case of success.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Various tests must check program paths that result due to failed memory
allocations from the heap. To avoid tinkering with internal heap
structures throughout the test code these functions should be used.
|
| |
|
| |
|
|
|
|
|
| |
For symbolic links, the length in bytes of the pathname contained in the
symbolic link should be returned in st_size.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
"medit" overran the argument list, choking on the NULL pointer
following the last argument.
Note that "medit" still only does byte-sized accesses, which limits
its usefulness on most systems.
Author: Werner Almesberger <werner@almesberger.net>
Signed-off-by: Sebastien Bourdeauducq <sebastien@milkymist.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR was about a warning for no previous prototype for
rtems_interrupt_level_attribute. This method exists (like
a few others) to have real bodies for Classic API services
implemented as macros. These macros are not available from
anything but C and C++. The most explicit use was in the Ada
binding but these would be needed from assembly language
or any other non-C based language.
On top of needing a prototype, the methods were misnamed.
They were related to modes. This renames them, moves the
file, fixes test code, etc.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/shell/main_mdump.c: Reworked to fix bugs in handling of the
length argument and to provide an "ldump" command. This file now also
supports the "wdump" command. In addition, an RTEMS API function called
rtems_mdump() is provided to allow easy dumping from application code.
* libmisc/shell/main_mwdump.c: Obsolete file.
* libmisc/Makefile.am: Removed main_mwdump.c
* libmisc/shell/shellconfig.h: Added "ldump" command.
* shell/memory.t: Added documentation for the "ldump" command
Signed-off-by: Ric Claus <claus@SLAC.Stanford.edu>
|
|
|
|
|
| |
From: Xiangfu <xiangfu@sharism.cc>
Signed-off-by: Xiangfu <xiangfu@sharism.cc>
|
|
|
|
| |
There existed no calling function for this handler.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
| |
This reverts commit 9bf3a868655f260c2fa6cbcab16f0218cf53e5b8.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1924/cpukit
* sapi/include/rtems/config.h: Added stack_allocate_init_hook to
rtems_configuration_table.
* sapi/include/confdefs.h: Added CONFIGURE_TASK_STACK_FROM_ALLOCATOR
and CONFIGURE_TASK_STACK_ALLOCATOR_INIT defines. Set default stack
allocator and free hook to _Workspace_Allocate() and _Workspace_Free()
respectively.
* score/src/thread.c, score/src/threadstackallocate.c,
score/src/threadstackfree.c: Update due to API changes.
|
|
|
|
| |
* libcsupport/src/termios_setinitialbaud.c: Fixed typo.
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/termiostypes.h,
libcsupport/src/termios_baud2num.c,
libcsupport/src/termios_baudtable.c,
libcsupport/src/termios_num2baud.c,
libcsupport/src/termios_setinitialbaud.c: Added const qualifier to
baud associations. Fixed integer types.
|
|
|
|
| |
* sapi/include/confdefs.h: Fixed workspace size estimate of tasks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* posix/src/mqueuenametoid.c,
posix/src/semaphorenametoid.c: Removed files.
* posix/src/psxnametoid.c: New file.
* posix/Makefile.am: Reflect changes above.
* posix/include/rtems/posix/config.h: Fixed integer types.
* posix/include/rtems/posix/posixapi.h: Declare _POSIX_Name_to_id().
* posix/include/rtems/posix/mqueue.h,
posix/inline/rtems/posix/mqueue.inl: Changed parameter of
_POSIX_Message_queue_Create_support().
_POSIX_Message_queue_Name_to_id() is now inline.
* posix/include/rtems/posix/semaphore.h,
posix/inline/rtems/posix/semaphore.inl: Changed parameter of
_POSIX_Semaphore_Create_support(). _POSIX_Semaphore_Name_to_id() is
now inline.
* posix/src/mqueuecreatesupp.c, posix/src/semaphorecreatesupp.c: Use
_Workspace_String_duplicate().
* posix/src/mqueuesendsupp.c, posix/src/mqueueopen.c,
posix/src/mqueueunlink.c, posix/src/seminit.c, posix/src/semopen.c,
posix/src/semunlink.c: Update due to API changes.
|
|
|
|
|
| |
* sapi/include/confdefs.h: Fixed workspace size estimate of POSIX keys
and message queues.
|
|
|
|
|
| |
* score/include/rtems/score/wkspace.h, score/src/wkstringduplicate.c:
Changed parameter of _Workspace_String_duplicate() to avoid strnlen().
|
|
|
|
|
|
| |
* configure.ac: Check for getrusage.h decl.
* libcsupport/src/getrusage.c:
Apply HAVE_DECL_GETRUSAGE (Missing prototypes).
|
|
|
|
|
|
|
| |
* score/src/wkstringduplicate.c: New file.
* score/Makefile.am: Reflect change above.
* score/include/rtems/score/wkspace.h: Declare
_Workspace_String_duplicate().
|
|
|
|
|
| |
* posix/src/fork.c: Include <unistd.h> for "fork" prototype.
Don't include <sys/types.h> (unnecessary).
|
|
|
|
|
| |
PR 1985/cpukit
* telnetd/Makefile.am: Remove icmds.c.
|
|
|
|
|
|
| |
PR 1986/libcpu
* rtems/include/rtems/rtems/cache.h:
Add rtems_cache_aligned_malloc decl.
|
|
|
|
| |
* posix/src/sigtimedwait.c: Make _POSIX_signals_Get_lowest static.
|
|
|
|
|
|
| |
PR 1985/cpukit
* telnetd/icmds.c: Removed.
All functionality is in shell. Obsolete and unreferenced.
|
|
|
|
| |
* cpu.c: Make _defaultExcHandler static.
|
|
|
|
| |
* cpu.c: Correct typo.
|
|
|
|
|
|
|
| |
* libblock/src/flashdisk.c:
Make rtems_fdisk_crc16_gen_factors static.
* libblock/src/nvdisk.c:
Make rtems_nvdisk_crc16_gen_factors static.
|
|
|
|
|
| |
* rtems/src/rtemsobjectsetname.c:
Include <rtems/rtems/object.h> (Missing prototype).
|
|
|
|
|
| |
* rtems/src/rtemsobjectgetclassicname.c:
Include <rtems/rtems/object.h> (Missing prototype).
|
|
|
|
|
|
|
|
|
|
| |
PR 1968/filesystem
* libfs/src/rfs/rtems-rfs-file.c: Fix to the seek bug where a seek
to 0 after reading the end of the file did not point to the
correct block.
* libfs/src/rfs/rtems-rfs-rtems.h,
libfs/src/rfs/rtems-rfs-trace.c: Fix the trace flags. Used to fix
the bug.
|