Thread (132 messages) flat view 132 messages, 13 authors, 2021-04-29

Re: [dpdk-dev] [PATCH v2 7/7] eal/windows: do not expose POSIX symbols

From: Dmitry Kozlyuk <hidden>
Date: 2021-02-21 10:24:16

On Sun, 21 Feb 2021 08:59:50 +0000, Tal Shnaiderman wrote:
[...]
quoted
-#ifndef close
-#define close _close
-#endif  
mlx5 uses close() in mlx5.c and is broken after this change above, BTW why not add an rte_close instead of local definition?
I'm reluctant to add file manipulation API to EAL. It would be replication of
POSIX with "rte_" prefix, while standard C has everything needed to deal with
files (and IOCTLs are platform-specific code anyway). I think libraries and
PMDs striving to be cross-platform should move to using FILE* some day. For
now, local definitions keep them running without any risk of breakage.

Thanks for all your comments, it's weird I didn't hit the failures locally.
Will fix in v3.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help