Skip to contentSkip to conversation

include: remove outdated ipcshm.h

PATCH In review Li Wang 2 participants 3 messages Jun 1, 2023 – Jun 21, 2023

lore
Share & tools
lore

Li Wang

author
#0 lore raw

PATCH 1/1 include: remove outdated ipcshm.h

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

---
 include/ipcshm.h | 54 ------------------------------------------------
 1 file changed, 54 deletions(-)
 delete mode 100644 include/ipcshm.h
include/ipcshm.h deleted +0 -54
deleted file mode 100644
index 08307d4ab..000000000
@@ -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 */
Signature · 5 lines
2.40.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by on v1 1/1
#1 lore raw

Hi Li,

Quoted 2 lines

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

Good catch!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Hi Li,

merged. Thank you!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp