Commit Graph

25520 Commits

Author SHA1 Message Date
Joel Sherrill
ecd82b6def basedefs.h: Add RTEMS_COMPILER_UNUSED_ATTRIBUTE. 2013-09-22 09:40:44 -05:00
Joel Sherrill
c8707a316b leon3/console.c: Fix misisng prototype issues 2013-09-21 16:25:06 -05:00
Joel Sherrill
949265991e semopen.c: Address set but unused variable warning 2013-09-21 16:17:48 -05:00
Joel Sherrill
acfdf513e2 sigsuspend.c: Address set but unused variable warning 2013-09-21 16:16:25 -05:00
Joel Sherrill
41ea8015d2 mqueueopen.c: Address set but unused variable warning 2013-09-21 16:13:25 -05:00
Joel Sherrill
34b57d61be sparc/.../grcan.c: Fix multiple warnings 2013-09-21 16:10:17 -05:00
Joel Sherrill
e9da278c05 sparc/.../ambapp.h: Add ambapp_get_number_apbslv_devices() prototype 2013-09-21 16:09:48 -05:00
Joel Sherrill
ac19578efa sparc/.../occan.c: Fix missing prototype warning 2013-09-21 15:56:28 -05:00
Joel Sherrill
110cc8cb38 sparc/.../ambapp.h: Add ambapp_get_number_ahbslv_devices() prototype 2013-09-21 15:55:40 -05:00
Joel Sherrill
946c3918f0 sparc/../occan.c: Fix set but unused variable warning 2013-09-21 15:48:45 -05:00
Joel Sherrill
2cdace7e80 main_mv.c: Address set but not used warning
It looks like the paths that use tval are if 0'ed for RTEMS.
Making all conditional on __rtems__ including the declaration.
2013-09-21 15:45:51 -05:00
Joel Sherrill
7071eb3ada mouse_parser.c: Fix warning by properly checking return code 2013-09-21 15:41:50 -05:00
Joel Sherrill
df74da01b7 sparc irq-shared.c: Fix unused variable warning 2013-09-21 15:38:48 -05:00
Christian Mauderer
1485a58ce3 bsp/stm32f4: Add STM32F10XXX support. 2013-09-19 13:18:04 +02:00
Sebastian Huber
0282e83d64 JFFS2: New tests 2013-09-19 13:16:07 +02:00
Sebastian Huber
3c96bee3f9 JFFS2: Add RTEMS support 2013-09-19 13:16:06 +02:00
Sebastian Huber
78b85286f0 JFFS2: Update Linux compatibility layer
Modify compatbility layer for RTEMS.  Add support for Linux 3.11 based
JFFS2.
2013-09-19 13:16:06 +02:00
Sebastian Huber
672038b174 JFFS2: Import from eCos
Import of Linux compatibility layer and JFFS2 file system support from
eCos.

The files are imported from eCos CVS on 2013-09-16.

cvs -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos login
cvs -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos

The files

"ecos/packages/compat/linux/current/asm/atomic.h",
"ecos/packages/compat/linux/current/asm/bug.h",
"ecos/packages/compat/linux/current/asm/page.h",
"ecos/packages/compat/linux/current/cyg/crc/crc.h",
"ecos/packages/compat/linux/current/cyg/infra/cyg_type.h",
"ecos/packages/compat/linux/current/linux/compiler.h",
"ecos/packages/compat/linux/current/linux/completion.h",
"ecos/packages/compat/linux/current/linux/config.h",
"ecos/packages/compat/linux/current/linux/crc32.h",
"ecos/packages/compat/linux/current/linux/errno.h",
"ecos/packages/compat/linux/current/linux/fs.h",
"ecos/packages/compat/linux/current/linux/kernel.h",
"ecos/packages/compat/linux/current/linux/list.h",
"ecos/packages/compat/linux/current/linux/mtd/compatmac.h",
"ecos/packages/compat/linux/current/linux/mtd/mtd.h",
"ecos/packages/compat/linux/current/linux/pagemap.h",
"ecos/packages/compat/linux/current/linux/rbtree.h",
"ecos/packages/compat/linux/current/linux/rwsem.h",
"ecos/packages/compat/linux/current/linux/sched.h",
"ecos/packages/compat/linux/current/linux/slab.h",
"ecos/packages/compat/linux/current/linux/spinlock.h",
"ecos/packages/compat/linux/current/linux/stat.h",
"ecos/packages/compat/linux/current/linux/string.h",
"ecos/packages/compat/linux/current/linux/timer.h",
"ecos/packages/compat/linux/current/linux/types.h",
"ecos/packages/compat/linux/current/linux/version.h",
"ecos/packages/compat/linux/current/linux/vmalloc.h",
"ecos/packages/compat/linux/current/linux/wait.h",
"ecos/packages/compat/linux/current/linux/workqueue.h", and
"ecos/packages/compat/linux/current/linux/zlib.h"
"ecos/packages/compat/linux/current/linux/zutil.h"

