OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/lib/libxnet/t_unbind.c


File /code/strss7/lib/libxnet/t_unbind.c



#ident "@(#) $RCSfile: t_unbind.c,v $ $Name:  $($Revision: 0.8.2.3 $) $Date: 2003/05/27 11:21:51 $"

static char const ident[] = "$RCSfile: t_unbind.c,v $ $Name:  $($Revision: 0.8.2.3 $) $Date: 2003/05/27 11:21:51 $";

#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/xti.h>
#include <sys/tpi.h>
#include <timod.h>
#include "xti.h"

int t_unbind(int fd)
{
	union {
		struct {
			struct T_unbind_req prim;
		} req;
		struct {
			struct T_ok_ack prim;
		} ret;
	} buf;
	buf.req.prim.PRIM_type = T_UNBIND_REQ;
	if (t_strioctl(fd, TI_UNBIND, &buf, sizeof(buf)) < 0)
		goto error;
	return (0);
      error:
	return (-1);
}


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/lib/libxnet/t_unbind.c

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: