Commit Graph

21 Commits

Author SHA1 Message Date
Per Noergaard Christensen 38038f6a48 lib: use O_CLOEXEC flag when opening EtherCAT master device
This flag specifies that the file descriptor should be closed when an
exec function is invoked. When a file descriptor is allocated (as with
open or dup), O_CLOEXEC bit is initially cleared on the new file
descriptor, meaning that descriptor will survive into the new program
after exec. Setting O_CLOEXEC avoid this survival of the desciptor in
the new program. And setting it at open() time is the only race-free
way to avoid accidentally leaking the fd via other threads that
concurrently do fork()+exec() (or similar, e.g. posix_spawn).
2022-08-30 14:39:32 +02:00
Florian Pose 225af9f787 Applied 0008-read-reference-slave-clock-64bit-time.patch 2022-06-23 10:45:16 +02:00
Florian Pose 6cac716122 Applied 0007-replace-fprintf-calls-with-EC_PRINT_ERR.patch 2022-06-23 10:31:41 +02:00
Florian Pose e6f11d9da0 Added missing const specifier to ecrt_read_real() / ecrt_read_lreal(). 2021-08-24 17:00:52 +02:00
Florian Pose 5031834fde Added floating-point access functions and macros for user-space. 2021-08-24 17:00:09 +02:00
Florian Pose 99418519bd Reverted default branch to stable-1.5. 2014-11-03 15:20:05 +01:00
Florian Pose 605d25eec9 Replaced all mangled hg keywords. 2012-09-06 14:17:21 +02:00
Florian Pose 819b17377b Removed whitespace. 2012-07-09 10:29:15 +02:00
Florian Pose f739694670 Improved compiling on 2.6.34 (thanks to Malcolm Lewis). 2010-10-25 16:45:33 +02:00
Florian Pose f1567fbece Free all userspace library objects on releasing master. 2010-09-16 08:35:21 +02:00
Florian Pose f41dadb84f Multi-master support for command-line tool. The --master option supports
ranges like '1-3,6,7-9'. The ioctl() interface version is checked.
2010-02-24 16:27:11 +01:00
Florian Pose fbb6b62eaf Separated master requesting into open and reserve for userspace library.
(thanks to Martin Troxler).
2009-07-10 10:07:48 +00:00
Florian Pose 87bd9ded3e Reverted accidential checkin. 2009-07-10 09:38:07 +00:00
Florian Pose 36ff1cb8fa TODO. 2009-07-10 09:36:50 +00:00
Florian Pose 12c12b1bab Improved and added license headers. 2009-02-24 12:51:39 +00:00
Florian Pose 5ca3d24337 merge -c1603 branches/stable-1.4: Changed licence headers to avoid conflicts with the GPL; restricted licence to GPLv2 only. 2009-01-26 11:16:10 +00:00
Florian Pose 7cdbbc60fe Improved LGPL headers. 2008-10-21 11:31:07 +00:00
Florian Pose c2547728d1 Added LGPL licence headers to userspace library. 2008-10-14 14:01:09 +00:00
Florian Pose 4e6e86c808 Memory-mapped process data. 2008-10-10 08:34:15 +00:00
Florian Pose cd4bb0a38b No kernel handles in userspace; Domain creation. 2008-10-02 10:19:02 +00:00
Florian Pose a4ea4a4590 First version of userspace library with requesting/releasing. 2008-10-01 14:42:28 +00:00