code: func ptsname(f *os.File) (string, error) {
  	ptspath, err := C.ptsname(C.int(f.Fd()))
  	if err != nil {
  		return "", err
  	}
  	return C.GoString(ptspath), nil
  }
docs: // ptsname retrieves the name of the first available pts for the given master.