From dbb41ce2b7f309d394054a6bd1e33afd578798a5 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 23 Oct 2020 15:18:01 +0200 Subject: Move the source code of all xloop components to the common 'src' directory --- kernel/tests/include/ipcsem.h | 55 ------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 kernel/tests/include/ipcsem.h (limited to 'kernel/tests/include/ipcsem.h') diff --git a/kernel/tests/include/ipcsem.h b/kernel/tests/include/ipcsem.h deleted file mode 100644 index 6a37672..0000000 --- a/kernel/tests/include/ipcsem.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * - * Copyright (c) International Business Machines Corp., 2001 - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -/* - * ipcsem.h - common definitions for the IPC semaphore tests - */ - -#ifndef __IPCSEM_H -#define __IPCSEM_H - -#include -#include -#include - -#include "test.h" -#include "lapi/semun.h" - -void cleanup(void); -void setup(void); - -#define SEM_RD 0400 -#define SEM_ALT 0200 -#define SEM_RA SEM_RD | SEM_ALT - -#define PSEMS 10 /* a reasonable value for the number of */ - /* "primitive semaphores" per ID */ - -#ifdef LIBIPC -key_t semkey; /* an IPC key generated by ftok() */ -#else -extern key_t semkey; /* an IPC key generated by ftok() */ -#endif - -void rm_sema(int sem_id); - -int getipckey(); -int getuserid(char *); - -#endif /* ipcsem.h */ -- cgit v1.2.3-55-g7522