mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] update for 'inout' adjustment (SE-0031)
This commit is contained in:
@@ -17,7 +17,7 @@ import Darwin
|
||||
import Glibc
|
||||
#endif
|
||||
|
||||
public func _stdlib_mkstemps(inout template: String, _ suffixlen: CInt) -> CInt {
|
||||
public func _stdlib_mkstemps(template: inout String, _ suffixlen: CInt) -> CInt {
|
||||
var utf8 = template.nulTerminatedUTF8
|
||||
let (fd, fileName) = utf8.withUnsafeMutableBufferPointer {
|
||||
(utf8) -> (CInt, String) in
|
||||
@@ -78,8 +78,8 @@ public struct _stdlib_fd_set {
|
||||
}
|
||||
|
||||
public func _stdlib_select(
|
||||
inout readfds: _stdlib_fd_set, inout _ writefds: _stdlib_fd_set,
|
||||
inout _ errorfds: _stdlib_fd_set, _ timeout: UnsafeMutablePointer<timeval>
|
||||
readfds: inout _stdlib_fd_set, _ writefds: inout _stdlib_fd_set,
|
||||
_ errorfds: inout _stdlib_fd_set, _ timeout: UnsafeMutablePointer<timeval>
|
||||
) -> CInt {
|
||||
return readfds._data.withUnsafeMutableBufferPointer {
|
||||
(readfds) in
|
||||
|
||||
Reference in New Issue
Block a user