@@ -8,28 +8,28 @@ extension BSD {
8
8
/// A Mach port representing a file descriptor.
9
9
public class Fileport : MachCore . Mach . Port {
10
10
11
- // Initializes a fileport from a file descriptor.
11
+ /// Initializes a fileport from a file descriptor.
12
12
@available ( macOS 11 . 0 , * )
13
13
public convenience init ( fd: FileDescriptor ) throws {
14
14
try self . init ( fd: Int32 ( fd. rawValue) )
15
15
}
16
16
17
- // Initializes a fileport from a file descriptor.
17
+ /// Initializes a fileport from a file descriptor.
18
18
public convenience init ( fd: Int32 ) throws {
19
19
var portName = mach_port_name_t ( )
20
20
try BSD . syscall ( fileport_makeport ( fd, & portName) )
21
21
self . init ( named: portName)
22
22
}
23
23
24
- // Makes a file descriptor from a fileport.
25
- // - Note: This function will create a new file descriptor each time it is called.
24
+ /// Makes a file descriptor from a fileport.
25
+ /// - Note: This function will create a new file descriptor each time it is called.
26
26
@available ( macOS 11 . 0 , * )
27
27
func makeFD( ) throws -> FileDescriptor {
28
28
return FileDescriptor ( rawValue: try BSD . syscall ( fileport_makefd ( self . name) ) )
29
29
}
30
30
31
- // Makes a file descriptor from a fileport.
32
- // - Note: This function will create a new file descriptor each time it is called.
31
+ /// Makes a file descriptor from a fileport.
32
+ /// - Note: This function will create a new file descriptor each time it is called.
33
33
func makeFD( ) throws -> Int32 {
34
34
return try BSD . syscall ( fileport_makefd ( self . name) )
35
35
}
0 commit comments