sema.h
资源名称:socks5.zip [点击查看]
上传用户:sddyfurun
上传日期:2007-01-04
资源大小:525k
文件大小:1k
源码类别:
代理服务器
开发平台:
Unix_Linux
- /* Copyright (c) 1995,1996,1997 NEC Corporation. All rights reserved. */
- /* */
- /* The redistribution, use and modification in source or binary forms of */
- /* this software is subject to the conditions set forth in the copyright */
- /* document ("Copyright") included with this distribution. */
- /*
- * $Id: sema.h,v 1.11.4.1 1998/07/19 22:49:57 wlu Exp $
- */
- #ifndef SEMA_H
- #define SEMA_H
- #if defined(USE_SYSTEM_SEMAPHORE) || defined(USE_SEMAPHORES)
- extern void *semcreate P((int));
- extern void semdestroy P((void *));
- extern int semreset P((void *, int));
- extern int semacquire P((void *));
- extern int semrelease P((void *));
- #else
- #define semcreate(i) NULL
- #define semacquire(s) 0
- #define semdestroy(s)
- #define semrelease(s)
- #define semreset(s, v)
- #endif
- #endif