init(_:relativeTo:flags:retryOnInterrupt:)
Creates a Stat struct from an UnsafePointer<CChar> path and Flags, including a FileDescriptor to resolve a relative path.
Declaration
init(_ path: UnsafePointer<CChar>, relativeTo fd: FileDescriptor, flags: Stat.Flags, retryOnInterrupt: Bool = true) throws(Errno)Discussion
If path is absolute (starts with a forward slash), then fd is ignored. If path is relative, it is resolved against the directory given by fd.
The corresponding C function is fstatat().