/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1990-1997 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ident "%Z%%M% %I% %E% SMI"
#include <fcntl.h>
#include <stdio.h>
extern int errno;
int
int s;
char *msg;
{
int a;
errno = EWOULDBLOCK;
else
maperror();
}
return (a);
}
int
int s;
char *msg;
int tolen;
{
int a;
/* check for logfile */
if (errno == SVR4_ENOTSOCK &&
char *msg_p;
if (LogDev == -1) {
int tfd;
close(s);
if (tfd == -1)
return (-1);
/* insure stream has same fd as closed socket */
if (tfd != s) {
return (-1);
}
}
return (-1);
return (-1);
/* build the header */
/* parse <pri> from msg */
/* sid, ltime, ttime, seq_no not used */
} else {
}
}
/* output the message to the local logger */
return (0);
}
errno = EWOULDBLOCK;
else
maperror();
}
return (a);
}
int
int s;
int flags;
{
int a;
errno = EWOULDBLOCK;
else
maperror();
}
return (a);
}