Gregory Nutt
78fa87c7db
ROMFS: stat() and fstat() should always indicate that directories are executable.
2017-02-13 16:56:55 -06:00
Gregory Nutt
d677e63008
ROMFS: Back out 29028bcd5a
. A cool idea, but loses the EXECUTABLE bit in the file type.
2017-02-13 15:33:52 -06:00
Gregory Nutt
40f8e8b41f
Fix some backward DEBUGASSERT tests in ROMFS and FAT.
2017-02-13 14:06:39 -06:00
Gregory Nutt
15ba514ecc
Merge branch 'fstat'
2017-02-13 12:58:56 -06:00
Gregory Nutt
34f1b333b1
FAT: Fix some errors that I introduced in my review of Alan's patch. My screw-up, not Alan's. Sorry.
2017-02-13 12:43:35 -06:00
Alan Carvalho de Assis
a73651c8ca
fstat: Add fstat() support to FAT.
2017-02-13 12:21:06 -06:00
Gregory Nutt
0b72903049
Update TODO List
2017-02-13 12:05:33 -06:00
Gregory Nutt
d0f0dd222e
NFS: Use clock_gettime() instead of deprecated gettimeofday()
2017-02-13 10:39:49 -06:00
Gregory Nutt
10378bb10b
fstat: Add fstat() support to nfs.
2017-02-13 10:07:43 -06:00
Gregory Nutt
181eb79616
fstat: Add fstat() support to nxffs.
2017-02-13 08:22:05 -06:00
Gregory Nutt
a482a4603f
fstat: Add fstat() support to tmpfs.
2017-02-13 07:20:39 -06:00
Gregory Nutt
29028bcd5a
romfs: Simplify fstat() implementation. It is not necessary to save the file type at open, We know in this context that the file is a regular file.
2017-02-13 06:55:06 -06:00
Manohara HK
b154531838
I found an issue inside the cp15_coherent_dcache function in file, arch/arm/src/armv7-r/cp15_coherent_dcache.S.
...
The "mcr CP15_BPIALLIS(r0)" instruction is used for invalidating entire branch predictor. But the problem is, since this is the generic code and can be called on any armv7-r architecture based CPU's. It is a problem, if this instruction is called in uni processor configuration. Because, BPIALLIS (c7, 0, c1, 6) instruction is only added as part of the "Multiprocessing Extensions" (As per ARM® Architecture Reference Manual /ARMv7-A and ARMv7-R edition)
So in my opinion, this instruction should be under SMP configuration. In non-SMP configuration this instruction could become undefined.
2017-02-13 06:33:15 -06:00
Gregory Nutt
904478c1d9
Merge remote-tracking branch 'origin/master' into fstat
2017-02-12 17:09:18 -06:00
Gregory Nutt
c433724b23
unionfs: Missing declaration of 'ret'
2017-02-12 17:08:50 -06:00
Gregory Nutt
2cb402080a
fstat: Add fstat() support to unionfs
2017-02-12 17:05:47 -06:00
Gregory Nutt
4748e9352d
fstat: Add fstat() support to romfs
2017-02-12 16:25:12 -06:00
Gregory Nutt
d06b346b5c
Add fstat support to binfs
2017-02-12 14:47:05 -06:00
Gregory Nutt
7d91fabf01
fstat: Add skeleton implmentations of fstat() in all file systems.
2017-02-12 13:42:27 -06:00
Gregory Nutt
c5a8e96dbc
Add basic fstat() support. Now all that is needed is to modify ALL of the file systems.
2017-02-12 12:48:24 -06:00
Gregory Nutt
9a3af1a3e0
Update TODO list
2017-02-12 12:10:46 -06:00
Gregory Nutt
3055025e00
rename(): Correct more issues. (1) Move to the root directory in the pseudo file system, (2) Fix path naming calculation when the path is the root directory of a mounted file system, and (3) dont't do the rename if the source and destination of the rename are the same.
2017-02-12 08:37:28 -06:00
Gregory Nutt
e20e9f0fe4
Update a comment
2017-02-11 18:55:13 -06:00
Gregory Nutt
2d11d8f1a4
rename: An inode with no operations should be treated like a directory for the purposes of rename
2017-02-11 12:02:50 -06:00
Gregory Nutt
bd7d3a92f5
Add logic to VFS rename: If target of rename exists and is a directory, then the source file should be moved 'under' the target directory. POSIX also requires that if the target is a file, then that old file must be deleted.
2017-02-11 11:18:30 -06:00
Gregory Nutt
af5a8e73d3
VFS rename: Fix issues with rename to subdirectories and some softlink issues.
2017-02-11 10:08:23 -06:00
Gregory Nutt
1ca0437909
libc/Kconfig: Remove source'ing file twice. Use cleaner dependencies in some menus.
2017-02-10 10:28:34 -06:00
Gregory Nutt
67feda60b2
libc/Kconfig: Use menus vs. comments to better organize the C library menus
2017-02-10 10:04:56 -06:00
Gregory Nutt
de1b68dc4e
libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory.
2017-02-10 09:32:55 -06:00
Alan Carvalho de Assis
24052710c1
Fix Makefile to create nuttx.bin instead nuttx.elf.bin when EXEEXT is defined
2017-02-10 07:00:13 -06:00
Gregory Nutt
47a5389c43
Merged in david_s5/nuttx-7/david_s5/minor-typos-1486681097354 (pull request #208 )
...
Minor typos
Approved-by: Gregory Nutt
2017-02-09 23:21:20 +00:00
Gregory Nutt
97c5421c0c
tools/mkconfig.c: Purely cosmetic update.
2017-02-09 17:02:19 -06:00
David Sidrane
6295d571ce
Minor typos
2017-02-09 22:58:37 +00:00
Gregory Nutt
9946969c6c
libc/stdio/Make.defs: the no-flush stubs now need to be built unconditionally
2017-02-09 16:37:17 -06:00
Gregory Nutt
d35676860b
tools/mkconfig.c: Purely cosmetic update.
2017-02-09 16:29:01 -06:00
Gregory Nutt
0b4a9539be
tools/mkconfig.c: Add logic to keep all of the buffering options in sync.
2017-02-09 16:17:54 -06:00
Gregory Nutt
98d072a1f7
Apparently setvbuf() size can be nonzero with _IONBF. That makes no sense, but is necessary if setbuf() is to work as it is defined at OpenGroup.org.
2017-02-09 15:39:33 -06:00
Gregory Nutt
ffbf6bc9a6
libc/misc/fs_filesem.c references struct file_struct. Should include nuttx/fs/fs.h
2017-02-09 15:16:36 -06:00
Gregory Nutt
c19aa094e1
C Library: Add setbuf() which is a trivial wrapper around setvbuf().
2017-02-09 15:04:53 -06:00
Gregory Nutt
488a89e67e
Merged in david_s5/nuttx-6/david_s5/typo-up_exitc-edited-online-with-bitbuck-1486672675169 (pull request #207 )
...
Typo up_exit.c edited online with Bitbucket
Approved-by: Gregory Nutt
2017-02-09 20:39:02 +00:00
David Sidrane
a907bbc5d3
Typo up_exit.c edited online with Bitbucket
2017-02-09 20:38:15 +00:00
Gregory Nutt
3329a534f7
Remove spurious blank line.
2017-02-09 13:06:42 -06:00
Gregory Nutt
c55d8f15a1
Merged in david_s5/nuttx/upstream_bkp_fix (pull request #206 )
...
STM32 & STM32F7 Fixes the bkp reference counter issue
Approved-by: Gregory Nutt
2017-02-09 19:03:04 +00:00
Gregory Nutt
085dcf92e3
Update Coding Standard and some Kconfig comments.
2017-02-09 12:57:44 -06:00
David Sidrane
550d259a28
STM32F7: Fixes the bkp reference counter issue
2017-02-09 08:39:51 -10:00
David Sidrane
169b3982a2
STM32: Fixes the bkp reference counter issue
2017-02-09 08:39:51 -10:00
Gregory Nutt
a292da29d0
Costmetic changes from review of last PR.
2017-02-09 08:39:31 -10:00
David Sidrane
7262a788c4
Better granualarity and erro checking of the board's MCG settings
...
Allow for complete MCG_C2 definition from the boart.h file
Moved #ifdef out of code by setting default values for
Allow for individule bit setting in MCG_C2 for
BOARD_EXTCLOCK_MCG_C2
BOARD_MCG_C2_FCFTRIM
BOARD_MCG_C2_LOCRE0
Added range and sanity checking
2017-02-09 08:39:31 -10:00
David Sidrane
a0e7c2e2ae
Added MCG settings that are defiend on the K64 Soc
...
Added BOARD_MCG_C2_FCFTRIM and BOARD_MCG_C2_LOCRE0 to
configure the MCG_C2 register
cleanup of some comments
2017-02-09 08:39:31 -10:00
David Sidrane
147de588d8
Fixes illdefined BOARD_FR_DIV with BOARD_FRDIV from MCG
...
Original BOARD_FR_DIV was never used - that is a good thing because
the value ws definec shifted and the code also shifited it.
2017-02-09 08:39:31 -10:00