are copied to "cpukit/libfs/src/jffs2/include".

The file "ecos/packages/services/crc/current/src/crc32.c" is copied to
"cpukit/libfs/src/jffs2/src/compat-crc32.c".

The file "ecos/packages/compat/linux/current/src/rbtree.c" is copied to
"cpukit/libfs/src/jffs2/src/compat-rbtree.c".

The file "ecos/packages/fs/jffs2/current/src/dir-ecos.c" is copied to
"cpukit/libfs/src/jffs2/src/dir-rtems.c".

The file "ecos/packages/fs/jffs2/current/src/flashio.c" is copied to
"cpukit/libfs/src/jffs2/src/flashio.c".

The file "ecos/packages/fs/jffs2/current/src/fs-ecos.c" is copied to
"cpukit/libfs/src/jffs2/src/fs-rtems.c".

The file "ecos/packages/fs/jffs2/current/src/malloc-ecos.c" is copied to
"cpukit/libfs/src/jffs2/src/malloc-rtems.c".

The file "ecos/packages/fs/jffs2/current/src/os-ecos.h" is copied to
"cpukit/libfs/src/jffs2/src/os-rtems.h".

The LICENSE file referenced in some files of this patch set is part of a
previous patch set imported from Linux.
2013-09-19 13:16:06 +02:00
Sebastian Huber
0c0f128e11 JFFS2: Import from Linux
Import of Journalling Flash File System, Version 2 from Linux 3.11.
This part of the Linux kernel is under a separate license which is
similar to the RTEMS license.

The file "cpukit/libfs/src/jffs2/include/linux/jffs2.h" is a copy of
"linux-3.11/include/uapi/linux/jffs2.h".

The file "LICENSE.JFFS2" is a copy of "linux-3.11/fs/jffs2/LICENCE".

The files

"linux-3.11/fs/jffs2/LICENCE",
"linux-3.11/fs/jffs2/acl.h",
"linux-3.11/fs/jffs2/build.c",
"linux-3.11/fs/jffs2/compr.c",
"linux-3.11/fs/jffs2/compr.h",
"linux-3.11/fs/jffs2/compr_rtime.c",
"linux-3.11/fs/jffs2/compr_rubin.c",
"linux-3.11/fs/jffs2/compr_zlib.c",
"linux-3.11/fs/jffs2/debug.c",
"linux-3.11/fs/jffs2/debug.h",
"linux-3.11/fs/jffs2/erase.c",
"linux-3.11/fs/jffs2/gc.c",
"linux-3.11/fs/jffs2/jffs2_fs_i.h",
"linux-3.11/fs/jffs2/jffs2_fs_sb.h",
"linux-3.11/fs/jffs2/nodelist.c",
"linux-3.11/fs/jffs2/nodelist.h",
"linux-3.11/fs/jffs2/nodemgmt.c",
"linux-3.11/fs/jffs2/read.c",
"linux-3.11/fs/jffs2/readinode.c",
"linux-3.11/fs/jffs2/scan.c",
"linux-3.11/fs/jffs2/summary.h",
"linux-3.11/fs/jffs2/write.c", and
"linux-3.11/fs/jffs2/xattr.h"

are copied to "cpukit/libfs/src/jffs2/src".
2013-09-19 13:16:06 +02:00
Vipul Nayyar
8ac962e1a7 bsp_howto/support.t: Add PIC Interrupt Model API Information 2013-09-17 12:44:08 -05:00
Sebastian Huber
d9998172a0 libtests/termios04: Avoid NULL pointer access 2013-09-17 13:58:53 +02:00
Joel Sherrill
564860fb59 leon3/include/bsp.h: Fix spacing 2013-09-16 14:32:36 -05:00
Joel Sherrill
3d477da051 m68k/shared/start.S: Fix spacing 2013-09-16 14:32:22 -05:00
Joel Sherrill
f73089760c pc386/console/conscfg.c: Fix spacing 2013-09-16 14:31:52 -05:00
Joel Sherrill
38d94f565d raspberrypi.cfg: Remove CVS Id 2013-09-16 14:31:28 -05:00
Sebastian Huber
390e987eb3 libblock: PR2145: Limit maximum read-ahead blocks
This helps to prevent stack overflows due to configuration errors.
2013-09-16 10:54:51 +02:00
Ric Claus
a44917e789 bsps/arm: Fix exception entries 2013-09-16 10:54:51 +02:00
Sebastian Huber
bdcf4102f7 fstests/mdosfs_fstime: Remove test
The FAT file system is not conformant with the POSIX requirements.
2013-09-16 10:54:51 +02:00
Sebastian Huber
d1c5c01f62 psxtests/psxfile01: Fix according to POSIX
ftruncate() and open() with O_TRUNC shall upon successful completion
mark for update the st_ctime and st_mtime fields of the file.

truncate() shall upon successful completion, if the file size is
changed, mark for update the st_ctime and st_mtime fields of the file.

