compat_semctl.c revision 1.1
11.1Schristos/* $NetBSD: compat_semctl.c,v 1.1 2005/09/13 01:44:09 christos Exp $ */
21.1Schristos
31.1Schristos/*
41.1Schristos * Copyright (c) 1994, 1995 Christopher G. Demetriou
51.1Schristos * All rights reserved.
61.1Schristos *
71.1Schristos * Redistribution and use in source and binary forms, with or without
81.1Schristos * modification, are permitted provided that the following conditions
91.1Schristos * are met:
101.1Schristos * 1. Redistributions of source code must retain the above copyright
111.1Schristos *    notice, this list of conditions and the following disclaimer.
121.1Schristos * 2. Redistributions in binary form must reproduce the above copyright
131.1Schristos *    notice, this list of conditions and the following disclaimer in the
141.1Schristos *    documentation and/or other materials provided with the distribution.
151.1Schristos * 3. All advertising materials mentioning features or use of this software
161.1Schristos *    must display the following acknowledgement:
171.1Schristos *          This product includes software developed for the
181.1Schristos *          NetBSD Project.  See http://www.NetBSD.org/ for
191.1Schristos *          information about NetBSD.
201.1Schristos * 4. The name of the author may not be used to endorse or promote products
211.1Schristos *    derived from this software without specific prior written permission.
221.1Schristos *
231.1Schristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
241.1Schristos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
251.1Schristos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
261.1Schristos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
271.1Schristos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
281.1Schristos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
291.1Schristos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
301.1Schristos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
311.1Schristos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
321.1Schristos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
331.1Schristos *
341.1Schristos * <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
351.1Schristos */
361.1Schristos
371.1Schristos#include <sys/cdefs.h>
381.1Schristos#if defined(LIBC_SCCS) && !defined(lint)
391.1Schristos__RCSID("$NetBSD: compat_semctl.c,v 1.1 2005/09/13 01:44:09 christos Exp $");
401.1Schristos#endif /* LIBC_SCCS and not lint */
411.1Schristos
421.1Schristos#define __LIBC12_SOURCE__
431.1Schristos#include <sys/types.h>
441.1Schristos#include <sys/ipc.h>
451.1Schristos#include <sys/sem.h>
461.1Schristos#include <compat/sys/sem.h>
471.1Schristos
481.1Schristosint
491.1Schristossemctl(int semid, int semnum, int cmd, union __semun semun)
501.1Schristos{
511.1Schristos	return (__semctl(semid, semnum, cmd, &semun));
521.1Schristos}
53