summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/file_source_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* modules: include boost/format where usedMarcus Müller2021-09-071-0/+1
| | | | | | | | | | | | | | | | | | | in the classic modules: audio blocks digital dtv fec fft filter qtgui trellis/fsm uhd video-sdl vocoder/freedv_rx Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-191-1/+0
| | | | | | | | | | | | | | | | | | | | run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* File Source: handle EOF for non-seekable filesJeff Long2021-01-151-6/+15
| | | | | | Based on original PR by esqt. Signed-off-by: Jeff Long <willcode4@gmail.com>
* gr-blocks: Fix file source block large file handling for Windows.Ron Economos2020-12-181-2/+2
|
* blocks: use posix_fadvise to tell OS about sequential access and prefetchMarcus Müller2020-10-281-1/+28
|
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-2/+2
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* blocks/file_source: Check for fseek() failingThomas Habets2020-01-201-3/+9
| | | | | | Found by coverity. CID: * 1395913 * 1395940
* clang-format: Ordering all the includesMarcus Müller2019-08-091-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-159/+163
|
* gr-blocks: added fstat macros for msvcgnieboer2019-06-061-1/+4
|
* blocks: Modify File Source block to work with named pipes and devices.Ron Economos2019-03-311-33/+65
| | | | | The block uses fseek and ftell, which don't apply to named pipes and character/block devices.
* blocks: Fix file_source offset/length to properly access large files.Ron Economos2019-02-141-38/+20
|
* file_source: add optional offset (in items) and len (in items)Jeff Long2018-02-081-72/+128
| | | | | | | - Adds unit tests, and splits existing unit tests into different files: qa_file_source.py - tests file_source_f qa_file_sink.py - tests file_sink_f qa_file_descriptor_source_sink.py - tests file_descriptor_*_f
* Merge branch 'maint'Johnathan Corgan2017-07-201-0/+10
|\
| * gr-blocks: add warning if file will not be fully consumed with the passed ↵Kevin Gentile2017-07-191-0/+10
| | | | | | | | output type.
* | set_begin_tag now takes pmt::pmt instead of boolRuben Undheim2017-05-191-5/+5
| |
* | blocks: file_source ("file_begin" stream tag)Ruben Undheim2017-05-191-1/+24
|/ | | | | | - Add a configurable "file_begin" stream tag which is especially useful in repeat mode. - Added unit tests for new functionality
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-1/+1
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* call do_update after calling open in the file source constructor,cottrema2014-06-261-0/+1
| | | | | otherwise if seek is called before work, a segmentation fault will occur as d_fp is null
* blocks: fix for ~file_source crash, Bug #550Tim O'Shea2013-06-051-1/+4
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-5/+5
|
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-011-5/+5
| | | | PMTs are handled slightly different and are installed into their own module and include dir.
* blocks: added missing include for gruel threadJosh Blum2013-02-171-0/+1
|
* blocks: fix use of bare boost::mutex::scoped_lockJohnathan Corgan2013-02-071-4/+4
| | | | | gr_file_source gr::blocks::file_source
* blocks: apply changes to file source in core to one in gr-blocks.Tom Rondeau2012-12-111-23/+75
|
* blocks: added gr::blocks::file_sourceJohnathan Corgan2012-09-051-0/+136