Re: [swift-corelibs-dev] Wrapping up Swift 3 for swift-corelibs

2016-07-28 Thread Dan Stenmark via swift-corelibs-dev
> 1. Integrate swift-corelibs-dispatch into Foundation. Are there any lingering items in swift-corelibs-dispatch that are still pending full implementations on either Darwin or Linux? Dan ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org

Re: [swift-corelibs-dev] NSTask and NSFileHandle implementation

2016-04-16 Thread Dan Stenmark via swift-corelibs-dev
While we’re on the subject, I’ve been out of the loop for a little while: how’s the Linux-side implementation of dispatch sources looking these days? In particular, I’m interested in the status of DISPATCH_SOURCE_TYPE_READ and DISPATCH_SOURCE_TYPE_PROC. Right now, NSTask is using Good Ol’ CFRu

Re: [swift-corelibs-dev] NSTask and NSFileHandle implementation

2016-04-16 Thread Dan Stenmark via swift-corelibs-dev
Hey Alexander, I supplied most of the initial implementation of NSTask, but was holding off on IO redirection until someone tackled NSFileHandle. I can’t say if anyone else on this list is working on this right now, but if not and if you’re really interested in finishing NSFileHandle, I would

[swift-corelibs-dev] Defining _GNU_SOURCE for module-map-included headers

2015-12-20 Thread Dan Stenmark via swift-corelibs-dev
I'm trying to invoke Linux's unshare() system call from Swift, but without much success. From C, it requires _GNU_SOURCE to be #define'd before the #include . The Glibc module map does indeed include sched.h, so the lack of _GNU_SOURCE appears to be the likely culprit. What's the appropriate

Re: [swift-corelibs-dev] Recommended posix_spawnattr_t for NSTask's implementation

2015-12-18 Thread Dan Stenmark via swift-corelibs-dev
ind of awful. I'm not up >> to date on what the best approach to use for this on Linux would be; it >> sounds like clone() can do it, but I don't know if that's exposed at the >> posix_spawn level at all. >> >> David >> >>> On Dec 18,

[swift-corelibs-dev] Recommended posix_spawnattr_t for NSTask's implementation

2015-12-18 Thread Dan Stenmark via swift-corelibs-dev
I hope to take a crack at implementing some of NSTask this weekend. What are the recommended posix_spawnattr_t flags that should be set? Do we also want to take the opportunity to expose the ability to override some of these flags (like POSIX_SPAWN_SETPGROUP) or do we want to avoid tying this

Re: [swift-corelibs-dev] Proposal: Make NSTask's standardInput/standardOutput/standardError properties type-safe

2015-12-17 Thread Dan Stenmark via swift-corelibs-dev
NSTask, it sure seems like we > only expect either a file handle or pipe. I’m not sure if we would ever add > another. > > - Tony > >> On Dec 17, 2015, at 11:34 AM, Dan Stenmark via swift-corelibs-dev >> mailto:swift-corelibs-dev@swift.org>> wrote: >>

[swift-corelibs-dev] Proposal: Make NSTask's standardInput/standardOutput/standardError properties type-safe

2015-12-17 Thread Dan Stenmark via swift-corelibs-dev
This is my first proposal to swift-corelibs, so I’m not sure how much flexibility we have in terms of deviating from the darwin’s original Foundation definitions. That said, it’s always seemed a little screwy to me that NSTask's standardInput/standardOutput/standardError properties sacrifice an