Commit Graph

298 Commits

Author SHA1 Message Date
Alex Ivanov
3cf4031c19 Header File Doxygen Enhancement Task #1 2012-12-28 17:48:12 -06:00
Mathew Kallada
f3255a6f22 Header File Doxygen Enhancement Task #11 2012-12-28 11:30:27 -06:00
Mathew Kallada
c5782a26b3 Header File Doxygen Enhancement Task #7 2012-12-28 11:17:49 -06:00
Mathew Kallada
9ab091e1e4 Header File Doxygen Enhancement Task #2 2012-12-28 10:36:55 -06:00
Joel Sherrill
b8fc260ff3 Miscellaneous Doxygen clean-up 2012-12-28 09:48:37 -06:00
Sebastian Huber
c5d27600f9 libcsupport: Add rtems_resource_snapshot_take()
Add rtems_resource_rtems_api, rtems_resource_posix_api,
rtems_resource_snapshot, rtems_resource_snapshot_equal(), and
rtems_resource_snapshot_check().
2012-12-21 15:45:51 +01:00
Gedare Bloom
e79a766fb3 libcsupport: Update file header for termios.h to remove link, add description. 2012-12-15 07:26:34 -05:00
Alex Ivanov
cefc9aea6b libcsupport: Doxygen Enhancement Task #8
http://www.google-melange.com/gci/task/view/google/gci2012/7996208
2012-12-15 07:23:36 -05:00
Sebastian Huber
d0b9295fd9 Fix spelling 2012-12-14 10:17:04 +01:00
Sebastian Huber
6d5ba497b1 Filesystem: Revert documentation changes 2012-12-14 10:13:36 +01:00
Alex Ivanov
41b590f966 libcsupport: Doxygen enhancement task #9 2012-12-13 12:13:19 -06:00
Gedare Bloom
8f005260a9 libcsupport: Revert termios Doxygen. Add file header. 2012-12-13 08:06:31 -05:00
Sebastian Huber
b0da579608 termios: Implement tcflush()
New IO control RTEMS_IO_TCFLUSH.
2012-12-13 11:36:37 +01:00
Sebastian Huber
8e3a7f4f8d libcsupport: Revert documentation changes 2012-12-13 11:34:06 +01:00
Mathew Kallada
c2ae79e93c misc: Header File Doxygen Enhancement Task #3
http://www.google-melange.com/gci/task/view/google/gci2012/8006220
2012-12-12 15:57:49 -05:00
Alex Ivanov
cc390b62c4 libcsupport: Doxygen enhancement GCI task #6
http://www.google-melange.com/gci/task/view/google/gci2012/7992212
2012-12-11 17:35:30 -05:00
Alex Ivanov
17c6ad6a01 libcsupport: Doxygen enhancement GCI task #4
http://www.google-melange.com/gci/task/view/google/gci2012/8009205
2012-12-11 16:51:08 -05:00
Alex Ivanov
c9bb60a94c libcsupport: GCI Doxygen Task #7
http://www.google-melange.com/gci/task/view/google/gci2012/7975223
2012-12-11 06:49:45 -05:00
Alex Ivanov
37509959b2 libcsupport: Doxygen enhancement task #5
http://www.google-melange.com/gci/task/view/google/gci2012/7992211
2012-12-10 14:51:23 -05:00
Alex Ivanov
bcd0ea6409 libcsupport: Doxygen enhancement task #2
http://www.google-melange.com/gci/task/view/google/gci2012/8017203
2012-12-09 17:55:17 -05:00
Sebastian Huber
7e731815e5 libcsupport: Fix documentation 2012-12-09 14:26:02 +01:00
Sebastian Huber
9090c0af6e Filesystem: Revert documentation change 2012-12-09 14:25:16 +01:00
Mathew Kallada
ceaa99964f libcsupport: Doxygen Enhancement Task #3
http://www.google-melange.com/gci/task/view/google/gci2012/7992210
2012-12-08 15:43:29 -05:00
Sebastian Huber
93b29f08f0 Filesystem: Use transient event 2012-10-30 18:03:29 +01:00
Sebastian Huber
47a3cd8f73 score: Work area initialization API change
The work areas (RTEMS work space and C program heap) will be initialized
now in a separate step and are no longer part of
rtems_initialize_data_structures().  Initialization is performed with
tables of Heap_Area entries.  This allows usage of scattered memory
areas present on various small scale micro-controllers.

The sbrk() support API changes also.  The bsp_sbrk_init() must now deal
with a minimum size for the first memory chunk to take the configured
work space size into account.
2012-10-25 14:54:06 +02:00
Sebastian Huber
ca9f2e639e libcsupport: Spelling 2012-10-15 14:58:08 +02:00
Sebastian Huber
78f417f897 Filesystem: Rename function
Rename rtems_filesystem_location_exists_in_same_fs_instance_as() into
rtems_filesystem_location_exists_in_same_instance_as() for consistency
with other file system instance related functions.
2012-10-07 17:17:27 +02:00
Sebastian Huber
8b65f389aa Filesystem: Rename function
Rename rtems_filesystem_location_is_root() into
rtems_filesystem_location_is_instance_root() to distinguish this from
the file system root directory of the current task environment.
2012-10-07 17:12:49 +02:00
Sebastian Huber
317ee8d7ff score: Change greedy allocation API 2012-07-17 10:19:16 +02:00
Sebastian Huber
c8a86d4d6f libcsupport: C++ compatibility 2012-07-02 16:21:46 +02:00
Sebastian Huber
847ad441cd Filesystem: Wait for unmount() to finish 2012-05-29 12:25:34 +02:00
Sebastian Huber
502629707d libcsupport: Adjust malloc_walk() prototype
The header file <rtems/malloc.h> provides now also the malloc_walk()
prototype.

