Open System Services Programmer's Guide

exit(1);
}
else if (bytesread == 0) /* peer closed connection */
{
/* close socket and remove fd from active fd set */
fprintf(stderr, "sserver [cpu %d] - "
"connection on fd %d closed\n",
cpu, fd);
close(fd);
FD_CLR(fd,&fdset);
fdcount--;
}
else /* data received */
{
msg_buff[bytesread] = '\0'; /* make string NULL-terminated */
fprintf(stderr, "sserver [cpu %d] - "
"message received on fd %d = %s",
cpu, fd, msg_buff);
/* echo back to sender */
if (send(fd, msg_buff, bytesread, 0) < 0)
{
fprintf(stderr, "sserver [cpu %d] - "
"send(fd %d) failed [errno %d]\n",
cpu, fd, errno);
exit(1);
}
}
} /* end handle ready fd */
} /* end while (1) */
}
OSS Process-Management Functions
Table 13 (page 150) displays information about each OSS function that you can use to manage
processes. The columns of the table contain the following information:
OSS Function
The name of the function and a brief description.
OSS Notes
Notes about the OSS implementation of the function. The note “Can return extended errors
means that the function can return errors that are HP extensions to the XPG4 specification.
Refer to the function’s reference page for further information.
Beginning with the J06.15 and H06.26 RVUs, a partner or customer OSS SEEP is supported
and can participate in access-control decisions for OSS objects. (For OSS SEEP details, see
Accessing OSS SEEP-Protected Files” (page 83).) The note “OSS SEEP consultation” indicates
that the OSS name server consults the OSS SEEP when this function is called for operations on
files in OSS SEEP-protected filesets and the OSS SEEP is running.
Guardian Notes
Notes about using the function on a Guardian process.
The information in this table is only a summary of the information in the reference page for a
function. For details, refer to the reference pages either online or in the Open System Services
System Calls Reference Manual and the Open System Services Library Calls Reference Manual.
NOTE: To determine which RVUs support an OSS function, see Appendix A (page 438).
OSS Process-Management Functions 149