[swift-corelibs-dev] NSHost.current()
Hi All, I am trying to implement the NSHost.current() .The c function getifaddrs() is invisible to NSHost and hence we cannot use that . The same implementation on OSx gives the following the output : Basically it gives all the details pertaining to the current host. So I tried to get the details using getaddrinfo(“127.0.0.1”,..) / gethostbyname(“localhost”) and am only able to get localhost /127.0.0.1 from the address list . Please let me know if there are any options to getifaddrs() Thanks & Regards, Sai Hema ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] NSHost.current()
Hi All, I am trying to implement the NSHost.current() .The c function getifaddrs() is invisible to NSHost and hence we cannot use that . The same implementation on OSx gives the following the output : Basically it gives all the details pertaining to the current host. So I tried to get the details using getaddrinfo(“127.0.0.1”,..) / gethostbyname(“localhost”) and am only able to get localhost /127.0.0.1 from the address list . Please let me know if there are any options to getifaddrs() Thanks & Regards, Sai Hema ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Query on NSLog
Hi All, Currently NSLog has only one internal function NSLog() which can be used only by Foundation classes.Can this be made available as a public API ? Thanks & Regards, Sai Hema,Java L3 Support ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Query on Bundle.unload()
Hi All, I am trying to implement the unload() method in Bundle.The API document says that “unload dynamically unloads the executable which is supported from OS X v10.5 and later)”. I am wondering whether its applicable on linux ? If its applicable can CFBundleUnloadExecutable be used to unload plugin or framework or binary ? Thanks & Regards -Sai Hema ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Query on NSKeyedArchiver
Hi Tony, From your comments on Pull Request #574 I understand that we cannot archive/un-archive non-NS objects using NsKeyedArchiver & NSKeyedUnarchiver.I s my understanding correct ..? Does this means that archiving and un-archiving of swift types is not supported on Linux ? -Sai Hema ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Memory growth regression in NSMutableData
Hi All, I could see a memory leak when running a simple loop that creates NSMutableData objects and appends to them with swift-3.1-DEVELOPMENT-SNAPSHOT-2017-02-14-a-ubuntu16.10>I have not seen this leak with swift-3.0.2. Following is the Leak Summary from Valgrind : With Swift-3.0.2==18606== LEAK SUMMARY:==18606== definitely lost: 16 bytes in 1 blocks==18606== indirectly lost: 20 bytes in 1 blocks==18606== possibly lost: 0 bytes in 0 blocks==18606== still reachable: 74,893 bytes in 10 blocks==18606== suppressed: 0 bytes in 0 blocks==18606== Rerun with --leak-check=full to see details of leaked memory Swift 3.1 18411== LEAK SUMMARY:==18411== definitely lost: 247,463,936 bytes in 59 blocks==18411== indirectly lost: 0 bytes in 0 blocks==18411== possibly lost: 171,966,640 bytes in 42 blocks==18411== still reachable: 74,885 bytes in 10 blocks==18411== suppressed: 0 bytes in 0 blocks https://bugs.swift.org/browse/SR-3966 is the corresponding bug report. Have anyone observed the same ? -SaiHema ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
[swift-corelibs-dev] Unable to build swift-corelibs-foundation in XCode 8.3.2
Hi All, Latest Foundation code with XCode 8.3.2 does not compile successfully for me. Is anyone else also seeing this ? -Sai Hema ___ swift-corelibs-dev mailing list swift-corelibs-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-corelibs-dev