All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] include: remove outdated ipcshm.h
Date: Thu,  1 Jun 2023 16:54:22 +0800	[thread overview]
Message-ID: <20230601085422.52874-1-liwang@redhat.com> (raw)

Since it has been replaced by libnewipc.h header file, and
there has no inclusion in any LTP tests, so let's remove it.

Signed-off-by: Li Wang <liwang@redhat.com>
---
 include/ipcshm.h | 54 ------------------------------------------------
 1 file changed, 54 deletions(-)
 delete mode 100644 include/ipcshm.h

diff --git a/include/ipcshm.h b/include/ipcshm.h
deleted file mode 100644
index 08307d4ab..000000000
--- a/include/ipcshm.h
+++ /dev/null
@@ -1,54 +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
- */
-
-/*
- * ipcshm.h - common definitions for the IPC shared memory tests
- */
-
-#ifndef __IPCSHM_H
-#define __IPCSHM_H
-
-#include <errno.h>
-#include <sys/wait.h>
-#include <sys/ipc.h>
-#include <sys/shm.h>
-
-#include "test.h"
-
-void cleanup(void);
-void setup(void);
-
-#define SHM_RD	0400
-#define SHM_WR	0200
-#define SHM_RW	SHM_RD | SHM_WR
-
-#define SHM_SIZE	2048	/* a resonable size for a memory segment */
-#define INT_SIZE	4	/* instead of sizeof(int) */
-
-#define MODE_MASK	0x01FF	/* to get the lower nine permission bits */
-				/* from shmid_ds.ipc_perm.mode		 */
-
-key_t shmkey;			/* an IPC key generated by ftok() */
-
-void rm_shm(int shm_id);
-
-int getipckey();
-int getuserid(char*);
-
-#endif /* ipcshm.h */
-- 
2.40.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

             reply	other threads:[~2023-06-01  8:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-01  8:54 Li Wang [this message]
2023-06-21  8:19 ` [LTP] [PATCH] include: remove outdated ipcshm.h Petr Vorel
2023-06-21  9:51   ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230601085422.52874-1-liwang@redhat.com \
    --to=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.