/* -*-c-*-
*
- * $Id: lock.c,v 1.5 1999/06/19 20:35:45 mdw Exp $
+ * $Id: lock.c,v 1.6 2004/04/08 01:36:13 mdw Exp $
*
* Simplified POSIX locking interface
*
* (c) 1997 Straylight/Edgeware
*/
-/*----- Licensing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
*
* This file is part of the mLib utilities library.
*
* it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
- *
+ *
* mLib is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Library General Public
* License along with mLib; if not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: lock.c,v $
- * Revision 1.5 1999/06/19 20:35:45 mdw
- * Whoops. I'd left the type of the jump buffer as `sigjmp_buf'.
- *
- * Revision 1.4 1999/06/19 20:33:16 mdw
- * More sophisticated and excessive signal and alarm handling.
- *
- * Revision 1.3 1999/06/06 01:23:00 mdw
- * Fix signal handling.
- *
- * Revision 1.2 1999/05/26 20:53:40 mdw
- * Fixes for stupid bugs.
- *
- * Revision 1.1 1999/05/15 10:33:53 mdw
- * Add simplified locking code.
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <errno.h>
{
struct flock fk;
struct sigaction sa, osa;
- sigset_t ss, oss;
+ sigset_t ss, oss;
int e;
int al, d, left;