readFromFD and writeToFD return structs.