setsockopt(0, SOL_SOCKET, SO_RCVBUF, &size, sizeof (size)) < 0)
setsockopt(0, SOL_SOCKET, SO_RCVBUF, &size, sizeof (size)) == -1)
checkbuf(record, size)	char *record;	int size;{	extern char *malloc();	if (size <= maxrecsize)		return (record);	if (record != 0)		free(record);	record = malloc(size);	if (record == 0) {		DEBUG("rmtd: cannot allocate buffer space\n");		exit(4);	}	maxrecsize = size;	while (size > 1024 &&	       setsockopt(0, SOL_SOCKET, SO_RCVBUF, &size, sizeof (size)) < 0)		size -= 1024;	return (record);}