Commit Graph

26029 Commits

Author SHA1 Message Date
Joel Sherrill
196749cedd __gitpid.c: Fix missing prototype warnings 2013-09-22 10:07:20 -05:00
Joel Sherrill
e0e2615e29 __assert.c: Fix missing prototype warnings 2013-09-22 10:06:15 -05:00
Joel Sherrill
3ea6b8841d issetugid.c: Fix missing prototype warnings 2013-09-22 10:05:53 -05:00
Joel Sherrill
a85a55263b _execve.c: Fix missing prototype warnings 2013-09-22 10:02:18 -05:00
Joel Sherrill
137f947bc1 rtemsbuildname.c: Fix missing prototype warnings 2013-09-22 10:01:58 -05:00
Joel Sherrill
90a2a6d6c6 intrbody.c: Fix missing prototype warnings 2013-09-22 10:01:44 -05:00
Joel Sherrill
f07b0e6563 sparc/.../grcan.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTE 2013-09-22 09:41:49 -05:00
Joel Sherrill
f972703d77 semopen.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTE 2013-09-22 09:41:25 -05:00
Joel Sherrill
49fb4dcb52 mqueueopen.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTE 2013-09-22 09:41:13 -05:00
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