socksdpsubr.c revision 903a11ebdc8df157c4700150f41f1f262f4a8ae8
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/sysmacros.h>
#include <sys/vfs_opreg.h>
#include <sys/socketvar.h>
#include "socksdp.h"
/*
* Wait until the socket is connected or there is an error.
* fmode should contain any nonblocking flags.
*/
int
{
int error;
return (EINPROGRESS);
/*
* Return EINTR and let the application use
* nonblocking techniques for detecting when
* the connection has been established.
*/
break;
}
}
error = 0;
}
return (error);
}
/*
*/
int
{
int error;
if (pid != 0) {
/*
* Permissions check by sending signal 0.
* Note that when kill fails it does a
* set_errno causing the system call to fail.
*/
if (error != 0) {
return (error);
}
}
return (0);
}
/*
* Generate a SIGIO, for 'writable' events include siginfo structure,
* for read events just send the signal.
*/
/*ARGSUSED*/
static void
{
if (event & SDPSIG_WRITE) {
}
if (event & SDPSIG_READ) {
}
if (event & SDPSIG_URG) {
}
}
void
{
event != SDPSIG_URG)) {
return;
}
/*
* XXX This unfortunately still generates
* a signal when a fd is closed but
* the proc is active.
*/
return;
}
} else {
/*
* Send to process group. Hold pidlock across
* calls to sosdp_sigproc().
*/
}
}
}
/*
* Inherit socket properties
*/
void
{
}