Re: [dpdk-dev] [RFC PATCH 5/9] eal: introduce internal wrappers for file operations

2020-03-30 Thread Jerin Jacob
On Mon, Mar 30, 2020 at 9:41 AM Dmitry Kozlyuk wrote: > > EAL common code uses file locking and truncation. Introduce > OS-independent wrapeprs in order to support both POSIX and Windows: > > * eal_file_lock: lock or unlock an open file. > * eal_file_truncate: enforce a given size for an open file

[dpdk-dev] [RFC PATCH 5/9] eal: introduce internal wrappers for file operations

2020-03-29 Thread Dmitry Kozlyuk
EAL common code uses file locking and truncation. Introduce OS-independent wrapeprs in order to support both POSIX and Windows: * eal_file_lock: lock or unlock an open file. * eal_file_truncate: enforce a given size for an open file. Wrappers follow POSIX semantics, but interface is not POSIX, so