summaryrefslogtreecommitdiff
path: root/cpukit/libfs/src/pipe (follow)
AgeCommit message (Collapse)Author
2020-01-03cpukit/libfs: remove more dead code from pipe/fifo.cGedare Bloom
Dead code identified by Coverity (CID 1456674). The value of ret at line 358 is always 0.
2020-01-03cpukit/libfs: remove dead code from pipe/fifo.cGedare Bloom
Dead code identified by Coverity (CID 1456678). The value of ret at line 293 is always 0.
2019-12-11pipe: Use condition variablesSebastian Huber
Use self-contained condition variables instead of Classic API barriers. This simplifies the implementation and configuration. Update #3840.
2019-03-25libfs/src/pipe/fifo.c: Fix warning.Joel Sherrill
2019-03-14fifo.c: Eliminate logically dead code (Coverity 1437635)Joel Sherrill
2018-11-22pipe/fifo.c: Remove dead code (CID 1437649)Joel Sherrill
Closes #3581.
2018-10-04Remove superfluous pipe_create()Sebastian Huber
2018-02-02pipe: Use self-contained mutexSebastian Huber
Update #2843.
2018-01-25Remove make preinstallChris Johns
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.
2017-12-13pipe: Include <rtems/pipe.h>Sebastian Huber
Prepare for header file move to common include directory. Update #3254.
2017-09-15libio: Add rtems_libio_iop_is_no_delay()Sebastian Huber
Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags()Sebastian Huber
Update #3132.
2017-09-15libio: Add iop set/clear flagsSebastian Huber
Update #3132.
2017-06-07Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber
Update #2833.
2016-06-06pipe: Use proper semaphore attr for mutexSebastian Huber
Close #2728.
2015-04-23score: Delete Thread_queue_Control::stateSebastian Huber
Use a parameter for _Thread_queue_Enqueue() instead to reduce memory usage.
2014-11-21pipe/fifo.c: NULL dereference flagged by Coverity ID 1063889Joel Sherrill
It does not appear that this is possible so adding an assert.
2014-11-21Delete or rename MIN/MAX macros and definesSebastian Huber
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns
2013-12-10PR2159: Have the FIFO driver read follow POSIX standard.Chris Johns
The read call was only returning once the requested buffer was full. The change returns any available data.
2013-08-08PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber
2013-07-26score: Create states implementation headerSebastian Huber
Move implementation specific parts of states.h and states.inl into new header file statesimpl.h. The states.h contains now only the application visible API.
2013-07-23Include missing <string.h>Sebastian Huber
2013-07-22rtems: Create barrier implementation headerSebastian Huber
Move implementation specific parts of barrier.h and barrier.inl into new header file barrierimpl.h. The barrier.h contains now only the application visible API.
2013-06-07score: Add and use _Objects_Put()Sebastian Huber
Add and use _Objects_Put_without_thread_dispatch(). These two functions pair with the _Objects_Get() function. This helps to introduce object specific SMP locks to avoid lock contention.
2013-01-10cpukit: Doxygen group fixes and many warnings addressedJoel Sherrill
The output of the modules.html is much improved. Most filesystem and POSIX API related groups are properly nested. Some formatting issues were addressed as were multiple inconsistencies.
2013-01-08libfs: Doxygen Clean Up Task #1Alex Ivanov
http://www.google-melange.com/gci/task/view/google/gci2012/8120204 Patch committed with fixes for whitespace issues.
2012-12-28Header File Doxygen Enhancement Task #2Mathew Kallada
2012-12-18libfs: Doxygen Enhancement Task #2Alex Ivanov
http://www.google-melange.com/gci/task/view/google/gci2012/8032207
2012-05-15Filesystem: Use ioctl_command_tSebastian Huber
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-05-04Filesystem: Remove pipe_lseek()Sebastian Huber
2011-12-062011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius
* libfs/src/pipe/pipe.c: Include <rtems/pipe.h> (Missing prototype).
2011-10-182011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius
* libfs/src/pipe/fifo.c: Conditionally use var "sc".
2011-06-242011-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill
* include/rtems/bspIo.h, include/rtems/concat.h, include/rtems/endian.h, include/rtems/fs.h, include/rtems/irq.h, include/rtems/pci.h, include/rtems/userenv.h, libblock/include/rtems/flashdisk.h, libblock/include/rtems/nvdisk-sram.h, libblock/include/rtems/nvdisk.h, libcsupport/include/clockdrv.h, libcsupport/include/console.h, libcsupport/include/iosupp.h, libcsupport/include/spurious.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/error.h, libcsupport/include/rtems/framebuffer.h, libcsupport/include/rtems/gxx_wrappers.h, libcsupport/include/rtems/libcsupport.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/malloc.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/sys/statvfs.h, libcsupport/include/sys/termios.h, libcsupport/include/sys/utsname.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libfs/src/imfs/imfs.h, libfs/src/pipe/pipe.h, libmisc/capture/capture-cli.h, libmisc/capture/capture.h, libmisc/cpuuse/cpuuse.h, libmisc/devnull/devnull.h, libmisc/devnull/devzero.h, libmisc/dumpbuf/dumpbuf.h, libmisc/fb/fb.h, libmisc/fb/mw_uid.h, libmisc/mouse/mouse_parser.h, libmisc/shell/shellconfig.h, libmisc/stringto/stringto.h, libmisc/untar/untar.h, libnetworking/memory.h, posix/include/aio.h, posix/include/mqueue.h, posix/include/semaphore.h, posix/include/rtems/posix/aio_misc.h, posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/config.h, posix/include/rtems/posix/key.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/posixapi.h, posix/include/rtems/posix/priority.h, posix/include/rtems/posix/psignal.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/ptimer.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/semaphore.h, posix/include/rtems/posix/sigset.h, posix/include/rtems/posix/spinlock.h, posix/include/rtems/posix/threadsup.h, posix/include/rtems/posix/time.h, posix/include/rtems/posix/timer.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/priority.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/spinlock.inl, posix/inline/rtems/posix/timer.inl, rtems/mainpage.h, rtems/include/rtems/rtems/barrier.h, rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/barrier.inl, rtems/inline/rtems/rtems/timer.inl, rtems/src/semtranslatereturncode.c, sapi/include/rtems/config.h, sapi/include/rtems/fatal.h, sapi/include/rtems/mptables.h, score/include/rtems/score/object.h, score/include/rtems/score/priority.h, score/inline/rtems/score/object.inl, score/inline/rtems/score/priority.inl: Add @file Doxygen directives and descriptions to files which originated with RTEMS. This improves the file list page generated by Doxygen.
2011-04-152011-04-15 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
* libfs/src/pipe/fifo.c: Fixed integer type.
2010-08-28Just comment out line.Joel Sherrill
2010-08-282010-08-28 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill
* libfs/src/pipe/pipe.c: Remove unreachable line flagged by Coverity as dead code.
2010-08-102010-08-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill
PR 1660/filesystem * libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Changed int pipe_release to void pipe_release. * libfs/src/imfs/imfs_fifo.c: Corresponding change to IMFS_fifo_close since pipe_release does not return any error. * libfs/src/imfs/imfs_initsupp.c: Changes to improve IMFS_determine_bytes_per_block
2010-08-022010-08-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill
* libfs/src/imfs/imfs_creat.c, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_mknod.c, libfs/src/imfs/imfs_readlink.c, libfs/src/pipe/fifo.c: Clean up for coverage improvements and formatting.
2010-07-092010-07-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill
* libfs/src/pipe/pipe.c: Check for err before setting the errno and returning -1 to the caller.
2010-06-242010-06-24 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill
PR 1542/filesystem PR 1585/filesystem * libfs/src/pipe/fifo.c: pipe_control_t was not deallocated if fifo_open() was attempted with (O_WRONLY|O_NONBLOCK). Mutex was locked too many times on this path and we needed an unlock.
2010-06-232010-06-23 Chris Johns <chrisj@rtems.org>Chris Johns
PR 1577/filesystem * libfs/src/pipe/fifo.c: Fixed the error codes returned on open.
2010-06-142010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius
* libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.h: Eliminate "uint".
2010-06-122010-06-12 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill
* libfs/src/pipe/fifo.c: Remove unused variable to fix warning. * libnetworking/rtems/mkrootfs.c: Add include to fix warning. * rtems/src/tasksetpriority.c: Fix spacing.
2010-06-082010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
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-082010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber
* libfs/src/imfs/fifoimfs_init.c: New file. * libfs/Makefile.am: Reflect change above. * libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_eval.c, libfs/src/imfs/imfs_init.c, libfs/src/imfs/imfs_initsupp.c, libfs/src/imfs/miniimfs_init.c, libfs/src/pipe/fifo.c, libfs/src/pipe/pipe.c, libfs/src/pipe/pipe.h: Pipe support is now link-time optional. * sapi/include/confdefs.h: Reflect changes above.
2010-03-28Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius
2009-12-282009-12-28 Shrikant Gaikwad <n3oo3n@gmail.com>Joel Sherrill
* cpukit/libfs/src/pipe/pipe.c Restructured code to remove the goto statements.
2009-12-172009-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill
* libcsupport/src/termios.c, libfs/src/dosfs/msdos_format.c, libfs/src/nfsclient/src/nfs.c, libfs/src/pipe/fifo.c, libnetworking/lib/rtems_bsdnet_ntp.c, libnetworking/lib/tftpDriver.c, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_select.c: Eliminate uses of deprecated rtems_clock_get() and replace with properly typed routine.