[comp.sys.hp] HP-UX 7.03 and RPC's svc_fdset

keenan@inmet.inmet.com (04/11/91)

RPC maintains a global variable named svc_fdset which is a bit mask
of interesting file descriptors suitable for use in a select() call.
On an HP 9000/375 running HP-UX 7.03 (info from uname -a), in
<rpc/svc.h>, svc_fdset is declared as a full_fd_set, a structure
containing an array of two ints, instead of using the fdset type
defined in <sys/types.h>. In contrast to their names, fd_set's are
twice as big as full_fd_set's.

Does anyone know why HP didn't use the fd_set type for svc_fdset?
Could someone running HP-UX 7.05 look in <rpc/svc.h> and let me
know what svc_fdset looks like there? Any guesses about HP-UX 8?
My email address is below and I'll keep my eyes on this group for
a while. Thanks,
--keenan ross           keenan@inmet.inmet.com
 Intermetrics, Inc.     uunet!inmet!keenan
 733 Concord Ave.
 Cambridge, MA  02138   PHONE:    (617) 661-1840

dlr@hpcndm.CND.HP.COM (Dominic Ruffatto) (04/15/91)

> Does anyone know why HP didn't use the fd_set type for svc_fdset?

In the standard 6.5 and 7.?? releases of HP-UX only 60 file descriptors were 
allowed per process (<2 ints of bits).  full_fd_set was used in 6.5 and there 
was no major need to change for 7.??. 

> Could someone running HP-UX 7.05 look in <rpc/svc.h> and let me
> know what svc_fdset looks like there? Any guesses about HP-UX 8?
> My email address is below and I'll keep my eyes on this group for
> a while. Thanks,

You will find the same header file for 7.?? releases.  

In 8.?? support for 1K file descriptors for mortal users and 2K file 
descriptors for root is provided.  fd_set is expanded and svc_fdset uses
the fd_set type.

Dom