The malloc_walk() prototype reflects now the _Protected_heap_Walk() API.
The return status helps to print only in case of an error.
2012-05-16 12:38:21 +02:00
Sebastian Huber
e37ed99c99 Filesystem: Add missing include file <stdint.h> 2012-05-15 16:27:51 +02:00
Sebastian Huber
0a95800a58 Filesystem: Change pathconf_limits_and_options
The pathconf_limits_and_options field of
rtems_filesystem_mount_table_entry_t is now a const pointer to reduce
the read-write memory demands of file system instances.
2012-05-15 10:37:00 +02:00
Sebastian Huber
da154e14f6 Filesystem: Move operations to mount table entry
The scope of the file system operations is the file system instance.
The scope of the file system node handlers is the file location.  The
benefit of moving the operations to the mount table entry is a size
reduction of the file location (rtems_filesystem_location_info_t).  The
code size is slightly increased due to additional load instructions.

Restructure rtems_filesystem_mount_table_entry_t to improve cache
efficiency.
2012-05-15 10:01:43 +02:00
Sebastian Huber
7666afc97a Filesystem: Add const qualifier to lock/unlock 2012-05-15 10:01:43 +02:00
Sebastian Huber
53da07e436 Filesystem: PR1255: Move offset update to handlers
It is now the responsibility of the read() and write() handler to update
the offset field of the IO descriptor (rtems_libio_t).  This change
makes it possible to protect the IO descriptor from concurrent access by
per file locks.
2012-05-15 10:01:42 +02:00
Sebastian Huber
fed66f9910 Filesystem: Add shared device IO support
The device IO file system support in IMFS, devFS, and RFS uses now a
shared implementation.
2012-05-15 10:01:42 +02:00
Sebastian Huber
df01da6707 Filesystem: Use ioctl_command_t 2012-05-15 10:01:42 +02:00
Sebastian Huber
52c0db28a1 Filesystem: Remove duplicate prototype 2012-05-14 16:57:58 +02:00
Joel Sherrill
65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Sebastian Huber
30d412469c Filesystem: PR1398: Fix lseek() mechanic
According to POSIX the lseek() function shall not, by itself, extend the
size of a file.

Remove the size field of rtems_libio_t.  A file has only one size but
may have multiple open file descriptors.  Thus a file size field in the
file descriptor may lead to inconsistencies.

New default handlers rtems_filesystem_default_lseek_file() and
rtems_filesystem_default_lseek_directory().
2012-05-11 13:58:43 +02:00
Sebastian Huber
5a4bb758c0 Filesystem: Remove per file descriptor semaphore
The per file descriptor semaphore (field of rtems_libio_t) is unused in
RTEMS.  There is a considerable memory overhead due to that.  A
semaphore needs roughly 124 bytes which is huge compared to the
approximately 72 bytes for the file descriptor structure itself.  Device
drivers can create their own synchronization primitives in the open
handler on demand.
2012-05-04 10:53:51 +02:00
Joel Sherrill
cfaa3662ee General - Remove extraneous blank line in license message
Many files had an extra blank line in the license text
found in the file header.  This patch removes that line.

 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *
 *  http://www.rtems.com/license/LICENSE.

The script that did this also turned off execute permission
when it was turned on incorrectly.
2012-05-03 12:55:58 -05:00
Sebastian Huber
5b045eb6f8 Filesystem: Change type of ioctl_return
Change the ioctl_return type of rtems_libio_ioctl_args_t to match the
ioctl() return value type.
2012-04-03 15:03:18 +02:00
Sebastian Huber
2563410019 Filesystem: Rename defines
o Removed RTEMS_LIBIO_PERMS_SEARCH.
 o Renamed RTEMS_LIBIO_PERMS_READ in RTEMS_FS_PERMS_READ.
 o Renamed RTEMS_LIBIO_PERMS_WRITE in RTEMS_FS_PERMS_WRITE.
 o Renamed RTEMS_LIBIO_PERMS_EXEC in RTEMS_FS_PERMS_EXEC.
 o Renamed RTEMS_LIBIO_FOLLOW_HARD_LINK in RTEMS_FS_FOLLOW_HARD_LINK.
 o Renamed RTEMS_LIBIO_FOLLOW_SYM_LINK in RTEMS_FS_FOLLOW_SYM_LINK.
 o Renamed RTEMS_LIBIO_MAKE in RTEMS_FS_MAKE.
 o Renamed RTEMS_LIBIO_EXCLUSIVE in RTEMS_FS_EXCLUSIVE.
 o Renamed RTEMS_LIBIO_ACCEPT_RESIDUAL_DELIMITERS in
   RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS.
 o Renamed RTEMS_LIBIO_REJECT_TERMINAL_DOT in
 RTEMS_FS_REJECT_TERMINAL_DOT.
2012-03-13 12:24:10 +01:00
Sebastian Huber
4116fce629 Filesystem: New defaults fsync_h and fdatasync_h
New defaults rtems_filesystem_default_fsync_or_fdatasync() and
rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and
fdatasync_h.  The rtems_filesystem_default_fsync_or_fdatasync() sets now
errno to EINVAL according to POSIX.
2012-03-13 12:23:45 +01:00
Sebastian Huber
bea7043c80 Filesystem: Change node type enum values
Move the RTEMS_FILESYSTEM_INVALID_NODE_TYPE to the end.  This makes it
possible to use this enum easily as an array index.  Most comparisons
are made against RTEMS_FILESYSTEM_DIRECTORY.  A value of zero allows on
some architectures simpler branch operations.
2012-03-13 12:23:45 +01:00
Sebastian Huber
a76c23738b Filesystem: Change error indication
Change error indication to ESPIPE in rtems_filesystem_default_lseek().
2012-03-13 12:23:45 +01:00