Commit Graph

8207 Commits

Author SHA1 Message Date
Joel Sherrill
abceda999d Merge branch 'master' into warnings 2013-09-30 12:09:12 -05:00
Chris Johns
85c855af7e Fix building with RTEMS_DEBUG. 2013-09-30 16:10:45 +10:00
Joel Sherrill
db97feb50d internal.h/main_mdump.c: Convert main methods to static 2013-09-23 08:22:02 -05:00
Joel Sherrill
40eea0015f nfsclient/src/dirutils.c: Fix missing prototype warnings 2013-09-22 10:36:57 -05:00
Joel Sherrill
37a7c27e29 getdents.c: Fix missing prototype warnings 2013-09-22 10:34:20 -05:00
Joel Sherrill
59a2b2b251 ctermid.c: Fix missing prototype warnings 2013-09-22 10:32:20 -05:00
Joel Sherrill
359b6d0ce9 getpwent.c: Fix missing prototype warnings 2013-09-22 10:31:08 -05:00
Joel Sherrill
f3a5d86fc9 newlibc_init.c: Fix missing prototype warnings 2013-09-22 10:29:45 -05:00
Joel Sherrill
01b7b69481 __times.c: Fix missing prototype warnings 2013-09-22 10:28:23 -05:00
Joel Sherrill
59abbecebb stat.c: Fix missing prototype warnings 2013-09-22 10:24:39 -05:00
Joel Sherrill
d334b60b04 __gettod.c: Fix missing prototype warnings 2013-09-22 10:22:01 -05:00
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
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
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
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
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
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
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
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
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
Gedare Bloom
e4c192655e dosfs: Unsigned compared against 0
Fix the type of "cmpltd" to be ssize_t so that assigning it to -1
will terminate processing as intended.
2013-09-05 13:09:37 -04:00
Gedare Bloom
551468c2db dosfs: Unintentional integer overflow
Explicitly promote 32-bit integer to 64-bits for multiplication.
2013-09-05 12:58:34 -04:00