<div dir="ltr">Well, ideally we should strive to have any system calls get moved into the Host layer anyway, and so that problem would solve itself by by just getting rid of checks to LLDB_DISABLE_POSIX. So maybe I'll revisit this question after I can get rid of more of these uses of LLDB_DISABLE_POSIX and put more stuff into Host layer.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 2:36 PM, <span dir="ltr"><<a href="mailto:jingham@apple.com" target="_blank">jingham@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>From a quick survey it seems as if most of the uses of LLDB_DISABLE_POSIX are for turning off POSIX specific features, not turning on Windows specific ones. LLDB_DISABLE_POSIX seems more appropriate for this that !_WIN32 or whatever. For instance, if we wanted to port lldb to OpenVMS, we could just keep the defines as they were and add LLDB_DISABLE_POSIX to the OpenVMS makefile (though I'm sure it has a POSIX layer of some level of fidelity, but using that or the native VMS calls would be up to the person who was doing the port...)<br>
<br>
It does seem like we are using POSIX to mean UNIX, so that some UNIX'es that aren't fully POSIX compliant succeed the checks, and then need #ifdef FREEBSD or whatever. Not sure it's worth cleaning this up, however.<br>
<br>
Jim<br>
<div class=""><br>
<br>
> On Aug 8, 2014, at 5:43 PM, Zachary Turner <<a href="mailto:zturner@google.com">zturner@google.com</a>> wrote:<br>
><br>
> Frequently I see checks against LLDB_DISABLE_POSIX, and other times i see specific OS checks. It seems to me like #if LLDB_DISABLE_POSIX is equivalent to #if defined(_WIN32). If this is correct, any objection to me marking LLDB_DISABLE_POSIX as deprecated and slowly changing conditionals over to #if defined(_WIN32) instead? It's easier for me to reason about and I don't have to spend time thinking about what other platforms might be affected that way.<br>
</div>> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div><br></div>