sbin/atm/atm/atm_subr.c
void
sock_error(int err)
{
	fprintf(stderr, "%s: ", prog);

	switch (err) {

	case EPROTONOSUPPORT:
		fprintf(stderr, "ATM protocol support not loaded\n");
		break;

	default:
		perror("socket");
		break;
	}

	exit(1);
}
/*
 * Socket error handler
 *
 * When a socket call fails, print an error message and exit
 * 
 * Arguments:
 *	err	an errno describing the error
 *
 * Returns:
 *	none
 *
 */
Socket error handler
When a socket call fails, print an error message and exit

err     an errno describing the error

none
Socket error handler When a socket call fails print an error message and exit err an errno describing the error none
void
sock_error(int err)
{
	fprintf(stderr, "%s: ", prog);
	switch (err) {
	case EPROTONOSUPPORT:
		fprintf(stderr, "ATM protocol support not loaded\n");
		break;
	default:
		perror("socket");
		break;
	}
	exit(1);
}
void sock_error ( int err ) { fprintf ( stderr , " " , prog ) ; switch ( err ) { case EPROTONOSUPPORT : fprintf ( stderr , " \n " ) ; break ; default : perror ( " " ) ; break ; } exit ( 1 ) ; }
Socket error handler
 When a socket call fails, print an error message and exit
Socket error handler When a socket call fails print an error message and exit