source: trunk/athena/bin/lpr/posix.h @ 11056

Revision 11056, 519 bytes checked in by ghudson, 27 years ago (diff)
From svalente: only define LOCK_SH et al if they aren't already defiend.
  • Property svn:executable set to *
Line 
1/*
2 * BSD functions in POSIX
3 */
4
5#ifndef LOCK_SH
6#define   LOCK_SH   1    /* shared lock */
7#define   LOCK_EX   2    /* exclusive lock */
8#define   LOCK_NB   4    /* don't block when locking */
9#define   LOCK_UN   8    /* unlock */
10#endif
11
12int
13flock(int fd, int operation);
14
15typedef void    Sigfunc(int);   /* for signal handlers */
16
17                /* 4.3BSD Reno <signal.h> doesn't define SIG_ERR */
18#if     defined(SIG_IGN) && !defined(SIG_ERR)
19#define SIG_ERR ((Sigfunc *)-1)
20#endif
21
22Sigfunc *
23signal(int signo, Sigfunc *func);
Note: See TracBrowser for help on using the repository browser.