@@ -9,7 +9,7 @@
#ifndef LAPI_RT_SIGACTION_H__
#define LAPI_RT_SIGACTION_H__
-#include "ltp_signal.h"
+#include "tso_signal.h"
#define INVAL_SA_PTR ((void *)-1)
deleted file mode 100644
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2009 Cisco Systems, Inc. All Rights Reserved.
- * Copyright (c) 2009 FUJITSU LIMITED. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Further, this software is distributed without any warranty that it is
- * free of the rightful claim of any third person regarding infringement
- * or the like. Any license provided herein, whether implied or
- * otherwise, applies only to this software file. Patent licenses, if
- * any, provided herein do not apply to combinations of this program with
- * other software, or any other product whatsoever.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Author: Liu Bo <liubo2009@cn.fujitsu.com>
- * Author: Ngie Cooper <yaneurabeya@gmail.com>
- *
- */
-
-#ifndef __LTP_SIGNAL_H
-#define __LTP_SIGNAL_H
-
-#include <errno.h>
-#include <signal.h>
-#include <stdio.h>
-#include "config.h"
-
-/*
- * For all but __mips__:
- *
- * _COMPAT_NSIG / _COMPAT_NSIG_BPW == 2.
- *
- * For __mips__:
- *
- * _COMPAT_NSIG / _COMPAT_NSIG_BPW == 4.
- *
- * See asm/compat.h under the kernel source for more details.
- *
- * Multiply that by a fudge factor of 4 and you have your SIGSETSIZE.
- */
-#if defined __mips__
-#define SIGSETSIZE 16
-#else
-#define SIGSETSIZE (_NSIG / 8)
-#endif
-
-#endif
deleted file mode 100644
@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2015-2016 Cyril Hrubis <chrubis@suse.cz>
- *
- * 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, see <http://www.gnu.org/licenses/>.
- */
-
- /*
-
- Checkpoint - easy to use parent-child synchronization.
-
- Checkpoint is based on futexes (man futex). The library allocates a page of
- shared memory for futexes and the id is an offset to it which gives the user
- up to page_size/sizeof(uint32_t) checkpoint pairs. Up to INT_MAX processes
- can sleep on single id and can be woken up by single wake.
-
- */
-
-#ifndef OLD_CHECKPOINT__
-#define OLD_CHECKPOINT__
-
-#include "test.h"
-#include "tst_checkpoint_fn.h"
-
-#define TST_SAFE_CHECKPOINT_WAIT(cleanup_fn, id) \
- tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, 0);
-
-#define TST_SAFE_CHECKPOINT_WAIT2(cleanup_fn, id, msec_timeout) \
- tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, msec_timeout);
-
-#define TST_SAFE_CHECKPOINT_WAKE(cleanup_fn, id) \
- tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, 1);
-
-#define TST_SAFE_CHECKPOINT_WAKE2(cleanup_fn, id, nr_wake) \
- tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, nr_wake);
-
-#define TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup_fn, id) \
- tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, 1); \
- tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, 0);
-
-#endif /* OLD_CHECKPOINT__ */
deleted file mode 100644
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2012 Cyril Hrubis chrubis@suse.cz
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Further, this software is distributed without any warranty that it is
- * free of the rightful claim of any third person regarding infringement
- * or the like. Any license provided herein, whether implied or
- * otherwise, applies only to this software file. Patent licenses, if
- * any, provided herein do not apply to combinations of this program with
- * other software, or any other product whatsoever.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
- /*
-
- Small helper for preparing files the test needs to copy before the testing.
-
- We need to support two scenarios.
-
- 1. Test is executed in local directory and this is also the place
- we should look for files
-
-
- 2. Test is executed after LTP has been installed, in this case we
- look for env LTPROOT (usually /opt/ltp/)
-
- */
-
-#ifndef TST_RESOURCE
-#define TST_RESOURCE
-
-const char *tst_dataroot(void);
-
-/*
- * Copy a file to the CWD. The destination is apended to CWD.
- */
-#define TST_RESOURCE_COPY(cleanup_fn, filename, dest) \
- tst_resource_copy(__FILE__, __LINE__, (cleanup_fn), \
- (filename), (dest))
-
-void tst_resource_copy(const char *file, const int lineno,
- void (*cleanup_fn)(void),
- const char *filename, const char *dest);
-
-#endif /* TST_RESOURCE */
deleted file mode 100644
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2013-2016 Cyril Hrubis <chrubis@suse.cz>
- *
- * 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, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef OLD_SAFE_STDIO_H__
-#define OLD_SAFE_STDIO_H__
-
-#include <stdio.h>
-
-#include "safe_stdio_fn.h"
-
-#define SAFE_FOPEN(cleanup_fn, path, mode) \
- safe_fopen(__FILE__, __LINE__, cleanup_fn, path, mode)
-
-#define SAFE_FCLOSE(cleanup_fn, f) \
- safe_fclose(__FILE__, __LINE__, cleanup_fn, f)
-
-#define SAFE_ASPRINTF(cleanup_fn, strp, fmt, ...) \
- safe_asprintf(__FILE__, __LINE__, cleanup_fn, strp, fmt, __VA_ARGS__)
-
-#define SAFE_POPEN(cleanup_fn, command, type) \
- safe_popen(__FILE__, __LINE__, cleanup_fn, command, type)
-
-#endif /* OLD_SAFE_STDIO_H__ */
deleted file mode 100644
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Further, this software is distributed without any warranty that it is
- * free of the rightful claim of any third person regarding infringement
- * or the like. Any license provided herein, whether implied or
- * otherwise, applies only to this software file. Patent licenses, if
- * any, provided herein do not apply to combinations of this program with
- * other software, or any other product whatsoever.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
- * Mountain View, CA 94043, or:
- *
- * http://www.sgi.com
- *
- * For further information regarding this notice, see:
- *
- * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
- */
-#ifndef _RANDOM_RANGE_H_
-#define _RANDOM_RANGE_H_
-
-int parse_ranges ( char *, int, int, int, int (*)(), char **, char ** );
-int range_min ( char *, int );
-int range_max ( char *, int );
-int range_mult ( char *, int );
-long random_range ( int, int, int, char ** );
-long random_rangel ( long, long, long, char ** );
-long long random_rangell ( long long, long long, long long, char ** );
-void random_range_seed( long );
-long random_bit ( long );
-
-#endif
@@ -18,21 +18,21 @@
#include <stdlib.h>
#include <stdint.h>
-#include "usctest.h"
+#include "tso_usctest.h"
#include "tst_common.h"
-#include "old_safe_file_ops.h"
-#include "old_checkpoint.h"
+#include "tso_safe_file_ops.h"
+#include "tso_checkpoint.h"
#include "tst_process_state.h"
-#include "old_resource.h"
+#include "tso_resource.h"
#include "tst_res_flags.h"
#include "tst_kvercmp.h"
#include "tst_fs.h"
#include "tst_pid.h"
#include "tst_cmd.h"
#include "tst_cpu.h"
-#include "old_device.h"
-#include "old_tmpdir.h"
+#include "tso_device.h"
+#include "tso_tmpdir.h"
#include "tst_minmax.h"
#include "tst_get_bad_addr.h"
#include "tst_path_has_mnt_flags.h"
@@ -116,7 +116,7 @@ void tst_brkm__(const char *file, const int lineno, int ttype,
__attribute__ ((format (printf, 5, 6))) LTP_ATTRIBUTE_NORETURN;
#ifdef LTPLIB
-# include "ltp_priv.h"
+# include "tso_priv.h"
# define tst_brkm(flags, cleanup, fmt, ...) do { \
if (tst_test) \
tst_brk_(__FILE__, __LINE__, flags, fmt, ##__VA_ARGS__); \
new file mode 100644
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2015-2016 Cyril Hrubis <chrubis@suse.cz>
+ * Copyright (c) Linux Test Project, 2026
+ */
+
+/*
+ * Checkpoint - easy to use parent-child synchronization.
+ *
+ * Checkpoint is based on futexes (man futex). The library allocates a page of
+ * shared memory for futexes and the id is an offset to it which gives the user
+ * up to page_size/sizeof(uint32_t) checkpoint pairs. Up to INT_MAX processes
+ * can sleep on single id and can be woken up by single wake.
+ */
+
+#ifndef TSO_CHECKPOINT__
+#define TSO_CHECKPOINT__
+
+#include "test.h"
+#include "tst_checkpoint_fn.h"
+
+#define TST_SAFE_CHECKPOINT_WAIT(cleanup_fn, id) \
+ tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, 0);
+
+#define TST_SAFE_CHECKPOINT_WAIT2(cleanup_fn, id, msec_timeout) \
+ tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, msec_timeout);
+
+#define TST_SAFE_CHECKPOINT_WAKE(cleanup_fn, id) \
+ tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, 1);
+
+#define TST_SAFE_CHECKPOINT_WAKE2(cleanup_fn, id, nr_wake) \
+ tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, nr_wake);
+
+#define TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup_fn, id) \
+ tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, 1); \
+ tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, 0);
+
+#endif /* TSO_CHECKPOINT__ */
similarity index 100%
rename from include/old/ltp_cpuid.h
rename to include/old/tso_cpuid.h
similarity index 74%
rename from include/old/old_device.h
rename to include/old/tso_device.h
@@ -1,22 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2014-2016 Cyril Hrubis <chrubis@suse.cz>
- *
- * 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, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) Linux Test Project, 2026
*/
-#ifndef OLD_DEVICE_H__
-#define OLD_DEVICE_H__
+#ifndef TSO_DEVICE_H__
+#define TSO_DEVICE_H__
/*
* Returns filesystem type to be used for the testing. Unless your test is
@@ -81,4 +70,4 @@ int tst_detach_device(const char *dev);
*/
int tst_umount(const char *path);
-#endif /* OLD_DEVICE_H__ */
+#endif /* TSO_DEVICE_H__ */
similarity index 79%
rename from include/old/tlibio.h
rename to include/old/tso_lio.h
@@ -1,33 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Further, this software is distributed without any warranty that it is
- * free of the rightful claim of any third person regarding infringement
- * or the like. Any license provided herein, whether implied or
- * otherwise, applies only to this software file. Patent licenses, if
- * any, provided herein do not apply to combinations of this program with
- * other software, or any other product whatsoever.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
- * Mountain View, CA 94043, or:
- *
- * http://www.sgi.com
- *
- * For further information regarding this notice, see:
- *
- * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
+ * Copyright (c) Linux Test Project, 2026
*/
#define LIO_IO_SYNC 00001 /* read/write */
similarity index 68%
rename from include/old/old_module.h
rename to include/old/tso_module.h
@@ -1,35 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2013 Oracle and/or its affiliates. All Rights Reserved.
- * Copyright (c) Linux Test Project, 2016-2024
- *
- * 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 would 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 the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- *
- * Author:
- * Alexey Kodanev <alexey.kodanev@oracle.com>
- *
- * These functions help to load and unload kernel modules in the tests.
- *
- * tst_module_load function already includes tst_module_exists function,
- * which is checking the following possible module's locations:
- *
- * 1. Current working directory
- *
- * 2. LTP installation path (using env LTPROOT, which is usually /opt/ltp)
- *
- * 3. If tmp directory created, it'll look at the test start working directory
- *
+ * Copyright (c) Linux Test Project, 2026
*/
#ifndef TST_MODULE
similarity index 62%
rename from include/old/ltp_priv.h
rename to include/old/tso_priv.h
@@ -1,22 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2013 Cyril Hrubis chrubis@suse.cz
- *
- * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
+ * Copyright (c) Linux Test Project, 2026
*/
#ifndef __LTP_PRIV_H__
new file mode 100644
@@ -0,0 +1,20 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
+ * Copyright (c) Linux Test Project, 2026
+ */
+
+#ifndef _RANDOM_RANGE_H_
+#define _RANDOM_RANGE_H_
+
+int parse_ranges ( char *, int, int, int, int (*)(), char **, char ** );
+int range_min ( char *, int );
+int range_max ( char *, int );
+int range_mult ( char *, int );
+long random_range ( int, int, int, char ** );
+long random_rangel ( long, long, long, char ** );
+long long random_rangell ( long long, long long, long long, char ** );
+void random_range_seed( long );
+long random_bit ( long );
+
+#endif
new file mode 100644
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2012 Cyril Hrubis chrubis@suse.cz
+ * Copyright (c) Linux Test Project, 2026
+ */
+
+ /*
+ * Small helper for preparing files the test needs to copy before the testing.
+ * We need to support two scenarios.
+ *
+ * 1. Test is executed in local directory and this is also the place
+ * we should look for files
+ *
+ * 2. Test is executed after LTP has been installed, in this case we
+ * look for env LTPROOT (usually /opt/ltp/)
+ */
+
+#ifndef TST_RESOURCE
+#define TST_RESOURCE
+
+const char *tst_dataroot(void);
+
+/*
+ * Copy a file to the CWD. The destination is apended to CWD.
+ */
+#define TST_RESOURCE_COPY(cleanup_fn, filename, dest) \
+ tst_resource_copy(__FILE__, __LINE__, (cleanup_fn), \
+ (filename), (dest))
+
+void tst_resource_copy(const char *file, const int lineno,
+ void (*cleanup_fn)(void),
+ const char *filename, const char *dest);
+
+#endif /* TST_RESOURCE */
similarity index 70%
rename from include/old/old_safe_file_ops.h
rename to include/old/tso_safe_file_ops.h
@@ -1,28 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2012-2016 Cyril Hrubis <chrubis@suse.cz>
- *
- * 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, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) Linux Test Project, 2026
*/
/*
-
This code helps with file reading/writing files providing scanf/printf like
interface that opens and closes the file automatically.
This kind of interface is especially useful for reading/writing values
from/to pseudo filesystems like procfs or sysfs.
-
*/
#ifndef SAFE_FILE_OPS
similarity index 98%
rename from include/old/safe_macros.h
rename to include/old/tso_safe_macros.h
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) Linux Test Project, 2026
+ */
+
/*
* Safe macros for commonly used syscalls to reduce code duplication in LTP
* testcases, and to ensure all errors are caught in said testcases as
@@ -6,7 +11,6 @@
* Also satiates some versions of gcc/glibc when the warn_unused_result
* attribute is applied to the function call.
*
- * Licensed under the GPLv2.
*/
#ifndef __TEST_H__
@@ -17,8 +21,8 @@
#define __SAFE_MACROS_H__
#include "safe_macros_fn.h"
-#include "old_safe_stdio.h"
-#include "old_safe_net.h"
+#include "tso_safe_stdio.h"
+#include "tso_safe_net.h"
#define SAFE_BASENAME(cleanup_fn, path) \
safe_basename(__FILE__, __LINE__, (cleanup_fn), (path))
similarity index 58%
rename from include/old/old_safe_net.h
rename to include/old/tso_safe_net.h
@@ -1,23 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2015 Fujitsu Ltd.
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
- *
- * 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, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) Linux Test Project, 2026
*/
-#ifndef OLD_SAFE_NET_H__
-#define OLD_SAFE_NET_H__
+#ifndef TSO_SAFE_NET_H__
+#define TSO_SAFE_NET_H__
#include <sys/types.h>
#include <sys/socket.h>
@@ -47,4 +36,4 @@
#define TST_GET_UNUSED_PORT(cleanup_fn, family, type) \
tst_get_unused_port(__FILE__, __LINE__, (cleanup_fn), family, type)
-#endif /* OLD_SAFE_NET_H__ */
+#endif /* TSO_SAFE_NET_H__ */
new file mode 100644
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2013-2016 Cyril Hrubis <chrubis@suse.cz>
+ * Copyright (c) Linux Test Project, 2026
+ */
+
+#ifndef TSO_SAFE_STDIO_H__
+#define TSO_SAFE_STDIO_H__
+
+#include <stdio.h>
+
+#include "safe_stdio_fn.h"
+
+#define SAFE_FOPEN(cleanup_fn, path, mode) \
+ safe_fopen(__FILE__, __LINE__, cleanup_fn, path, mode)
+
+#define SAFE_FCLOSE(cleanup_fn, f) \
+ safe_fclose(__FILE__, __LINE__, cleanup_fn, f)
+
+#define SAFE_ASPRINTF(cleanup_fn, strp, fmt, ...) \
+ safe_asprintf(__FILE__, __LINE__, cleanup_fn, strp, fmt, __VA_ARGS__)
+
+#define SAFE_POPEN(cleanup_fn, command, type) \
+ safe_popen(__FILE__, __LINE__, cleanup_fn, command, type)
+
+#endif /* TSO_SAFE_STDIO_H__ */
new file mode 100644
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (c) 2009 Cisco Systems, Inc. All Rights Reserved.
+ * Copyright (c) 2009 FUJITSU LIMITED. All Rights Reserved.
+ * Copyright (c) Linux Test Project, 2026
+ *
+ * Author: Liu Bo <liubo2009@cn.fujitsu.com>
+ * Author: Ngie Cooper <yaneurabeya@gmail.com>
+ */
+
+#ifndef __LTP_SIGNAL_H
+#define __LTP_SIGNAL_H
+
+#include <errno.h>
+#include <signal.h>
+#include <stdio.h>
+#include "config.h"
+
+/*
+ * For all but __mips__:
+ *
+ * _COMPAT_NSIG / _COMPAT_NSIG_BPW == 2.
+ *
+ * For __mips__:
+ *
+ * _COMPAT_NSIG / _COMPAT_NSIG_BPW == 4.
+ *
+ * See asm/compat.h under the kernel source for more details.
+ *
+ * Multiply that by a fudge factor of 4 and you have your SIGSETSIZE.
+ */
+#if defined __mips__
+#define SIGSETSIZE 16
+#else
+#define SIGSETSIZE (_NSIG / 8)
+#endif
+
+#endif
similarity index 62%
rename from include/old/old_tmpdir.h
rename to include/old/tso_tmpdir.h
@@ -1,22 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2016 Cyril Hrubis <chrubis@suse.cz>
- *
- * 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, see <http://www.gnu.org/licenses/>.
+ * Copyright (c) Linux Test Project, 2026
*/
-#ifndef OLD_TMPDIR_H__
-#define OLD_TMPDIR_H__
+#ifndef TSO_TMPDIR_H__
+#define TSO_TMPDIR_H__
/*
* Create a unique temporary directory and chdir() to it. It expects the caller
@@ -58,4 +47,4 @@ int tst_tmpdir_created(void);
/* declared in tst_tmpdir.c */
const char *tst_get_startwd(void);
-#endif /* OLD_TMPDIR_H__ */
+#endif /* TSO_TMPDIR_H__ */
similarity index 54%
rename from include/old/usctest.h
rename to include/old/tso_usctest.h
@@ -1,38 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
* Author: William Roske
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * Further, this software is distributed without any warranty that it is
- * free of the rightful claim of any third person regarding infringement
- * or the like. Any license provided herein, whether implied or
- * otherwise, applies only to this software file. Patent licenses, if
- * any, provided herein do not apply to combinations of this program with
- * other software, or any other product whatsoever.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
- * Mountain View, CA 94043, or:
- *
- * http://www.sgi.com
- *
- * For further information regarding this notice, see:
- *
- * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
+ * Copyright (c) Linux Test Project, 2026
*/
-#ifndef __USCTEST_H__
-#define __USCTEST_H__
+#ifndef TSO_USCTEST_H__
+#define TSO_USCTEST_H__
/* For PATH_MAX */
#include <linux/limits.h>
@@ -80,4 +54,4 @@ int usc_global_setup_hook();
#define TEST_LOOPING usc_test_looping
int usc_test_looping(int counter);
-#endif /* __USCTEST_H__ */
+#endif /* TSO_USCTEST_H__ */
@@ -43,8 +43,8 @@
#include <stdint.h>
#include "test.h"
-#include "ltp_priv.h"
-#include "usctest.h"
+#include "tso_priv.h"
+#include "tso_usctest.h"
#include "tst_clocks.h"
#ifndef UNIT_TEST
@@ -33,7 +33,7 @@
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
-#include "random_range.h"
+#include "tso_random_range.h"
/*
* Internal format of the range array set up by parse_range()
@@ -23,7 +23,7 @@
#include <math.h>
#include "lapi/fcntl.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *safe_basename(const char *file, const int lineno,
void (*cleanup_fn) (void), char *path)
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <string.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define OUTPUT_FNAME "output"
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <string.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define OUTPUT_FNAME "output"
#define LTPROOT "/opt/ltp"
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <string.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define OUTPUT_FNAME "output"
#define LTPROOT "/opt/ltp"
@@ -21,7 +21,7 @@
#include <fcntl.h>
#include <string.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define OUTPUT_FNAME "output"
#define LTPROOT "/opt/ltp"
@@ -1,5 +1,5 @@
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "test_safe_macros";
int TST_TOTAL = 1;
@@ -93,8 +93,8 @@
#endif
#include <stdlib.h> /* atoi, abs */
-#include "tlibio.h" /* defines LIO* macros */
-#include "random_range.h"
+#include "tso_lio.h" /* defines LIO* macros */
+#include "tso_random_range.h"
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
@@ -10,7 +10,7 @@
#include <sys/syscall.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/futex.h"
#define DEFAULT_MSEC_TIMEOUT 10000
@@ -22,7 +22,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
long tst_ncpus(void)
{
@@ -21,7 +21,7 @@
#include <sys/statfs.h>
#include "lapi/syscalls.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "tst_device.h"
#ifndef LOOP_CTL_GET_FREE
@@ -23,7 +23,7 @@
#include <dirent.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
int tst_dir_is_empty_(void (cleanup_fn)(void), const char *name, int verbose)
{
@@ -22,8 +22,8 @@
#include <unistd.h>
#include "test.h"
-#include "usctest.h"
-#include "safe_macros.h"
+#include "tso_usctest.h"
+#include "tso_safe_macros.h"
#define MAX_SANE_HARD_LINKS 65535
@@ -24,7 +24,7 @@
#include "test.h"
#include "tst_kernel.h"
-#include "old_safe_stdio.h"
+#include "tso_safe_stdio.h"
#include "lapi/abisize.h"
static int get_kernel_bits_from_uname(struct utsname *buf)
@@ -16,7 +16,7 @@
*/
#include "test.h"
-#include "ltp_priv.h"
+#include "tso_priv.h"
#include "tst_mkfs.h"
#include "tst_device.h"
@@ -28,8 +28,8 @@
#include "test.h"
#include "tst_kconfig.h"
-#include "ltp_priv.h"
-#include "old_module.h"
+#include "tso_priv.h"
+#include "tso_module.h"
void tst_module_exists_(void (cleanup_fn)(void),
const char *mod_name, char **mod_path)
@@ -22,7 +22,7 @@
*/
#include "test.h"
-#include "ltp_priv.h"
+#include "tso_priv.h"
void tst_parse_opts(int argc, char *argv[], const option_t *user_optarg,
void (*user_help)(void))
@@ -28,7 +28,7 @@
#include <unistd.h>
#include "test.h"
#include "tst_pid.h"
-#include "old_safe_file_ops.h"
+#include "tso_safe_file_ops.h"
#include "tst_safe_macros.h"
#include "lapi/syscalls.h"
@@ -48,9 +48,9 @@
#include <sys/wait.h>
#include "test.h"
-#include "safe_macros.h"
-#include "usctest.h"
-#include "ltp_priv.h"
+#include "tso_safe_macros.h"
+#include "tso_usctest.h"
+#include "tso_priv.h"
#include "tst_ansi_color.h"
long TEST_RETURN;
@@ -23,8 +23,8 @@
#include <pthread.h>
#include "test.h"
-#include "old_resource.h"
-#include "ltp_priv.h"
+#include "tso_resource.h"
+#include "tso_priv.h"
#ifndef PATH_MAX
#ifdef MAXPATHLEN
@@ -34,9 +34,9 @@
#include "tst_sys_conf.h"
#include "tst_kconfig.h"
#include "tst_private.h"
-#include "old_resource.h"
-#include "old_device.h"
-#include "old_tmpdir.h"
+#include "tso_resource.h"
+#include "tso_device.h"
+#include "tso_tmpdir.h"
#include "ltp-version.h"
#include "tst_hugepage.h"
@@ -72,9 +72,9 @@
#include "test.h"
#include "tst_buffers.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "tst_tmpdir.h"
-#include "ltp_priv.h"
+#include "tso_priv.h"
#include "lapi/futex.h"
/*
@@ -24,7 +24,7 @@
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static int is_kvm(void)
{
@@ -36,7 +36,7 @@
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "cgroup_xattr";
@@ -57,7 +57,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#ifdef DEBUG
#define dbg(x...) printf(x);
@@ -60,7 +60,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 30 /* Time interval in seconds */
#define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
@@ -61,7 +61,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 30 /* Time interval in seconds */
#define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
@@ -61,7 +61,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 100 /* Time interval in seconds */
#define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
@@ -62,7 +62,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 30 /* Time interval in seconds */
#define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
@@ -61,7 +61,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 30 /* Time interval in seconds */
#define NUM_INTERVALS 3 /* How many iterations of TIME_INTERVAL */
@@ -61,7 +61,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 30 /* Time interval in seconds */
#define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
@@ -61,7 +61,7 @@
#include "../libcontrollers/libcontrollers.h"
#include "test.h" /* LTP harness APIs */
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TIME_INTERVAL 100 /* Time interval in seconds */
#define NUM_INTERVALS 2 /* How many iterations of TIME_INTERVAL */
@@ -22,8 +22,8 @@
#include <stdlib.h>
#include "test.h"
-#include "old_module.h"
-#include "safe_macros.h"
+#include "tso_module.h"
+#include "tso_safe_macros.h"
#include "ltp_acpi.h"
@@ -34,7 +34,7 @@
#include "test.h"
#include "lapi/posix_clocks.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "cpufreq_boost";
@@ -27,8 +27,8 @@
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
-#include "old_module.h"
+#include "tso_safe_macros.h"
+#include "tso_module.h"
#include "../tpci_kernel/tpci.h"
@@ -33,7 +33,7 @@
#include <time.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
int rtc_fd = -1;
char *TCID = "rtc01";
@@ -53,8 +53,8 @@
#include <string.h>
#include "test.h"
-#include "safe_macros.h"
-#include "old_module.h"
+#include "tso_safe_macros.h"
+#include "tso_module.h"
#include "../tbio_kernel/tbio.h"
@@ -27,8 +27,8 @@
#include <unistd.h>
#include "test.h"
-#include "old_module.h"
-#include "safe_macros.h"
+#include "tso_module.h"
+#include "tso_safe_macros.h"
#include "tst_security.h"
#include "ltp_uaccess.h"
@@ -30,8 +30,8 @@
#include "test.h"
#include "tst_security.h"
-#include "safe_macros.h"
-#include "old_module.h"
+#include "tso_safe_macros.h"
+#include "tso_module.h"
/* number of test firmware files */
#define FW_FILES 5
@@ -84,7 +84,7 @@
#include "doio.h"
#include "write_log.h"
-#include "random_range.h"
+#include "tso_random_range.h"
#include "string_to_tokens.h"
#include "pattern.h"
@@ -85,7 +85,7 @@
#include <string.h>
#include <inttypes.h>
#include "dataascii.h"
-#include "random_range.h"
+#include "tso_random_range.h"
#include "databin.h"
#include "open_flags.h"
#include "forker.h"
@@ -145,7 +145,7 @@ void myexit(int x)
/* Once it is proven tlibio.c functions work properly, */
/* only tlibio.c functions will be used */
#else
-#include "tlibio.h"
+#include "tso_lio.h"
#endif
#ifndef PATH_MAX
@@ -589,7 +589,7 @@ int main(int argc, char **argv)
Progname, TagName);
exit(1);
}
- if (io_type == 99) /* hold-over until tlibio.h */
+ if (io_type == 99) /* hold-over until tso_lio.h */
using_random++;
#endif
break;
@@ -64,7 +64,7 @@
#include "bytes_by_prefix.h"
#include "string_to_tokens.h"
#include "open_flags.h"
-#include "random_range.h"
+#include "tso_random_range.h"
#ifndef PATH_MAX
#define PATH_MAX 512 /* ??? */
@@ -59,7 +59,7 @@
#include <unistd.h>
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "libftest.h"
char *TCID = "ftest01";
@@ -64,7 +64,7 @@
#include <stdio.h>
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "libftest.h"
char *TCID = "ftest03";
@@ -48,7 +48,7 @@
#include <errno.h>
#include <signal.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "libftest.h"
char *TCID = "ftest04";
@@ -63,7 +63,7 @@
#include <inttypes.h>
#include <sys/param.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "libftest.h"
char *TCID = "ftest05";
@@ -70,7 +70,7 @@
#include <unistd.h>
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "libftest.h"
char *TCID = "ftest07";
@@ -55,7 +55,7 @@
#include <unistd.h>
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "libftest.h"
char *TCID = "ftest08";
@@ -40,7 +40,7 @@
#include "diotest_routines.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "diotest01"; /* Test program identifier. */
int TST_TOTAL = 1; /* Total number of test conditions */
@@ -68,7 +68,7 @@
#include "diotest_routines.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/mmap.h"
char *TCID = "diotest4"; /* Test program identifier. */
@@ -103,7 +103,7 @@
#include <sys/mount.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define FILESIZE (12*1024*1024)
#define READSIZE (1024*1024)
@@ -48,10 +48,10 @@
#include <signal.h>
#include <sys/stat.h>
-#include "tlibio.h"
+#include "tso_lio.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/sem.h"
char *TCID = "pipeio";
@@ -32,7 +32,7 @@
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "numa_helper.h"
#include "lapi/syscalls.h"
@@ -51,7 +51,7 @@
#include <string.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define MAPS_FILE "/proc/self/maps"
@@ -43,7 +43,7 @@
#include <unistd.h>
#include <limits.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "numa_helper.h"
char *TCID = "vma02";
@@ -49,7 +49,7 @@
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "tst_kernel.h"
#include "lapi/abisize.h"
@@ -47,7 +47,7 @@
#include <unistd.h>
#include <limits.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "numa_helper.h"
char *TCID = "vma04";
@@ -32,7 +32,7 @@
/** LTP Port **/
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "hangup01"; /* Test program identifier. */
int TST_TOTAL = 5; /* Total number of test cases. */
@@ -6,7 +6,7 @@
#include <alloca.h>
#include <string.h>
#include <linux/unistd.h>
-#include "ltp_cpuid.h"
+#include "tso_cpuid.h"
#define PROC_PATH "/proc"
#define BUFF_SIZE 8192
@@ -6,7 +6,7 @@
#include <alloca.h>
#include <string.h>
#include <linux/unistd.h>
-#include "ltp_cpuid.h"
+#include "tso_cpuid.h"
#define PROC_PATH "/proc"
#define BUFF_SIZE 8192
@@ -1,6 +1,6 @@
#include <limits.h>
#include <stdlib.h>
-#include <old_tmpdir.h>
+#include <tso_tmpdir.h>
static char *fifofile;
@@ -43,7 +43,7 @@
#include <signal.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "prot_hsymlinks";
int TST_TOTAL = 396;
@@ -58,7 +58,7 @@
#include <sys/syscall.h>
#include <sched.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "tst_clone.h"
#define FLAG_ALL (CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|SIGCHLD)
@@ -53,7 +53,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "connect01";
int testno;
@@ -99,7 +99,7 @@
#include <sys/utsname.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fallocate.h"
#include "lapi/fcntl.h"
@@ -39,7 +39,7 @@
#include <limits.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fallocate.h"
#include "lapi/abisize.h"
@@ -51,7 +51,7 @@
#include <limits.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static void setup(void);
static void cleanup(void);
@@ -45,7 +45,7 @@
#include <sys/wait.h>
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define STRINGSIZE 27
#define STRING "abcdefghijklmnopqrstuvwxyz\n"
@@ -46,7 +46,7 @@
#include <signal.h>
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
@@ -49,7 +49,7 @@
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define STRINGSIZE 27
#define STRING "abcdefghijklmnopqrstuvwxyz\n"
@@ -45,7 +45,7 @@
#include <sys/wait.h>
#include <inttypes.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define STRINGSIZE 27
#define STRING "abcdefghijklmnopqrstuvwxyz\n"
@@ -35,7 +35,7 @@
#include "test.h"
#include "config.h"
#include "lapi/syscalls.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
static void setup(void);
@@ -24,7 +24,7 @@
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static void setup(void);
static void verify_fcntl(int);
@@ -76,7 +76,7 @@
#include <fcntl.h>
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define EXP_RET_VAL -1
#define SPL_FILE "/dev/null"
@@ -47,7 +47,7 @@
#include <errno.h>
#include <unistd.h> /* for _SC_OPEN_MAX */
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "fork09";
int TST_TOTAL = 1;
@@ -34,7 +34,7 @@
#include <signal.h>
#include "config.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/syscalls.h"
#define TEST_CASES 6
@@ -33,7 +33,7 @@
#include <string.h>
#include <signal.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/syscalls.h"
#define TEST_CASES 5
@@ -51,7 +51,7 @@
#include <stdlib.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/syscalls.h"
char *TCID = "get_robust_list01";
@@ -50,7 +50,7 @@
#include <time.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/posix_clocks.h"
char *TCID = "getrusage04";
@@ -57,7 +57,7 @@
#include <limits.h>
#include "test.h"
#include "lapi/syscalls.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#ifndef AT_FDCWD
#define AT_FDCWD -100
@@ -31,7 +31,7 @@
#include "test.h"
#include "lapi/syscalls.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#define DIR_MODE (S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP| \
@@ -53,7 +53,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "listen01";
int testno;
@@ -37,7 +37,7 @@
#include <pwd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/syscalls.h"
#include "numa_helper.h"
#include "migrate_pages_common.h"
@@ -43,7 +43,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static int pagesize;
static rlim_t STACK_LIMIT = 10485760;
@@ -35,7 +35,7 @@
#include <string.h>
#include <signal.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static void setup(void);
static void cleanup(void);
@@ -33,7 +33,7 @@
#include <string.h>
#include <signal.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#define PATHNAME "mknodattestdir"
@@ -35,7 +35,7 @@
#include <sys/mount.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#include "lapi/syscalls.h"
@@ -77,7 +77,7 @@
#include <pwd.h>
#include <sys/mman.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include <sys/resource.h>
void setup();
@@ -79,7 +79,7 @@
#include <ctype.h>
#include <sys/mman.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include <sys/resource.h>
#include <sys/utsname.h>
@@ -59,7 +59,7 @@
#include <errno.h>
#include <pwd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "move_pages_support.h"
#define TEST_PAGES 2
@@ -44,7 +44,7 @@
#include <unistd.h>
#include "test.h"
#include "lapi/syscalls.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "mprotect01";
int TST_TOTAL = 3;
@@ -41,7 +41,7 @@
#include <stdlib.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static void sighandler(int sig);
static void cleanup(void);
@@ -46,7 +46,7 @@
#include <sys/wait.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#ifndef PAGESIZE
#define PAGESIZE 4096
@@ -37,7 +37,7 @@
#include <stdlib.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
static void sighandler(int sig);
@@ -82,7 +82,7 @@
#include <fcntl.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define TEMPFILE "mremapfile"
@@ -41,7 +41,7 @@
#include <errno.h>
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "mremap05";
@@ -44,7 +44,7 @@
#include <sys/resource.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define INV_SYNC -1
#define TEMPFILE "msync_file"
@@ -25,7 +25,7 @@
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#include "openat.h"
@@ -43,7 +43,7 @@
#include "test.h"
#include "lapi/syscalls.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "perf_event_open01";
@@ -49,7 +49,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "pipe04";
int TST_TOTAL = 1;
@@ -51,7 +51,7 @@
#include <sys/wait.h>
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define PIPEWRTCNT 100 /* must be an even number */
@@ -17,7 +17,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include "ltp_signal.h"
+#include "tso_signal.h"
#include "time64_variants.h"
#include "tst_sig_proc.h"
#include "tst_test.h"
@@ -26,7 +26,7 @@
#include <errno.h>
#include <sys/types.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/abisize.h"
#include "config.h"
@@ -53,7 +53,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "recv01";
int testno;
@@ -53,7 +53,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "recvfrom01";
int testno;
@@ -32,7 +32,7 @@
#endif
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "removexattr01";
@@ -37,7 +37,7 @@
#endif
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "removexattr02";
@@ -37,7 +37,7 @@
#include <sys/mount.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "rename11";
@@ -48,7 +48,7 @@
#include <sys/mount.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#define MNTPOINT "mntpoint"
@@ -35,7 +35,7 @@
#define _GNU_SOURCE
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#include "renameat2.h"
@@ -24,7 +24,7 @@
#define _GNU_SOURCE
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/fcntl.h"
#include "renameat2.h"
@@ -57,7 +57,7 @@
#include "test.h"
#include "lapi/syscalls.h"
-#include "ltp_signal.h"
+#include "tso_signal.h"
char *TCID = "rt_sigprocmask02";
int TST_TOTAL = 2;
@@ -42,7 +42,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "send01";
int testno;
@@ -48,7 +48,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "sendmsg01";
int testno;
@@ -43,7 +43,7 @@
#include <limits.h>
#include "config.h"
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/sem.h"
char *TCID = "sendmsg02";
@@ -41,7 +41,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "sendto01";
int testno;
@@ -38,7 +38,7 @@
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "compat_16.h"
TCID_DEFINE(setfsuid04);
@@ -37,7 +37,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "setrlimit01";
int TST_TOTAL = 1;
@@ -63,7 +63,7 @@
#include "test.h"
#include "lapi/fcntl.h"
#include "lapi/syscalls.h"
-#include "ltp_signal.h"
+#include "tso_signal.h"
#define SFD_CLOEXEC O_CLOEXEC
@@ -59,7 +59,7 @@
#include "test.h"
#include "lapi/syscalls.h"
-#include "ltp_signal.h"
+#include "tso_signal.h"
#define SFD_NONBLOCK O_NONBLOCK
@@ -15,7 +15,7 @@
#include "config.h"
#include "tst_test.h"
-#include "ltp_signal.h"
+#include "tso_signal.h"
#include "lapi/syscalls.h"
static void sigpending_info(void)
@@ -108,7 +108,7 @@
#include <time.h>
#include <unistd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#ifdef __linux__
/* glibc2.2 definition needs -D_XOPEN_SOURCE, which breaks other things. */
@@ -40,7 +40,7 @@
#include <net/if.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "sockioctl01";
int testno;
@@ -87,7 +87,7 @@
#include <pwd.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#define MODE_RWX S_IRWXU | S_IRWXG | S_IRWXO
#define FILE_MODE S_IRUSR | S_IRGRP | S_IROTH
@@ -42,7 +42,7 @@
#include <string.h>
#include <signal.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/syscalls.h"
#define MYRETCODE -999
@@ -25,7 +25,7 @@
#include <errno.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
#include "lapi/mount.h"
static void setup(void);
@@ -78,7 +78,7 @@
#include <sys/wait.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "vfork02";
int TST_TOTAL = 1;
@@ -9,7 +9,7 @@
#include <stdlib.h>
#define TST_NO_DEFAULT_MAIN
#include "tst_test.h"
-#include "old/old_device.h"
+#include "old/tso_device.h"
extern struct tst_test *tst_test;
@@ -31,7 +31,7 @@
#include <netinet/in.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "asapi_01";
@@ -41,7 +41,7 @@
#include <arpa/inet.h>
#include "test.h"
-#include "safe_macros.h"
+#include "tso_safe_macros.h"
char *TCID = "asapi_03";
@@ -63,8 +63,8 @@
#include <stdlib.h>
#include <stdint.h>
#include "test.h"
-#include "usctest.h"
-#include "safe_macros.h"
+#include "tso_usctest.h"
+#include "tso_safe_macros.h"
char *TCID; /* Name of the testcase */
int TST_TOTAL; /* Total number of testcases */
@@ -50,7 +50,7 @@
#ifdef LTP
#include <test.h>
-#include <usctest.h>
+#include <tso_usctest.h>
#endif
#include <string.h>
To clearly distinguish legacy header files from the core (tst_*) and extension (tse_*) LTP APIs, legacy header files have been grouped into the otst_* namespace. Some legacy header files do not begin with old_, they still belong to the legacy header file set. For clarity, all legacy header files are now uniformly grouped into the tso_* namespace. include/old/{old_checkpoint.h => tso_checkpoint.h} include/old/{ltp_cpuid.h => tso_cpuid.h} include/old/{old_device.h => tso_device.h} include/old/{tlibio.h => tso_lio.h} include/old/{old_module.h => tso_module.h} include/old/{ltp_priv.h => tso_priv.h} include/old/{random_range.h => tso_random_range.h} include/old/{old_resource.h => tso_resource.h} include/old/{old_safe_file_ops.h => tso_safe_file_ops.h} include/old/{safe_macros.h => tso_safe_macros.h} include/old/{old_safe_net.h => tso_safe_net.h} include/old/{old_safe_stdio.h => tso_safe_stdio.h} include/old/{ltp_signal.h => tso_signal.h} include/old/{old_tmpdir.h => tso_tmpdir.h} include/old/{usctest.h => tso_usctest.h} No functional changes intended. Signed-off-by: Li Wang <liwang@redhat.com> --- include/lapi/rt_sigaction.h | 2 +- include/old/ltp_signal.h | 56 ------------------- include/old/old_checkpoint.h | 51 ----------------- include/old/old_resource.h | 55 ------------------ include/old/old_safe_stdio.h | 37 ------------ include/old/random_range.h | 45 --------------- include/old/test.h | 14 ++--- include/old/tso_checkpoint.h | 38 +++++++++++++ include/old/{ltp_cpuid.h => tso_cpuid.h} | 0 include/old/{old_device.h => tso_device.h} | 21 ++----- include/old/{tlibio.h => tso_lio.h} | 30 +--------- include/old/{old_module.h => tso_module.h} | 32 +---------- include/old/{ltp_priv.h => tso_priv.h} | 19 +------ include/old/tso_random_range.h | 20 +++++++ include/old/tso_resource.h | 34 +++++++++++ ...ld_safe_file_ops.h => tso_safe_file_ops.h} | 17 +----- .../old/{safe_macros.h => tso_safe_macros.h} | 10 +++- .../old/{old_safe_net.h => tso_safe_net.h} | 21 ++----- include/old/tso_safe_stdio.h | 26 +++++++++ include/old/tso_signal.h | 38 +++++++++++++ include/old/{old_tmpdir.h => tso_tmpdir.h} | 21 ++----- include/old/{usctest.h => tso_usctest.h} | 36 ++---------- lib/parse_opts.c | 4 +- lib/random_range.c | 2 +- lib/safe_macros.c | 2 +- lib/tests/trerrno.c | 2 +- lib/tests/tst_dataroot01.c | 2 +- lib/tests/tst_dataroot02.c | 2 +- lib/tests/tst_dataroot03.c | 2 +- lib/tests/tst_safe_macros.c | 2 +- lib/tlibio.c | 4 +- lib/tst_checkpoint.c | 2 +- lib/tst_cpu.c | 2 +- lib/tst_device.c | 2 +- lib/tst_dir_is_empty.c | 2 +- lib/tst_fs_link_count.c | 4 +- lib/tst_kernel.c | 2 +- lib/tst_mkfs.c | 2 +- lib/tst_module.c | 4 +- lib/tst_parse_opts.c | 2 +- lib/tst_pid.c | 2 +- lib/tst_res.c | 6 +- lib/tst_resource.c | 4 +- lib/tst_test.c | 6 +- lib/tst_tmpdir.c | 4 +- lib/tst_virt.c | 2 +- .../controllers/cgroup_xattr/cgroup_xattr.c | 2 +- .../controllers/cpuctl/cpuctl_def_task01.c | 2 +- .../controllers/cpuctl/cpuctl_def_task02.c | 2 +- .../controllers/cpuctl/cpuctl_def_task03.c | 2 +- .../controllers/cpuctl/cpuctl_def_task04.c | 2 +- .../kernel/controllers/cpuctl/cpuctl_test01.c | 2 +- .../kernel/controllers/cpuctl/cpuctl_test02.c | 2 +- .../kernel/controllers/cpuctl/cpuctl_test03.c | 2 +- .../kernel/controllers/cpuctl/cpuctl_test04.c | 2 +- .../kernel/device-drivers/acpi/ltp_acpi.c | 4 +- .../device-drivers/cpufreq/cpufreq_boost.c | 2 +- .../device-drivers/pci/tpci_user/tpci.c | 4 +- testcases/kernel/device-drivers/rtc/rtc01.c | 2 +- .../device-drivers/tbio/tbio_user/tbio.c | 4 +- .../kernel/device-drivers/uaccess/uaccess.c | 4 +- .../kernel/firmware/fw_load_user/fw_load.c | 4 +- testcases/kernel/fs/doio/doio.c | 2 +- testcases/kernel/fs/doio/growfiles.c | 6 +- testcases/kernel/fs/doio/iogen.c | 2 +- testcases/kernel/fs/ftest/ftest01.c | 2 +- testcases/kernel/fs/ftest/ftest03.c | 2 +- testcases/kernel/fs/ftest/ftest04.c | 2 +- testcases/kernel/fs/ftest/ftest05.c | 2 +- testcases/kernel/fs/ftest/ftest07.c | 2 +- testcases/kernel/fs/ftest/ftest08.c | 2 +- testcases/kernel/io/direct_io/diotest1.c | 2 +- testcases/kernel/io/direct_io/diotest4.c | 2 +- .../kernel/io/direct_io/dma_thread_diotest.c | 2 +- testcases/kernel/ipc/pipeio/pipeio.c | 4 +- testcases/kernel/lib/numa_helper.c | 2 +- testcases/kernel/mem/vma/vma01.c | 2 +- testcases/kernel/mem/vma/vma02.c | 2 +- testcases/kernel/mem/vma/vma03.c | 2 +- testcases/kernel/mem/vma/vma04.c | 2 +- testcases/kernel/pty/hangup01.c | 2 +- .../hyperthreading/ht_affinity/ht_utils.c | 2 +- .../hyperthreading/ht_enabled/ht_utils.c | 2 +- .../security/filecaps/filecaps_common.h | 2 +- .../security/prot_hsymlinks/prot_hsymlinks.c | 2 +- testcases/kernel/syscalls/clone/clone02.c | 2 +- testcases/kernel/syscalls/connect/connect01.c | 2 +- .../kernel/syscalls/fallocate/fallocate01.c | 2 +- .../kernel/syscalls/fallocate/fallocate02.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl07.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl11.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl16.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl19.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl20.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl31.c | 2 +- testcases/kernel/syscalls/fcntl/fcntl32.c | 2 +- .../kernel/syscalls/fdatasync/fdatasync02.c | 2 +- testcases/kernel/syscalls/fork/fork09.c | 2 +- testcases/kernel/syscalls/fstatat/fstatat01.c | 2 +- .../kernel/syscalls/futimesat/futimesat01.c | 2 +- .../get_robust_list/get_robust_list01.c | 2 +- .../kernel/syscalls/getrusage/getrusage04.c | 2 +- testcases/kernel/syscalls/linkat/linkat01.c | 2 +- testcases/kernel/syscalls/linkat/linkat02.c | 2 +- testcases/kernel/syscalls/listen/listen01.c | 2 +- .../syscalls/migrate_pages/migrate_pages01.c | 2 +- testcases/kernel/syscalls/mincore/mincore01.c | 2 +- testcases/kernel/syscalls/mkdirat/mkdirat01.c | 2 +- testcases/kernel/syscalls/mknodat/mknodat01.c | 2 +- testcases/kernel/syscalls/mknodat/mknodat02.c | 2 +- .../kernel/syscalls/mlockall/mlockall02.c | 2 +- .../kernel/syscalls/mlockall/mlockall03.c | 2 +- .../kernel/syscalls/move_pages/move_pages11.c | 2 +- .../kernel/syscalls/mprotect/mprotect01.c | 2 +- .../kernel/syscalls/mprotect/mprotect02.c | 2 +- .../kernel/syscalls/mprotect/mprotect03.c | 2 +- .../kernel/syscalls/mprotect/mprotect04.c | 2 +- testcases/kernel/syscalls/mremap/mremap01.c | 2 +- testcases/kernel/syscalls/mremap/mremap05.c | 2 +- testcases/kernel/syscalls/msync/msync03.c | 2 +- testcases/kernel/syscalls/openat/openat03.c | 2 +- .../perf_event_open/perf_event_open01.c | 2 +- testcases/kernel/syscalls/pipe/pipe04.c | 2 +- testcases/kernel/syscalls/pipe/pipe09.c | 2 +- testcases/kernel/syscalls/ppoll/ppoll01.c | 2 +- testcases/kernel/syscalls/profil/profil01.c | 2 +- testcases/kernel/syscalls/recv/recv01.c | 2 +- .../kernel/syscalls/recvfrom/recvfrom01.c | 2 +- .../syscalls/removexattr/removexattr01.c | 2 +- .../syscalls/removexattr/removexattr02.c | 2 +- testcases/kernel/syscalls/rename/rename11.c | 2 +- .../kernel/syscalls/renameat/renameat01.c | 2 +- .../kernel/syscalls/renameat2/renameat201.c | 2 +- .../kernel/syscalls/renameat2/renameat202.c | 2 +- .../rt_sigprocmask/rt_sigprocmask02.c | 2 +- testcases/kernel/syscalls/send/send01.c | 2 +- testcases/kernel/syscalls/sendmsg/sendmsg01.c | 2 +- testcases/kernel/syscalls/sendmsg/sendmsg02.c | 2 +- testcases/kernel/syscalls/sendto/sendto01.c | 2 +- .../kernel/syscalls/setfsuid/setfsuid04.c | 2 +- .../kernel/syscalls/setrlimit/setrlimit01.c | 2 +- .../kernel/syscalls/signalfd4/signalfd4_01.c | 2 +- .../kernel/syscalls/signalfd4/signalfd4_02.c | 2 +- .../kernel/syscalls/sigpending/sigpending02.c | 2 +- .../kernel/syscalls/sigrelse/sigrelse01.c | 2 +- .../kernel/syscalls/sockioctl/sockioctl01.c | 2 +- testcases/kernel/syscalls/symlink/symlink03.c | 2 +- .../kernel/syscalls/symlinkat/symlinkat01.c | 2 +- .../kernel/syscalls/umount2/umount2_01.c | 2 +- testcases/kernel/syscalls/vfork/vfork02.c | 2 +- testcases/lib/tst_device.c | 2 +- testcases/network/lib6/asapi_01.c | 2 +- testcases/network/lib6/asapi_03.c | 2 +- tools/apicmds/ltpapicmd.c | 4 +- utils/sctp/testlib/sctputil.h | 2 +- 155 files changed, 351 insertions(+), 576 deletions(-) delete mode 100644 include/old/ltp_signal.h delete mode 100644 include/old/old_checkpoint.h delete mode 100644 include/old/old_resource.h delete mode 100644 include/old/old_safe_stdio.h delete mode 100644 include/old/random_range.h create mode 100644 include/old/tso_checkpoint.h rename include/old/{ltp_cpuid.h => tso_cpuid.h} (100%) rename include/old/{old_device.h => tso_device.h} (74%) rename include/old/{tlibio.h => tso_lio.h} (79%) rename include/old/{old_module.h => tso_module.h} (68%) rename include/old/{ltp_priv.h => tso_priv.h} (62%) create mode 100644 include/old/tso_random_range.h create mode 100644 include/old/tso_resource.h rename include/old/{old_safe_file_ops.h => tso_safe_file_ops.h} (70%) rename include/old/{safe_macros.h => tso_safe_macros.h} (98%) rename include/old/{old_safe_net.h => tso_safe_net.h} (58%) create mode 100644 include/old/tso_safe_stdio.h create mode 100644 include/old/tso_signal.h rename include/old/{old_tmpdir.h => tso_tmpdir.h} (62%) rename include/old/{usctest.h => tso_usctest.h} (54%)