


     grantpt_L(LSB.os/devRelease 1.1 (UniSofgrantpt_L(LSB.os/devclass)



     NAME
	  LSB.os/devclass/grantpt_L - grant access to the slave
	  pseudo-terminal device test case

     DESCRIPTION
	  This test case tests the grantpt() system call interface for
	  conformance to parts of The Open Group's CAE Specification:
	  System Interfaces and	Headers, page:grantpt()

     TESTS
	  1    When fildes refers to a master pseudo-terminal device,
	       then a call to grantpt(fildes) performs the following
	       operations on the corresponding slave device:

		    sets the user ID to	the real UID of	the calling
		    process;

		    sets the permissions to readable and writable by
		    owner and writable by group;

	       and returns zero.

	  2    When fildes does	not refer to an	open file, then	a call
	       to grantpt(fildes) returns -1 and sets errno to EBADF.

	  3    When fildes is a	valid file descriptor that does	not
	       refer to	a master pseudo-terminal device, then a	call
	       to grantpt(fildes) returns -1 and sets errno to EINVAL.

	  4    When fildes refers to a master pseudo-terminal device
	       and the corresponding slave device cannot be accessed,
	       then a call to grantpt(fildes) returns -1 and sets
	       errno to	EACCES.

     Untestable	aspects
	  1    When fildes refers to a master pseudo-terminal device,
	       then a call to grantpt(fildes) sets the group of	the
	       corresponding slave device to an	unspecified group ID.
	       Reason for omission: The	corresponding statement	in the
	       standard	to which conformance is	being measured is not
	       specific	enough to write	a portable test.

     RELEASE
	  LSB-os 1.1 (00/11/23)











     Page 1					    (printed 2/21/103)



