z/OS UNIX System Services File System Interface Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Getting and setting attributes

z/OS UNIX System Services File System Interface Reference
SA23-2285-00

Socket descriptors are eligible for fstat(), so sockets can be called for vn_getattr. The PFS should consider supporting this operation and returning some information in the ATTR structure. At a minimum, you could return: the file type, permission bits of 777, the current time for the time values, the devno as passed by vfs_network, and an inode number for the socket that is unique for this socket at this point in time.

Note: Some programs use fdopen() with a socket descriptor, and this function does an fstat() under the covers.

Generally, a program cannot set any attributes of a socket, so the PFS does not have to support the vn_setattr operation.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014