semctl.c revision 1.3
11.3Scgd/*
21.3Scgd * Copyright (c) 1994, 1995 Christopher G. Demetriou
31.3Scgd * All rights reserved.
41.3Scgd *
51.3Scgd * Redistribution and use in source and binary forms, with or without
61.3Scgd * modification, are permitted provided that the following conditions
71.3Scgd * are met:
81.3Scgd * 1. Redistributions of source code must retain the above copyright
91.3Scgd *    notice, this list of conditions and the following disclaimer.
101.3Scgd * 2. Redistributions in binary form must reproduce the above copyright
111.3Scgd *    notice, this list of conditions and the following disclaimer in the
121.3Scgd *    documentation and/or other materials provided with the distribution.
131.3Scgd * 3. All advertising materials mentioning features or use of this software
141.3Scgd *    must display the following acknowledgement:
151.3Scgd *	This product includes software developed by Christopher G. Demetriou
161.3Scgd *	for the NetBSD Project.
171.3Scgd * 4. The name of the author may not be used to endorse or promote products
181.3Scgd *    derived from this software without specific prior written permission
191.3Scgd *
201.3Scgd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
211.3Scgd * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
221.3Scgd * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
231.3Scgd * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
241.3Scgd * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
251.3Scgd * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
261.3Scgd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
271.3Scgd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
281.3Scgd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
291.3Scgd * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
301.3Scgd */
311.3Scgd
321.3Scgd#if defined(LIBC_SCCS) && !defined(lint)
331.3Scgdstatic char rcsid[] = "$NetBSD: semctl.c,v 1.3 1995/02/27 11:23:09 cgd Exp $";
341.3Scgd#endif /* LIBC_SCCS and not lint */
351.1Scgd
361.1Scgd#include <sys/types.h>
371.1Scgd#include <sys/ipc.h>
381.1Scgd#include <sys/sem.h>
391.1Scgd
401.1Scgd#if __STDC__
411.1Scgdint semctl(int semid, int semnum, int cmd, union semun semun)
421.1Scgd#else
431.1Scgdint semctl(semid, int semnum, cmd, semun)
441.1Scgd	int semid, semnum;
451.1Scgd	int cmd;
461.1Scgd	union semun semun;
471.1Scgd#endif
481.1Scgd{
491.1Scgd	return (__semctl(semid, semnum, cmd, &semun));
501.1Scgd}
51