summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/Makefile.am (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-05-04Remove CVS-Ids.Ralf Corsépius1-4/+0
2012-04-03networking: socket to/from file descriptorSebastian Huber1-4/+0
o Move rtems_bsdnet_fdToSocket() and rtems_bsdnet_makeFdForSocket() to "cpukit/libnetworking/rtems/rtems_syscall.c". o The rtems_bsdnet_makeFdForSocket() function is now static. o Check in rtems_bsdnet_fdToSocket() function that the file descriptor uses the socket handlers, otherwise an error status will be returned and errno set to ENOTSOCK. o New test libtests/syscall01.
2012-03-13Filesystem: Reference counting for locationsSebastian Huber1-4/+12
o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
2012-02-10Added support functions for greedy heap allocationSebastian Huber1-1/+2
Various tests must check program paths that result due to failed memory allocations from the heap. To avoid tinkering with internal heap structures throughout the test code these functions should be used.
2012-02-08Fixed typo (setegid.c was missing)Sebastian Huber1-1/+1
2011-05-162011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-11/+22
* libcsupport/Makefile.am: Reformat.
2011-02-252011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libcsupport/src/sleep_noposix.c: Remove. * libcsupport/Makefile.am: Reflect changes above. * posix/src/sleep.c, posix/src/usleep.c: Remove. * posix/Makefile.am: Reflect changes above. * configure.ac: Error out if libc doesn't provide sleep, usleep.
2011-02-252011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libcsupport/src/creat.c: Remove. * libcsupport/Makefile.am: Reflect changes above. * configure.ac: Error out if libc doesn't provide creat.
2011-02-252011-02-25 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+0
* libcsupport/src/opendir.c, libcsupport/src/closedir.c, libcsupport/src/readdir.c, libcsupport/src/rewinddir.c, libcsupport/src/scandir.c, libcsupport/src/seekdir.c, libcsupport/src/telldir.c: Remove. * libcsuppport/Makefile.am: Reflect changes above. * configure.ac: Error out if libc doesn't provide opendir, closedir, readdir, rewinddir, scandir, seekdir, telldir.
2011-02-172011-02-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+2
* libcsupport/src/rtems_heap_extend.c: New file. * libcsupport/Makefile.am: Reflect change from above. * libcsupport/include/rtems/malloc.h: Declare rtems_heap_extend(). * score/include/rtems/score/heap.h: Documentation.
2010-08-232010-08-23 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+2
PR 1671/cpukit * libcsupport/include/rtems/gxx_wrappers.h: New file. * libcsupport/Makefile.am, libcsupport/preinstall.am: Reflect change above. * libcsupport/src/gxx_wrappers.c: Include <rtems/gxx_wrappers.h>. Use _Internal_error_Occurred() instead of rtems_panic(). * score/include/rtems/score/interr.h: Added INTERNAL_ERROR_GXX_KEY_ADD_FAILED and INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED.
2010-08-102010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-0/+1
PR 1661/testing * libcsupport/Makefile.am, libcsupport/include/rtems/libcsupport.h: Add public methods to get/set malloc heap pointer so the tests do not have to peer behind the API. * libcsupport/src/mallocgetheapptr.c, libcsupport/src/mallocsetheapptr.c: New files.
2010-08-032010-08-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+2
PR 1649/cpukit * libcsupport/Makefile.am, libcsupport/src/getgid.c: Make sure all get and set gid and egid routines are present and in their own files. * libcsupport/src/setegid.c, libcsupport/src/setgid.c: New files.
2010-08-022010-07-30 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill1-1/+1
PR 1645/cpukit * libcsupport/src/getuid.c: Moved setuid() routine to its own file. * libcsupport/src/setuid.c: New file with setuid() routine. * libcsupport/src/seteuid.c: New file with seteuid() routine.
2010-07-242010-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* libcsupport/Makefile.am, libcsupport/src/termios_baud2num.c, libcsupport/src/termios_num2baud.c: Use RTEMS associations to simplify code and make easier for coverage. * libcsupport/src/termios_baudtable.c: New file.
2010-07-152010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+1
* libcsupport/include/rtems/libio_.h: Removed rtems_filesystem_null_handlers. * libcsupport/src/fs_null_handlers.c: Removed file. * libcsupport/Makefile.am: Reflect change above. * libfs/src/nfsclient/src/nfs.c, libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c: Use rtems_filesystem_handlers_default instead of rtems_filesystem_null_handlers. * libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c: Initialize handler and operations table with proper defaults.
2010-07-102010-07-10 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+5
* libcsupport/Makefile.am: Do not build libio_sockets.c if networking is not enabled.
2010-07-102010-07-10 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-1/+1
* libcsupport/Makefile.am: Remove these files as they are uused. * libcsupport/src/__brk.c, libcsupport/src/__sbrk.c: Removed.
2010-07-012010-07-01 Vinu Rajashekhar <vinutheraj@gmail.com>Joel Sherrill1-1/+1
PR 1597/cpukit * libcsupport/Makefile.am, libcsupport/src/chown.c: Add lchown() and utimes(). * libcsupport/src/lchown.c, libcsupport/src/utimes.c: New files.
2010-06-302010-06-30 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-4/+3
PR 1472/cpukit * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/free.c, libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c, libcsupport/src/realloc.c, libcsupport/src/rtems_memalign.c: Remove malloc boundary code. It has not been used since before 4.6 and is bitrotted. * libcsupport/src/malloc_boundary.c: Removed.
2010-06-222010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett1-1/+2
* libcsupport/Makefile.am, libcsupport/include/rtems/libio_.h: Moved method to free a node from a define to an external method. * libcsupport/src/freenode.c: New file.
2010-06-102010-06-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+1
* libcsupport/src/mount-mktgt.c: New file. * libcsupport/Makefile.am: Reflect change above. * libcsupport/include/rtems/libio.h: Declare mount_and_make_target_path().
2010-06-082010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-1/+1
PR 1524/filesystem * libcsupport/src/rtems_mkdir.c: New file. * libcsupport/src/Makefile.am: Reflect change above. * libcsupport/include/rtems/libio.h: Added rtems_mkdir(). * libmisc/fsmount/fsmount.h, libmisc/fsmount/fsmount.c, libblock/src/bdpart-mount.c, libnetworking/rtems/mkrootfs.h, libnetworking/rtems/mkrootfs.c, libfs/src/pipe/pipe.c: Use rtems_mkdir(). Removed rtems_fsmount_create_mount_point() and rtems_rootfs_mkdir().
2010-06-072010-06-05 Bharath Suri <bharath.s.jois@gmail.com>Jennifer Averett1-0/+2
* libcsupport/include/rtems/libio_.h: Removed macros rtems_filesystem_is_separator rtems_filesystem_get_start_loc rtems_filesystem_get_sym_start_loc and added them as files under libcsupport/src/ * libcsupport/src/: Added new files libcsupport/src/sup_fs_get_start_loc.c libcsupport/src/sup_fs_get_sym_start_loc.c libcsupport/src/sup_fs_is_separator.c * libcsupport/Makefile.am: Changes to accommodate new files under libcsupport/src/
2010-05-312010-05-31 Chris Johns <chrisj@rtems.org>Chris Johns1-1/+1
* libcsupport/Makefile.am: Add mount-mgr.c. * libcsupport/src/mount-mgr.c: New. * include/rtems/fs.h: Added rtems_filesystem_location_mount. * libcsupport/include/rtems/libio.h, libcsupport/src/mount.c: New mount interface. It is similar to Linux. * libcsupport/include/rtems/libio_.h: Remove the init_fs_mount_table call. * libcsupport/src/base_fs.c: Remove init_fs_mount_table_call. Use the new mount call. Remove setting the root node in the global pathloc. Mount does this now. * libcsupport/src/privateenv.c: Remove the hack to set the root mount table entry in the environment. * libcsupport/src/unmount.cL Free the target string. * libblock/src/bdpart-mount.c: New mount API. * libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_init.c, libfs/src/dosfs/dosfs.h, libfs/src/dosfs/msdos.h, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/miniimfs_init.c, libfs/src/nfsclient/src/librtemsNfs.h, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs.h, libnetworking/lib/ftpfs.c, libnetworking/rtems/ftpfs.h, libnetworking/rtems/tftp.h: New mount_h API. * libfs/src/devfs/devfs_eval.c: Local include of extern ops. * libfs/src/nfsclient/src/nfs.c: New mount API. Removed the mount me call and fixed the initialisation to happen when mounting. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Remove mount filesystem files. * libmisc/fsmount/fsmount.c, libmisc/fsmount/fsmount.h: Updated to the new mount table values. * libmisc/shell/main_mount_ftp.c, libmisc/shell/main_mount_msdos.c, libmisc/shell/main_mount_rfs.c, libmisc/shell/main_mount_tftp.c: Removed. * libmisc/shell/main_mount.c: Use the new mount API. Also access the file system table for the file system types. * libnetworking/lib/tftpDriver.c: Updated to the new mount API. Fixed to allow mounting from any mount point. Also can now have more than file system mounted. * sapi/include/confdefs.h: Add file system configuration support.
2010-05-012010-05-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+2
* libcsupport/Makefile.am: Add libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c, libcsupport/src/funlockfile.c. * libcsupport/src/flockfile.c, libcsupport/src/ftrylockfile.c, libcsupport/src/funlockfile.c: New (stub functions).
2009-12-012009-12-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+2
* libcsupport/Makefile.am: Split no_posix.c so using sleep() does not pull in kill() stubs. * libcsupport/src/kill_noposix.c, libcsupport/src/sleep_noposix.c: New files. * libcsupport/src/no_posix.c: Removed.
2009-11-28Whitespace removal.Ralf Corsepius1-1/+1
2009-11-112009-11-11 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill1-1/+2
* libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/rtems_malloc.c: New function rtems_malloc().
2009-10-142009-10-14 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libcsupport/src/no_libc.c: Remove. * libcsupport/Makefile.am: Remove no_libc.c.
2009-10-14Remove libcsupport/src/unixlibc.c, libcsupport/src/unixlibc_io.c, ↵Ralf Corsepius1-4/+0
libcsupport/src/hosterr.c.
2009-10-082009-10-08 Chris Johns <chrisj@rtems.org>Chris Johns1-1/+1
* Makefile.am, preinstall.am: Added statvfs.h. * libcsupport/Makefile.am: Add statvfs.c. * libcsupport/include/sys/statvfs.h, libcsupport/src/statvfs.c: New. * libcsupport/include/rtems/libio.h: Add a file system handler for the statvfs call. * libfs/src/devfs/devfs_init.c, libfs/src/dosfs/msdos_init.c, libfs/src/imfs/imfs_init.c, libfs/src/nfsclient/src/nfs.c: Set the statvfs handler to NULL. * include/rtems/fs.h: Add a second node access field for the RFS file system to hold a directory offset while the existing field holds the inode number. This save a rescan of the directory when working with directories. * libblock/include/rtems/bdbuf.h: Added references and user fields to the buffer descriptor. * libblock/src/bdbuf.c: Added dynamic buffer support for different block sizes. Fixed a number of bugs. * libblock/src/blkdev.c: Release the disk device on an error. * libblock/src/diskdevs.c: Set the block size to the media block size during initialisation of the disk device. * libblock/src/flashdisk.c, libblock/src/nvdisk.c, libblock/src/ramdisk.c: Updated the drivers to handle variable block sizes. * libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Release any buffers when an error occurs. The FAT buffer layer hangs onto a single buffer while mounted. This should be fixed. * sapi/inline/rtems/chain.inl: Added rtems_chain_set_off_chain, rtems_chain_is_node_off_chain, and rtems_chain_previous. * score/inline/rtems/score/chain.inl: Added _Chain_Set_off_chain, and _Chain_Is_node_off_chain. * libmisc/shell/main_ln.c, libmisc/shell/main_mknod.c, libmisc/shell/mknod-pack_dev.c, libmisc/shell/mknod-pack_dev.h: New shell commands. * libmisc/Makefile.am, libmisc/shell/shellconfig.h: Added ln and mknod commands. * libmisc/shell/hexdump-display.c: Fixed the reopen bug which showed up as a free with a bad pointer. * libmisc/shell/main_mount.c: List the user adding file system when listing the available file systems to mount. * libmisc/shell/utils-cp.c: Remove the fixed static copy buffer and use a large dynamic buffer. * score/inline/rtems/score/address.inl, score/src/coremsgsubmit.c, score/src/objectallocate.c, score/src/objectfree.c: Remove warnings.
2009-09-152009-09-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
PR 1441/cpukit * libcsupport/src/tcgetprgrp.c: Remove. * libcsupport/src/tcgetpgrp.c: New (Renamed from libcsupport/src/tcgetprgrp.c). * libcsupport/Makefile.am: Add libcsupport/src/tcgetpgrp.c. Remove libcsupport/src/tcgetprgrp.c.
2009-09-062009-09-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libcsupport/src/issetugid.c: New (relocated from libnetworking). * libnetworking/rtems/issetugid.c: Remove. * libnetworking/Makefile.am: Reflect changes above. * libcsupport/Makefile.am: Reflect changes above.
2009-08-122009-08-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-2/+0
* libcsupport/Makefile.am: Obsolete coverage file. * libcsupport/src/end_profile.c: Removed.
2009-08-122009-08-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+0
* libcsupport/Makefile.am, libcsupport/preinstall.am, posix/Makefile.am, posix/preinstall.am, rtems/Makefile.am, rtems/preinstall.am, score/Makefile.am, score/preinstall.am: Revert modifications accidentally committed.
2009-08-092009-08-09 Xi Yang <hiyangxi@gmail.com>Joel Sherrill1-0/+2
* libcsupport/Makefile.am, posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am, score/Makefile.am, score/include/rtems/score/heap.h: HEAP_BLOCK_USED_OVERHEAD was under by one uint32_t. This showed up in the unlimited and heapwalk tests on ARM targets.
2009-08-06Revert.Joel Sherrill1-2/+0
2009-08-052009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-0/+2
* libcsupport/Makefile.am, rtems/Makefile.am, rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am, score/Makefile.am, score/preinstall.am, score/include/rtems/score/heap.h, score/inline/rtems/score/heap.inl: Remove inline version now that it is in a C file. * libcsupport/src/end_profile.c: New file.
2009-07-282009-07-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+2
* libcsupport/Makefile.am, libcsupport/preinstall.am, sapi/include/confdefs.h: Add configuration and basic device driver ver definition for frame buffer device. * libcsupport/include/rtems/framebuffer.h: New file.
2009-06-162009-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add putk(). * libcsupport/src/putk.c: New file.
2009-05-152009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+1
* libcsupport/Makefile.am, libcsupport/src/printk.c: Restructure to make analysis and coverage easier. Now 100% covered. * libcsupport/src/vprintk.c: New file.
2009-05-062009-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* libcsupport/Makefile.am: * libcsupport/src/isatty_r.c: New file.
2009-01-05Build writev.c/readv.c for NEWLIB.Ralf Corsepius1-1/+1
2008-12-23Move src/malloc_p.h to *_SOURCES.Ralf Corsepius1-2/+2
2008-12-052008-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-3/+3
* libcsupport/Makefile.am: Unconditionally compile files which now are in newlib.
2008-11-202008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-4/+13
* libcsupport/Makefile.am, posix/Makefile.am: Comment out including files which contain routines which are now provided by the newlib posix subdirectory. Document a few which come from the unix directory.
2008-11-122008-11-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* libcsupport/Makefile.am: Add getrusage(). * libcsupport/src/getrusage.c: New file.
2008-09-222008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+2
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add genchark() for polled debug input from the same device as printk(). * libcsupport/src/getchark.c: New file.
2008-09-172008-09-17 Miao Yan <yanmiaobest@gmail.com>Joel Sherrill1-2/+2
* Makefile.am, preinstall.am, libcsupport/Makefile.am, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio.h, libcsupport/src/base_fs.c, libcsupport/src/libio_init.c, libcsupport/src/newlibc_exit.c, libcsupport/src/newlibc_init.c, libcsupport/src/sync.c, libfs/Makefile.am, libfs/src/imfs/deviceio.c, sapi/include/confdefs.h: Merge GSOC project code to add simple device only filesystem (devfs), optionally completely drop out filesystem, and to clean up disabling newlib reentrancy support. This dropped 17K from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K code space. * libcsupport/src/__usrenv.c, libcsupport/src/newlibc_reent.c, libfs/src/devfs/devclose.c, libfs/src/devfs/devfs.h, libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devfs_init.c, libfs/src/devfs/devfs_mknod.c, libfs/src/devfs/devfs_node_type.c, libfs/src/devfs/devfs_show.c, libfs/src/devfs/devioctl.c, libfs/src/devfs/devopen.c, libfs/src/devfs/devread.c, libfs/src/devfs/devstat.c, libfs/src/devfs/devwrite.c, libfs/src/imfs/deviceerrno.c: New files. * libcsupport/src/newlibc.c: Removed.