/*
 * ipwstatus for IPWireless USB Modem
 *
 * Authors:
 *   Stephen Blackheath <stephen@blacksapphire.com>,
 *   Ben Martel (benm@symmetric.co.nz>
 *
 *   Copyright (C) 2004 by Symmetric Systems Ltd (NZ)
 *
 * Released under the GNU General Public Licence
 */

#ifndef _TTY_LOCK_H_
#define _TTY_LOCK_H_

/*
 * lock the specified tty device.
 *
 * returns 0 if successful, -1 if failed.
 * On failure, errno is EAGAIN if the device really is locked by another process.
 */
int tty_lock(char* dev);

void tty_unlock();

#endif

