summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-04-11Reset free count properly in rtems_rfs_bitmap_map_clear_all().Fan Deng1-1/+1
In rtems_rfs_bitmap_map_clear_all(), control->free is set to 'elements', which is the number of elements in the bitmap. This is incorrect, as control->free should contain the number of free bits, not elements. This change fixes the logic and resets control->free to a correct value.
2018-04-11Make bit addressing consistent in rtems_rfs_group.cFan Deng1-1/+12
This change fixes https://devel.rtems.org/ticket/3089. Briefly, rtems_rfs_group.c contains conflicting conversions between block numbers and group number and bit offset pairs. This caused the actual bit stored on the bitmask to be one bit displaced from its intended location. For more details, please see the associated ticket. Tested by inspecting the written bitmasks with and without this change.
2018-04-04build: Remove EXTRA_DISTSebastian Huber1-1/+0
A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
2018-02-07NFS: Fix use of self-contained objectsSebastian Huber1-5/+4
Update #2843.
2018-02-02NFS: Use self-contained recursive mutexSebastian Huber2-125/+41
Update #2843.
2018-02-02pipe: Use self-contained mutexSebastian Huber1-87/+19
Update #2843.
2018-02-02RFS: Use self-contained recursive mutexSebastian Huber1-29/+2
Update #2843.
2018-02-02dosfs: Use self-contained recursive mutexSebastian Huber8-103/+43
Update #2843.
2018-02-02JFFS2: Use self-contained recursive mutexSebastian Huber2-32/+15
Update #2843.
2018-01-25Remove make preinstallChris Johns28-6528/+10
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
2018-01-23rfs: Fix format warningSebastian Huber1-1/+1
Update #3082.
2018-01-22rfs: Fix for 64-bit targetsSebastian Huber2-2/+2
The RTEMS_BLKIO_SETBLKSIZE IO control expects an uint32_t parameter and not a size_t which is 64-bits on 64-bit targets. Update #3082.
2017-12-13RFS: Include <rtems/rtems-rfs-shell.h>Sebastian Huber1-1/+1
Prepare for header file move to common include directory. Update #3254.
2017-12-13pipe: Include <rtems/pipe.h>Sebastian Huber1-2/+1
Prepare for header file move to common include directory. Update #3254.
2017-12-13dosfs: Include <rtems/dosfs.h>Sebastian Huber2-2/+2
Prepare for header file move to common include directory. Update #3254.
2017-12-13devfs: Include <rtems/devfs.h>Sebastian Huber10-10/+10
Prepare for header file move to common include directory. Update #3254.
2017-12-13IMFS: Include <rtems/imfs.h>Sebastian Huber29-29/+29
Prepare for header file move to common include directory. Update #3254.
2017-12-07dosfs: Allow creating a file with similar name.Christian Mauderer1-3/+7
If there is already a file with a long file name it isn't possible to create a second file which has a name that ends on the first files name (for example ets.beam and sets.beam). This patch fixes that. Update #3258.
2017-12-05dosfs: Fix files with same name as volume name.Christian Mauderer1-1/+2
Take care that a file in the root directory with the same name as the volume name can be found. Update #3257.
2017-09-27score: Simplify red-black tree debug supportSebastian Huber1-3/+0
Make the RBTree_Node layout independent of RTEMS_DEBUG (and all other build configuration options). This allows the use of this structure in Newlib. Update #3112.
2017-09-15libio: Add rtems_libio_iop_is_append()Sebastian Huber5-7/+7
Update #3132.
2017-09-15libio: Add rtems_libio_iop_is_writeable()Sebastian Huber1-1/+1
Update #3132.
2017-09-15libio: Add rtems_libio_iop_is_no_delay()Sebastian Huber1-1/+1
Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags()Sebastian Huber1-1/+1
Update #3132.
2017-09-15libio: Add iop set/clear flagsSebastian Huber3-4/+4
Update #3132.
2017-09-06dosfs: Fix fat_file_update()Sebastian Huber1-5/+3
Do not update the non-existant meta-data of the root directory. Update #2944.
2017-09-06dosfs: Fix find name next entry preparationSebastian Huber1-25/+50
Update #2964.
2017-09-06dosfs: Fix msdos_dir_read()Sebastian Huber1-27/+28
Set a proper name buffer length for each converter invocation. Update #2987.
2017-09-06dosfs: Support a cluster size of 64KiBSebastian Huber3-12/+10
Close #3003.
2017-08-25Include missing <string.h>Sebastian Huber1-0/+2
Update #2133.
2017-07-14posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel20-0/+63
Added a mmap file handler to struct _rtems_filesystem_file_handlers_r. Updated each file handler object to support the default mmap handler. Updated mmap() to call the mmap handler for MAP_SHARED. Added a mmap file handler for shm Added support for MAP_ANON in mmap(). Updates #2859
2017-06-07Include missing <sys/param.h>Sebastian Huber1-0/+1
Some kernel-space header expect that <sys/param.h> is present. Update #2833.
2017-06-07Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber2-0/+3
Update #2833.
2017-05-24build-system: Parallel build all subdirs.Chris Johns1-1/+1
2017-04-18rtems/inttypes.h: New file. Uses contents from cpukitJoel Sherrill4-40/+5
Provide extentions to <inttpes.h> PRIxxx constants for more POSIX types. Start with existing definitions found in RTEMS Project owned code in cpukit/. updates #2983.
2017-03-16dosfs: Fix file name searchSebastian Huber1-17/+7
Do not use our long file name entry count to optimize the file name search. The Unicode comparison must be taken into account. Update #2939.
2017-03-16dosfs: Fix race condition msdos_dir_read()Sebastian Huber1-5/+5
Obtain file system instance lock before member access. Update #2937.
2017-03-16dosfs: Rename fat_entries to lfn_entriesSebastian Huber1-20/+20
The name "fat_entries" for long file name directory entries is quite misleading.
2017-03-16dosfs: Fix long file name paddingSebastian Huber1-3/+3
Update #2934.
2017-03-16dosfs: msdos_filename_utf8_to_short_name_for_saveSebastian Huber1-15/+10
Simplify.
2017-03-16dosfs: Fix msdos_add_file()Sebastian Huber1-245/+155
Make sure that long file names work accross cluster boundaries. Update #2929.
2017-03-16dosfs: Simplify msdos_add_file()Sebastian Huber1-4/+2
Update #2929.
2017-03-16dosfs: Add and use msdos_lfn_checksum()Sebastian Huber3-22/+25
Update #2929.
2017-03-16dosfs: Simplify fat_file_open()Sebastian Huber1-3/+1
Update #2929.
2017-03-16dosfs: Simplify msdos_creat_node()Sebastian Huber1-21/+14
Update #2929.
2017-03-16dosfs: Fix fat_file_write()Sebastian Huber3-30/+11
Remove forced overwrite which leads to file data corruption. The logic to determine a forced overwrite was fundamentally broken. For simplity, disable this feature. Update #2622.
2017-03-16dosfs: Fix msdos_utf8_normalize_and_fold()Sebastian Huber1-2/+2
It is all right in case the result uses the full destination buffer. Without this fix the handling of a maximum 8.3 short file name is broken. Update #2928.
2017-02-28dosfs: Fix FAT32 formatterSebastian Huber1-2/+2
The second FAT entry contains a bit to indicate if the FAT32 filesystem is not dirty and a bit to indicate if there was no IO error. Set both bits for a fresh filesystem. This prevents a warning if mounted on Windows. Close #2913.
2017-02-28dosfs: Directories should have a file size of 0Sebastian Huber1-1/+6
Close #2755.
2017-02-23termios: Add kqueue() and poll() supportSebastian Huber2-7/+14
Real implementation is provided by libbsd.