Date: Wed, 8 Sep 1999 18:09:11 -0700 (PDT) From: Michael Cronk <mcronk@yahoo.com> To: freebsd-questions@FreeBSD.ORG Subject: A C question Message-ID: <19990909010911.29206.rocketmail@send205.yahoomail.com>
next in thread | raw e-mail | index | archive | help
I am trying to port some code to FreeBSD:
-----
cleanup()
{
if (debug)
fprintf(stderr,"cleanup()\n");
if (progress & LINKED_TTY)
unlink(new_node);
if (progress & RENAMED_PTY)
rename(alias, master);
#ifndef SYS_V
if (!debug)
vhangup(); /* XXX */
#endif
if (dev_net >= 0)
(void)shutdown(dev_net, 2);
exit(1);
}
-----
The problem is with the vhangup() call, which I think is Linux
specific. Unfortunately, FreeBSD mae this system call obsolete ( I use
3.1 ).
My question is, what is FreeBSDs equivalent to this call?
Thanks,
Michael
Please reply to:
michael@one.com.au
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990909010911.29206.rocketmail>
