summaryrefslogtreecommitdiff
path: root/src/lib/dlt_filetransfer.c
Commit message (Collapse)AuthorAgeFilesLines
* filetransfer: Return error if no free spacedevel/lib_filetransfer_failSaya Sugiura2021-11-251-1/+3
| | | | | | Closes #353 Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* header: Adapt to DLT_DISABLE_MACROSaya Sugiura2021-10-051-0/+1
| | | | | | | | | If dlt.h is included in external application, it needed to include -DDLT_DISABLE_MACRO to make ifdef switch work. This commit adds DLT_DISABLE_MACRO in dlt_user.h so that no additional definition is needed in application. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* file-transfer: Abort file transfer if get serial number failedAlexander Mohr2021-08-061-0/+6
| | | | | | | | | | | If a file is deleted while a file transfer is ongoing, the file transfer tries to seek through the whole file. This is due to the fact the the file handle is held open. getFileSerialNumber is already validating the file by using stat. If this call returns a negative value, we know that a stat to the file is not possible anymore, therefore further reading can be aborted.
* Apply uncrustify for src/daemon/* and src/lib/*Dinh Cong Toan2021-06-301-57/+86
| | | | | | Apply uncrustify for src/daemon/* and src/lib/* Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
* dlt message header brokenDinh Cong Toan2021-06-301-17/+17
| | | | | | | | | | | | | This commit is to revert the following commits: - de4a4234 - fb9ff078 - db9917b3 - e4467f0e - a567e01d Those commits are from improvement but they seem to break the dlt message header in some cases. Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
* other: fix remaining conversion warningsDinh Cong Toan2021-01-061-12/+12
| | | | | | | | | | | - Converting datatype to the correct one. - As macro do not perform type-checking before, so these functions used it with different datatype could create a lot of conversion warnings. For this reason, these warnings could be consider as normal information and will not be fixed. Signed-off-by: Dinh Cong Toan <toan.dinhcong@vn.bosch.com>
* library: fix conversion warningsDinh Cong Toan(RBVH/ECM12)2021-01-061-7/+7
| | | | | | | | | | | | - Change the data type of variable 'size' in DltContextData struct (dlt_user.h.in). Variable 'size' was used repeated with function 'sizeof()' many time, so change type to 'size_t' can avoid a lot of warnings. - Adding temporary variable to calculate the datasize header (define in dlt_common.h) in 'dlt_common.c' file. Signed-off-by: Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>
* dlt-system: Call tzset before localtime_r (#165)Saya Sugiura2019-09-231-0/+1
| | | | | | Since localtime() was calling tzset() internally, it should be used before localtime_r(). Refer to man page of localtime_r() for detail. Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* doxygen: Remove licenceSaya Sugiura2019-07-191-2/+0
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* doxygen: Get rid of warningsSaya Sugiura2019-07-191-2/+6
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* Fix alerts from lgtmSaya Sugiura2019-06-191-8/+13
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* POSIX: Replace usleep with nanosleepSaya Sugiura2019-05-061-1/+7
| | | | Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
* Code beautification using uncrustifyChristoph Lipka2018-12-211-261/+294
| | | | Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
* Fix: File name is broken when file is transferred on 64 bit OS.Yusuke Sato2016-09-231-18/+18
| | | | | | | | When file transfer feature of dlt-system is used on the 64 bit OS, file name is overwritten at the unique name creation phase. File serial number should be maximum 10-digit decimal number. Signed-off-by: Yusuke Sato <yusuke-sato@apn.alpine.co.jp> Change-Id: I18fac363a103b6806ed9eb003ebbb305af7e7f58
* DLT daemon improvement - dlt_init()-checkLutz Helwing2015-10-071-216/+216
| | | | | | | | | | DLT daemon improvement - parameter value range check Adapt unit tests to check for enum return values Changed C version to gnu99 and C++ version to gnu++0c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Removed all trailing whitespacesLutz Helwing2015-07-211-28/+28
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Fixed license headers and copyright doxygen commentsLutz Helwing2015-06-171-2/+2
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Updated license headers to latest GENIVI license policy. Fixed further LRT ↵Lutz Helwing2015-06-171-12/+15
| | | | | | Scan findings. Renamed and cleanup further files. Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Unified all line endings to UNIX style.Jens Bocklage2015-06-171-1/+1
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Fix file transfer bug.Stefan Seefeld2013-10-181-1/+1
| | | | | Signed-off-by: Stefan Seefeld <stefan@codesourcery.com> Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* coverity: add a check variable for get size functionSimon Brandner2013-07-191-4/+34
| | | | | | | | | | | Conflicts: src/lib/dlt_filetransfer.c src/system/dlt-system-filetransfer.c fixed merge problem for getFileSerialNumber Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Removed possible recursive call of dlt_user_log_file_errorMessage. Added ↵Simon Brandner2013-07-191-50/+118
| | | | | | | | | | some return value checks for system calls (stat,fseek) and error logging in those cases. Conflicts: src/lib/dlt_filetransfer.c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* some coverity fixesSimon Brandner2013-07-191-30/+69
| | | | | | fixed some merge problems Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* added creation date and a simple hash on the file name for to improve the ↵Simon Brandner2013-07-191-0/+26
| | | | | | uniqueness of getFileSerialNumber Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* [GDLT-67] dlt-system v2.0, check full commit message for rebase detailsLassi Marttala2012-06-131-0/+34
| | | | | | | | | | | | | | | [GDLT-67] Prepare build system. [GDLT-67] Config parsing, structure for thread handling [GDLT-67] Finalize configuration reading. [GDLT-67] Reimplementation of syslog, logfile, logprocess, shell. [GDLT-67] First complete version of the new dlt-system. [GDLT-67] Fixed header comments. authors, file names. [GDLT-67] Final touches. [GDLT-67] Fixed a problem with thread creation in optimized release binary. [GDLT-67] New configuration file. [GDLT-67] Added dlt debug output Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Added important SEM_FREE in the daemon and closing fd in the filetransferChristian Muck2012-05-301-0/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GDLT-2: Change to gzip wrapper format. Change file signature creation toLassi Marttala2012-04-041-1/+5
| | | | | | | account for file size, as inode number maybe duplicate when deleting and creating new files. Signed-off-by: Christian Muck <christian.muck@bmw.de>
* Corrected email of Alexander WenzelChristian Muck2012-03-271-1/+1
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* GDLT-38, Update <FILE> fields in licenses.Lassi Marttala2012-03-261-1/+1
|
* GDLT-38, Update licenses to all the sources.Lassi Marttala2012-03-261-31/+16
|
* Added missing license header to two filesv2.5.1Christian Muck2012-03-221-0/+67
| | | | Signed-off-by: Christian Muck <christian.muck@bmw.de>
* [GENDLT-16] Create variable in dlt-system.conf to configure the timeout of ↵Christian Muck2012-02-081-73/+65
| | | | the filetransfer fixed.
* Updated filetransfer documentation, lib and test applicationChristian Muck2012-01-131-1/+9
|
* Some little improvementsChristian Muck2012-01-131-26/+7
|
* Reverted old FIFO functions. Still SHM enabled by default.Alexander Wenzel2011-11-101-2/+2
|
* Fixed filetransfer to use shm status for flow control.Alexander Wenzel2011-09-291-9/+19
| | | | Added new function to dlt user library.
* Add Filetransfer feature to DLT user library.Alexander Wenzel2011-09-291-0/+406
Added missing offline trace files.