summaryrefslogtreecommitdiffstats
path: root/filedescriptor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* add .clang-formatPatrick Venture2018-11-021-9/+9
| | | | | | | Add .clang-format for automatic style. Change-Id: I6d240009370179b5b8f1f646b0476a059ec6aa85 Signed-off-by: Patrick Venture <venture@google.com>
* s/copyright char/(C)/g to make compiler happyPatrick Venture2018-11-021-1/+1
| | | | | | | Compiler complaining about the copyright characters. Change-Id: I6730a50a668899a33e9dfcc4accb67ee207a3f08 Signed-off-by: Patrick Venture <venture@google.com>
* Use all phosphor-dbus-interfaces errorsMatt Spinler2017-10-041-5/+10
| | | | | | | | | | Remove the local error definitions and use the ones in phosphor-dbus-interfaces instead as the ones there suit our purposes and it simplifies this repository to do so. Change-Id: I18428c496914153270ecb181e7193acd0e386e97 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Replace error strings with logging errors in device operationsDhruvaraj Subhashchandran2017-05-151-5/+7
| | | | | Change-Id: I0fc1c23e51a0233c18775ee712132dba7e4c7d7e Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
* Have the Target class manage the file descriptorMatt Spinler2017-03-141-1/+1
| | | | | | | | The sysfs file descriptor will now stay open from first use until the Target class is destroyed. Change-Id: Ib9803a527115cc75ecc9a5351d1e748ccd54a993 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add FileDescriptor classMatt Spinler2017-03-141-0/+49
A simple class to wrap a file descriptor so it can be opened on construction and closed on destruction. Change-Id: I16d481fdc91e99720acd9cabff3a3a4690d8a573 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
OpenPOWER on IntegriCloud