You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: console_zos.go
    path of file: ./repos/devspace/vendor/github.com/containerd/console
    
    the code of the file until where you have to start completion: // +build zos

/*
   Copyright The containerd Authors.

   Licensed under the Apache L
    
func NewPty() (Console, string, error) {
	var f File
	var err error
	var slave string
	for i := 0;; i++ {
		ptyp := fmt.Sprintf("/dev/ptyp%04d", i)
		f, err = os.OpenFile(ptyp, os.O_RDWR, 0600)
		if err == nil {
			slave = fmt.Sprintf("/dev/ttyp%04d", i)
			break
		}
		if os.IsNotExist(err) {
			return nil, "", err
		}
		// else probably Resource Busy
	}
	m, err := newMaster(f)
	if err != nil {
		return nil, "", err
	}
	return m, slave, nil
}