The POSIX standard "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition says nothing about the behaviour of truncate()
if the file size remains unchanged.

Future directions of the standard may mandate the behaviour specified in
ftruncate():

http://austingroupbugs.net/view.php?id=489
2013-09-13 17:07:15 +02:00
Sebastian Huber
736983f1cc fstests/fstime: Fix according to POSIX
ftruncate() and open() with O_TRUNC shall upon successful completion
mark for update the st_ctime and st_mtime fields of the file.

truncate() shall upon successful completion, if the file size is
changed, mark for update the st_ctime and st_mtime fields of the file.

The POSIX standard "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition says nothing about the behaviour of truncate()
if the file size remains unchanged.

Future directions of the standard may mandate the behaviour specified in
ftruncate():

http://austingroupbugs.net/view.php?id=489
2013-09-13 16:47:55 +02:00
Sebastian Huber
c5b2d7944c IMFS: Fix truncate according to POSIX
ftruncate() and open() with O_TRUNC shall upon successful completion
mark for update the st_ctime and st_mtime fields of the file.

truncate() shall upon successful completion, if the file size is
changed, mark for update the st_ctime and st_mtime fields of the file.

The POSIX standard "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition says nothing about the behaviour of truncate()
if the file size remains unchanged.

Future directions of the standard may mandate the behaviour specified in
ftruncate():

http://austingroupbugs.net/view.php?id=489
2013-09-13 16:47:55 +02:00
Sebastian Huber
f82851c5f7 IMFS: Use inline functions instead of macros 2013-09-13 16:47:55 +02:00
Sebastian Huber
2477a39357 fstests/fspermission: Fix resource leak 2013-09-13 16:47:55 +02:00
Sebastian Huber
d2da61aa0c Filesystem: Change rtems_filesystem_chown()
Implement POSIX requirements in the high-level file system layer.  Use
common implementation for all change owner variants.
2013-09-12 15:31:23 +02:00
Sebastian Huber
b6657c3957 Filesystem: Add and use rtems_filesystem_chmod()
Implement POSIX requirements in the high-level file system layer.
2013-09-12 15:31:12 +02:00
Ralf Kirchner
3dbb68d991 dosfs: Correct handling of iconv() return value 2013-09-10 14:48:51 +02:00
Sebastian Huber
f55215a837 bsps: Fix cache manager support 2013-09-10 08:51:06 +02:00
Sebastian Huber
784d2a1cc9 arm: Fix inconsistent define usage 2013-09-06 10:06:48 +02:00
Gedare Bloom
36fdd0bcff uuid: make integer arithmetic conversion explicit
Upcast multiplication to 64-bit integer arithmetic.
2013-09-05 14:50:46 -04:00
Gedare Bloom
8ee95e609f imfs: use safe string functions
Replace strcpy and strcat with counted variants.
2013-09-05 14:44:24 -04:00
Gedare Bloom
a803e04df6 termios: check return value from semaphore obtain/release
Raise a fatal error in case of failure.
2013-09-05 14:34:32 -04:00
Gedare Bloom
74d357513f flashdisk: swap arguments to checksum helper
The arguments to rtems_fdisk_calc_crc16() are reversed when called from
rtems_fdisk_page_checksum().

26052 Operands don't affect result
2013-09-05 14:31:14 -04:00
Gedare Bloom
59261fba76 nvdisk: swap arguments to checksum helper
The arguments to rtems_nvdisk_calc_crc16() are reversed when called from
rtems_nvdisk_page_checksum().

26053 Operands don't affect result
2013-09-05 14:28:14 -04:00
Gedare Bloom
5f040b8829 sparse-disk: check return value from semaphore_obtain/release
In case obtain/release is unsuccessful, cause a fatal error.
2013-09-05 14:21:32 -04:00
Gedare Bloom
97ae1eeb38 imfs: check return value from mkdir 2013-09-05 14:13:32 -04:00
Gedare Bloom
e075b38872 untar: check return value from mkdir
Check the return value from mkdir instead of failing silently.

1063857 Unchecked return value from library
2013-09-05 14:10:52 -04:00
Gedare Bloom
b6cfbab43f dosfs: Eliminate empty case statements that fall through to default.
Also eliminates possibly dead code in case the name_type can never
actually be MSDOS_NAME_INVALID.

1063860 Logically dead code.
2013-09-05 14:03:00 -04:00
Gedare Bloom
c963ac7e39 nfs: Fix ln option processing.
If opts is NULL, then strchr() will dereference it and search for 's'.

1063863 Dereference after null check
2013-09-05 13:44:04 -04:00
Gedare Bloom
121dd88103 bdpart: Argument cannot be negative
If open(fd) fails then avoid the error path that calls close(fd).
2013-09-05 13:22:49 -04:00
Gedare Bloom
a8007dc2ca dosfs: Unsigned compared against 0
Change the type for storing the return from iconv to be signed.
2013-09-05 13:15:33 -04:00