repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
criu | criu-master/criu/include/vma.h | #ifndef __CR_VMA_H__
#define __CR_VMA_H__
#include "image.h"
#include "common/list.h"
#include "images/vma.pb-c.h"
#include <sys/mman.h>
#include <string.h>
struct vm_area_list {
struct list_head h; /* list of VMAs */
unsigned nr; /* nr of all VMAs in the list */
unsigned int nr_aios; /* nr of AIOs VMAs ... | 4,001 | 29.784615 | 94 | h |
criu | criu-master/criu/include/linux/mount.h | #ifndef _CRIU_LINUX_MOUNT_H
#define _CRIU_LINUX_MOUNT_H
#include "common/config.h"
#include "compel/plugins/std/syscall-codes.h"
/* Copied from /usr/include/sys/mount.h */
#ifndef FSOPEN_CLOEXEC
/* The type of fsconfig call made. */
enum fsconfig_command {
FSCONFIG_SET_FLAG = 0, /* Set parameter, supplying no val... | 1,642 | 36.340909 | 86 | h |
criu | criu-master/criu/include/linux/rseq.h | /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
#ifndef _UAPI_LINUX_RSEQ_H
#define _UAPI_LINUX_RSEQ_H
#ifdef __has_include
#if __has_include("sys/rseq.h")
#include <sys/rseq.h>
#include "asm/thread_pointer.h"
#endif
#endif
#include <linux/types.h>
#include <asm/byteorder.h>
#include "common/config.h"... | 5,421 | 33.980645 | 114 | h |
criu | criu-master/criu/include/linux/userfaultfd.h | /*
* include/linux/userfaultfd.h
*
* Copyright (C) 2007 Davide Libenzi <davidel@xmailserver.org>
* Copyright (C) 2015 Red Hat, Inc.
*
*/
#ifndef _LINUX_USERFAULTFD_H
#define _LINUX_USERFAULTFD_H
#include <linux/types.h>
/*
* If the UFFDIO_API is upgraded someday, the UFFDIO_UNREGISTER and
* UFFDIO_WAKE ... | 6,273 | 29.906404 | 118 | h |
criu | criu-master/criu/pie/parasite-vdso.c | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <elf.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "int.h"
#include "types.h"
#include "page.h"
#include "compel/plugins/std/syscall.h"
#include "compel/plugins/std/log.h"
#includ... | 8,895 | 26.887147 | 118 | c |
criu | criu-master/criu/pie/parasite.c | #include <sys/mman.h>
#include <errno.h>
#include <signal.h>
#include <linux/limits.h>
#include <linux/capability.h>
#include <stdarg.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include "linux/rseq.h"
#include "common/config.h"
#include "int.h"
#include "types.h"
#include <compel/plugins/std/syscall.h>
#include "... | 19,603 | 22.227488 | 113 | c |
criu | criu-master/criu/pie/util-vdso.c | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <elf.h>
#include <fcntl.h>
#include <errno.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "image.h"
#include "util-vdso.h"
#include "vma.h"
#include "log.h"
#include "common/bug.h"
#ifdef CR_NOGLIB... | 7,702 | 22.996885 | 113 | c |
criu | criu-master/criu/unittest/unit.c | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "log.h"
#include "util.h"
#include "criu-log.h"
int parse_statement(int i, char *line, char **configuration);
int main(int argc, char *argv[], char *envp[])
{
char **configuration;
int i;
configuration = malloc(10 * sizeof(char *));
log_init(NU... | 4,992 | 32.510067 | 96 | c |
criu | criu-master/include/apparmor.h | #ifndef __CR_APPARMOR_H__
#define __CR_APPARMOR_H__
int collect_aa_namespace(char *profile);
int dump_aa_namespaces(void);
/*
* This is an operation similar to PTRACE_O_SUSPEND_SECCOMP but for apparmor,
* done entirely from userspace. All the namespaces to be dumped should be
* collected via collect_aa_namespaces(... | 551 | 24.090909 | 77 | h |
criu | criu-master/include/common/bug.h | #ifndef __CR_BUG_H__
#define __CR_BUG_H__
#include <signal.h>
#include <stdbool.h>
#include "common/compiler.h"
#ifndef BUG_ON_HANDLER
#ifdef CR_NOGLIBC
#define __raise()
#else
#define __raise() raise(SIGABRT)
#endif
#ifndef __clang_analyzer__
#ifndef pr_err
#error pr_err macro must be defined
#endif
#define BUG_O... | 1,125 | 25.186047 | 82 | h |
criu | criu-master/include/common/compiler.h | #ifndef __CR_COMPILER_H__
#define __CR_COMPILER_H__
/*
* Various definitions for success build,
* picked from various places, mostly from
* the linux kernel.
*/
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define NELEMS_AS_ARRAY(x, y) (sizeof(x) / sizeof((y)[0]))
#define BUILD_BUG_ON(condition) ((void)siz... | 4,759 | 30.733333 | 78 | h |
criu | criu-master/include/common/list.h | #ifndef __CR_LIST_H__
#define __CR_LIST_H__
/*
* Double linked lists.
*/
#include <stddef.h>
#include "common/compiler.h"
#define POISON_POINTER_DELTA 0
#define LIST_POISON1 ((void *)0x00100100 + POISON_POINTER_DELTA)
#define LIST_POISON2 ((void *)0x00200200 + POISON_POINTER_DELTA)
struct list_head {
s... | 11,166 | 27.633333 | 119 | h |
criu | criu-master/include/common/lock.h | #ifndef __CR_COMMON_LOCK_H__
#define __CR_COMMON_LOCK_H__
#include <stdint.h>
#include <linux/futex.h>
#include <sys/time.h>
#include <limits.h>
#include <errno.h>
#include "common/asm/atomic.h"
#include "common/compiler.h"
/* scan-build complains about dereferencing a NULL pointer here. */
#ifndef __clang_analyzer__... | 5,590 | 31.317919 | 111 | h |
criu | criu-master/include/common/scm-code.c | #ifndef __sys
#error "The __sys macro is required"
#endif
static void scm_fdset_init_chunk(struct scm_fdset *fdset, int nr_fds, void *data, unsigned ch_size)
{
struct cmsghdr *cmsg;
static char dummy;
fdset->hdr.msg_controllen = CMSG_LEN(sizeof(int) * nr_fds);
cmsg = CMSG_FIRSTHDR(&fdset->hdr);
cmsg->cmsg_len =... | 3,135 | 25.576271 | 110 | c |
criu | criu-master/include/common/scm.h | #ifndef __COMMON_SCM_H__
#define __COMMON_SCM_H__
#include <stdint.h>
#include <stdbool.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/uio.h>
/*
* Because of kernel doing kmalloc for user data passed
* in SCM messages, and there is kernel's SCM_MAX_FD as a limit
* for descriptors passed at once we're... | 1,319 | 23.444444 | 118 | h |
criu | criu-master/include/common/xmalloc.h | #ifndef __COMMON_XMALLOC_H__
#define __COMMON_XMALLOC_H__
#include <stdlib.h>
#include <string.h>
#ifndef pr_err
#error "Macro pr_err is needed."
#endif
#define __xalloc(op, size, ...) \
({ ... | 2,079 | 29.144928 | 91 | h |
criu | criu-master/include/common/arch/aarch64/asm/page.h | #ifndef __CR_ASM_PAGE_H__
#define __CR_ASM_PAGE_H__
#define ARCH_HAS_LONG_PAGES
#ifndef CR_NOGLIBC
#include <string.h> /* ffsl() */
#include <unistd.h> /* _SC_PAGESIZE */
extern unsigned __page_size;
extern unsigned __page_shift;
static inline unsigned page_size(void)
{
if (!__page_size)
__page_size = sysconf(_S... | 986 | 20.933333 | 73 | h |
criu | criu-master/include/common/arch/arm/asm/processor.h | #ifndef __CR_PROCESSOR_H__
#define __CR_PROCESSOR_H__
/* Copied from linux kernel arch/arm/include/asm/unified.h */
#define WASM(instr) #instr
/* Copied from linux kernel arch/arm/include/asm/processor.h */
#define __ALT_SMP_ASM(smp, up) \
"9998: " smp "\n" \
" .pushsec... | 656 | 26.375 | 89 | h |
criu | criu-master/include/common/arch/mips/asm/bitops.h | #ifndef _LINUX_BITOPS_H
#define _LINUX_BITOPS_H
#include <asm/types.h>
#include "common/compiler.h"
#include "common/asm-generic/bitops.h"
/**
* test_and_set_bit - Set a bit and return its old value
* @nr: Bit to set
* @addr: Address to count from
*
* This operation is atomic and cannot be reordered.
* It also i... | 926 | 22.175 | 82 | h |
criu | criu-master/include/common/arch/mips/asm/cmpxchg.h | #ifndef __CR_CMPXCHG_H__
#define __CR_CMPXCHG_H__
#define __cmpxchg_asm(ld, st, m, old, new) \
({ \
__typeof(*(m)) __ret; \
... | 4,028 | 60.045455 | 93 | h |
criu | criu-master/include/common/arch/mips/asm/fls64.h | #ifndef _ASM_GENERIC_BITOPS_FLS64_H_
#define _ASM_GENERIC_BITOPS_FLS64_H_
#include <asm/types.h>
/**
* fls64 - find last set bit in a 64-bit word
* @x: the word to search
*
* This is defined in a similar way as the libc and compiler builtin
* ffsll, but returns the position of the most significant set bit.
*
*... | 910 | 22.358974 | 68 | h |
criu | criu-master/include/common/arch/ppc64/asm/bitops.h | #ifndef __CR_BITOPS_H__
#define __CR_BITOPS_H__
/*
* PowerPC atomic bit operations.
*
* Merged version by David Gibson <david@gibson.dropbear.id.au>.
* Based on ppc64 versions by: Dave Engebretsen, Todd Inglett, Don
* Reed, Pat McCarthy, Peter Bergner, Anton Blanchard. They
* originally took it from the ppc32 co... | 6,669 | 30.611374 | 110 | h |
criu | criu-master/include/common/arch/ppc64/asm/cmpxchg.h | #ifndef __CR_CMPXCHG_H__
#define __CR_CMPXCHG_H__
/*
* Copied from kernel header file arch/powerpc/include/asm/cmpxchg.h
*/
#define PPC_ACQUIRE_BARRIER "isync \n"
#define PPC_RELEASE_BARRIER "lwsync \n"
/*
* Compare and exchange - if *p == old, set it to new,
* and return the old value of *p.
*/
static __alway... | 2,381 | 26.697674 | 115 | h |
criu | criu-master/include/common/arch/ppc64/asm/page.h | #ifndef __CR_ASM_PAGE_H__
#define __CR_ASM_PAGE_H__
#define ARCH_HAS_LONG_PAGES
#ifndef CR_NOGLIBC
#include <string.h> /* ffsl() */
#include <unistd.h> /* _SC_PAGESIZE */
extern unsigned __page_size;
extern unsigned __page_shift;
static inline unsigned page_size(void)
{
if (!__page_size)
__page_size = sysconf(_S... | 982 | 20.844444 | 73 | h |
criu | criu-master/include/common/arch/s390/asm/atomic.h | #ifndef __ARCH_S390_ATOMIC__
#define __ARCH_S390_ATOMIC__
#include "common/arch/s390/asm/atomic_ops.h"
#include "common/compiler.h"
#define ATOMIC_INIT(i) \
{ \
(i) \
}
typedef struct {
int counter;
} atomic_t;
static inline int atomic_read(const atomic_t *v)
{
int c;
asm volatile(" l %0,%1\... | 1,510 | 22.246154 | 67 | h |
criu | criu-master/include/common/arch/s390/asm/atomic_ops.h | #ifndef __ARCH_S390_ATOMIC_OPS__
#define __ARCH_S390_ATOMIC_OPS__
/* clang-format off */
#define __ATOMIC_OP(op_name, op_string) \
static inline int op_name(int val, int *ptr) \
{ \
int old, new; \
\
asm volatile( \
"0: lr %[new],%[old]\n" \
op_string " %[new],%[val]\n" \
... | 2,058 | 25.063291 | 68 | h |
criu | criu-master/include/common/arch/s390/asm/bitops.h | #ifndef _S390_BITOPS_H
#define _S390_BITOPS_H
#include "common/asm/bitsperlong.h"
#include "common/compiler.h"
#include "common/arch/s390/asm/atomic_ops.h"
#define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d))
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
#define __BITOPS_WORDS(bits) (((bits) + BITS_PER_L... | 3,892 | 24.611842 | 111 | h |
criu | criu-master/include/common/arch/x86/asm/bitops.h | #ifndef __CR_BITOPS_H__
#define __CR_BITOPS_H__
#include <stdbool.h>
#include "common/arch/x86/asm/cmpxchg.h"
#include "common/arch/x86/asm/asm.h"
#include "common/asm/bitsperlong.h"
#define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d))
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
#define DECLARE_BITMAP(nam... | 3,322 | 24.960938 | 112 | h |
criu | criu-master/include/common/arch/x86/asm/cmpxchg.h | #ifndef __CR_CMPXCHG_H__
#define __CR_CMPXCHG_H__
#include <stdint.h>
#define LOCK_PREFIX "\n\tlock; "
#define __X86_CASE_B 1
#define __X86_CASE_W 2
#define __X86_CASE_L 4
#define __X86_CASE_Q 8
/*
* An exchange-type operation, which takes a value and a pointer, and
* returns the old value. Make sure you never re... | 5,145 | 53.744681 | 110 | h |
criu | criu-master/include/common/asm-generic/bitops.h | /*
* Generic bits operations.
*
* Architectures that don't want their own implementation of those,
* should include this file into the arch/$ARCH/include/asm/bitops.h
*/
#ifndef __CR_GENERIC_BITOPS_H__
#define __CR_GENERIC_BITOPS_H__
#include "common/asm/bitsperlong.h"
#define DIV_ROUND_UP(n, d) (((n) + (d)-1) ... | 2,896 | 24.866071 | 110 | h |
criu | criu-master/lib/c/criu.h | /*
* (C) Copyright 2013 Parallels, Inc. (www.parallels.com).
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/license... | 13,493 | 39.890909 | 104 | h |
criu | criu-master/plugins/amdgpu/amdgpu_plugin_topology.h | #ifndef __KFD_PLUGIN_TOPOLOGY_H__
#define __KFD_PLUGIN_TOPOLOGY_H__
#define DRM_FIRST_RENDER_NODE 128
#define DRM_LAST_RENDER_NODE 255
#define TOPO_HEAP_TYPE_PUBLIC 1 /* HSA_HEAPTYPE_FRAME_BUFFER_PUBLIC */
#define TOPO_HEAP_TYPE_PRIVATE 2 /* HSA_HEAPTYPE_FRAME_BUFFER_PRIVATE */
#define TOPO_IOLINK_TYPE_ANY 0 /* ... | 3,850 | 28.623077 | 112 | h |
criu | criu-master/soccr/soccr.c | #include <errno.h>
#include <libnet.h>
#include <linux/sockios.h>
#include <linux/types.h>
#include <netinet/tcp.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include "soccr.h"
#ifndef SIOCOUTQNSD
/* MAO - Define SIOCOUTQNSD ioctl if we don't have it */
#define SIOCOUTQNSD 0x894B
#endif
enum {
T... | 22,423 | 23.085929 | 119 | c |
criu | criu-master/soccr/soccr.h | #ifndef __LIBSOCCR_H__
#define __LIBSOCCR_H__
#include <netinet/in.h> /* sockaddr_in, sockaddr_in6 */
#include <netinet/tcp.h> /* TCP_REPAIR_WINDOW, TCP_TIMESTAMP */
#include <stdint.h> /* uint32_t */
#include <sys/socket.h> /* sockaddr */
#include "common/config.h"
/* All packets with this mark have not to be blo... | 6,454 | 26.58547 | 96 | h |
criu | criu-master/soccr/test/tcp-constructor.c | #include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <linux/socket.h>
#include <netinet/tcp.h>
#include <string.h>
#include <getopt.h>
#include <stdlib.h>
#include "soccr/soccr.h"
#define pr_perror(fmt, ...) \
... | 4,008 | 25.90604 | 108 | c |
criu | criu-master/test/zdtm_ct.c | #include <sched.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/mount.h>
#include <unistd.h>
#include <time.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/utsname.h>
#ifndef CLONE_NEWTIME
#define CLONE_NEWTIME 0x00000080 /* New time nam... | 3,500 | 21.018868 | 84 | c |
criu | criu-master/test/compel/handle_binary.c | #include <string.h>
#include "uapi/piegen-err.h"
#include "piegen.h"
#include "arch_test_handle_binary.h"
extern int launch_test(void *mem, int expected_ret, const char *test_fmt, ...);
extern const size_t test_elf_buf_size;
static uintptr_t elf_addr;
static const char *test_bitness;
#define ASSERT(expected, fmt, .... | 2,308 | 23.052083 | 114 | c |
criu | criu-master/test/compel/main.c | /*
* Test for handle_binary().
* In this test ELF binary file is constructed from
* header up to sections and relocations.
* On each stage it tests non-valid ELF binaries to be parsed.
* For passing test, handle_binary should return errors for all
* non-valid binaries and handle all relocations.
*
* Test author... | 1,348 | 22.258621 | 71 | c |
criu | criu-master/test/compel/arch/aarch64/include/arch_test_handle_binary.h | #ifndef __ARCH_TEST_HANDLE_BINARY__
#define __ARCH_TEST_HANDLE_BINARY__
#include <string.h>
#include "uapi/elf64-types.h"
#define arch_run_tests(mem) __run_tests(mem, "")
extern int __run_tests(void *mem, const char *msg);
static __maybe_unused void arch_test_set_elf_hdr_ident(void *mem)
{
#if __BYTE_ORDER__ == __OR... | 614 | 23.6 | 69 | h |
criu | criu-master/test/compel/arch/ppc64/include/arch_test_handle_binary.h | #ifndef __ARCH_TEST_HANDLE_BINARY__
#define __ARCH_TEST_HANDLE_BINARY__
#include <string.h>
#include "uapi/elf64-types.h"
#define arch_run_tests(mem) __run_tests(mem, "")
extern int __run_tests(void *mem, const char *msg);
static __maybe_unused void arch_test_set_elf_hdr_ident(void *mem)
{
#if __BYTE_ORDER__ == __OR... | 612 | 23.52 | 69 | h |
criu | criu-master/test/compel/arch/x86/include/arch_test_handle_binary.h | #ifndef __ARCH_TEST_HANDLE_BINARY__
#define __ARCH_TEST_HANDLE_BINARY__
#include <string.h>
#ifdef CONFIG_X86_64
#include "uapi/elf64-types.h"
#define __run_tests run_tests_64
static __maybe_unused void arch_test_set_elf_hdr_ident(void *mem)
{
memcpy(mem, elf_ident_64_le, sizeof(elf_ident_64_le));
}
static __maybe... | 1,066 | 20.34 | 69 | h |
criu | criu-master/test/others/app-emu/make/tmpl.c | int foo(int a, int b)
{
#define A0(a, b) ((a) + (b))
#define A1(a, b) ((a) > (b)) ? A0((a) - (b), (b)) : A0((b) - (a), (a))
#define A2(a, b) ((a) > (b)) ? A1((a) - (b), (b)) : A1((b) - (a), (a))
#define A3(a, b) ((a) > (b)) ? A2((a) - (b), (b)) : A2((b) - (a), (a))
#define A4(a, b) ((a) > (b)) ? A3((a) - (b), (b))... | 869 | 50.176471 | 73 | c |
criu | criu-master/test/others/bers/bers.c | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <getopt.h>
#include <string.h>
#include <limits.h>
#include <stdbool.h>
#include <pthread.h>
#include <sys/mman.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <s... | 10,367 | 24.663366 | 119 | c |
criu | criu-master/test/others/libcriu/test_feature_check.c | #include "criu.h"
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "lib.h"
int main(int argc, char **argv)
{
int ret;
char *env;
bool mem_track = 0;
bool lazy_pages = 0;
bool pidfd_store = 0;... | 1,483 | 21.484848 | 86 | c |
criu | criu-master/test/others/pipes/pipe.c | /*
* A simple demo/test program using criu's --inherit-fd command line
* option to restore a process with (1) an external pipe and (2) a
* new log file.
*
* Note that it's possible to restore the process without --inherit-fd,
* but when it reads from or writes to the pipe, it will get a broken
* pipe signal.
*
... | 16,461 | 22.450142 | 106 | c |
criu | criu-master/test/others/socketpairs/socketpair.c | /*
* A simple demo/test program using criu's --inherit-fd command line
* option to restore a process with an external unix socket.
* Extending inherit's logic to unix sockets created by socketpair(..) syscall.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#incl... | 13,128 | 21.481164 | 104 | c |
criu | criu-master/test/zdtm/lib/bpfmap_zdtm.c | #include "bpfmap_zdtm.h"
int parse_bpfmap_fdinfo(int fd, struct bpfmap_fdinfo_obj *obj, uint32_t expected_to_meet)
{
uint32_t met = 0;
char str[512];
FILE *f;
sprintf(str, "/proc/self/fdinfo/%d", fd);
f = fopen(str, "r");
if (!f) {
pr_perror("Can't open fdinfo to parse");
return -1;
}
while (fgets(str, s... | 3,252 | 26.803419 | 108 | c |
criu | criu-master/test/zdtm/lib/bpfmap_zdtm.h | #include <bpf/bpf.h>
#include <inttypes.h>
#include "zdtmtst.h"
#define fdinfo_field(str, field) !strncmp(str, field ":", sizeof(field))
struct bpfmap_fdinfo_obj {
uint32_t map_type;
uint32_t key_size;
uint32_t value_size;
uint32_t max_entries;
uint32_t map_flags;
uint64_t memlock;
uint32_t map_id;
uint32_t ... | 567 | 26.047619 | 85 | h |
criu | criu-master/test/zdtm/lib/cpuid.h | #ifndef ZDTM_CPUID_H__
#define ZDTM_CPUID_H__
/*
* Adopted from linux kernel code.
*/
static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx)
{
/* ecx is often an input as well as an output. */
asm volatile("cpuid" : "=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx... | 791 | 25.4 | 117 | h |
criu | criu-master/test/zdtm/lib/fs.h | #ifndef ZDTM_FS_H_
#define ZDTM_FS_H_
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
#include <sys/types.h>
#include <sys/sysmacros.h>
#include <limits.h>
#define KDEV_MINORBITS 20
#define KDEV_MINORMASK ((1UL << KDEV_MINORBITS) - 1)
#define MKKDEV(ma, mi) (((ma) << KDEV_MINORBITS) | (mi))
static inline unsigned i... | 2,101 | 25.948718 | 93 | h |
criu | criu-master/test/zdtm/lib/list.h | #ifndef __ZDTM_LIST_H__
#define __ZDTM_LIST_H__
/*
* Double linked lists.
*/
#include <stddef.h>
#include "zdtmtst.h"
#define POISON_POINTER_DELTA 0
#define LIST_POISON1 ((void *)0x00100100 + POISON_POINTER_DELTA)
#define LIST_POISON2 ((void *)0x00200200 + POISON_POINTER_DELTA)
struct list_head {
struc... | 11,164 | 27.628205 | 119 | h |
criu | criu-master/test/zdtm/lib/lock.h | #ifndef CR_LOCK_H_
#define CR_LOCK_H_
#include <stdint.h>
#include <linux/futex.h>
#include <linux/unistd.h>
#include <sys/time.h>
#include <limits.h>
#include <errno.h>
#include "asm/atomic.h"
#define BUG_ON(condition) \
do { ... | 4,825 | 27.388235 | 116 | h |
criu | criu-master/test/zdtm/lib/mountinfo.c | #include <stdio.h>
#include <string.h>
#include "mountinfo.h"
#include "fs.h"
#include "xmalloc.h"
/*
* mountinfo contains mangled paths. space, tab and back slash were replaced
* with usual octal escape. This function replaces these symbols back.
*/
static void cure_path(char *path)
{
int i, len, off = 0;
if (... | 13,482 | 26.460285 | 118 | c |
criu | criu-master/test/zdtm/lib/mountinfo.h | #ifndef __ZDTM_MOUNTINFO__
#define __ZDTM_MOUNTINFO__
#include "list.h"
struct mountinfo_zdtm {
int mnt_id;
int parent_mnt_id;
char *mountpoint;
char *root;
unsigned int s_dev;
int shared_id;
int master_id;
char *fstype;
/* list of all mounts */
struct list_head list;
};
struct mntns_zdtm {
struct list_h... | 1,609 | 21.676056 | 82 | h |
criu | criu-master/test/zdtm/lib/ns.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <grp.h>
#include <string.h>
#include <errno.h>
#include <stdbool.h>
#include <sys/mount.h>
#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/param.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <signal.h>
#inclu... | 11,154 | 20.493256 | 97 | c |
criu | criu-master/test/zdtm/lib/tcp.c | #include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h> /* for sockaddr_in and inet_ntoa() */
#include "zdtmtst.h"
union sockaddr_inet {
struct sockaddr_in v4;
struct sockaddr_in6 v6;
};
int tcp_init_server(int family, int *port)
{
struct zdtm_tcp_opts opts = {
.reuseaddr = true,
.reuseport = false... | 3,142 | 21.775362 | 94 | c |
criu | criu-master/test/zdtm/lib/xmalloc.h | #ifndef __ZDTM_XMALLOC_H__
#define __ZDTM_XMALLOC_H__
#include <stdlib.h>
#include <string.h>
#ifndef pr_err
#error "Macro pr_err is needed."
#endif
#define __xalloc(op, size, ...) \
({ ... | 2,075 | 29.086957 | 91 | h |
criu | criu-master/test/zdtm/lib/zdtmtst.h | #ifndef _VIMITESU_H_
#define _VIMITESU_H_
#include <sys/types.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdlib.h>
#define INPROGRESS ".inprogress"
#ifndef PAGE_SIZE
#define PAGE_SIZE (unsigned int)(sysconf(_SC_PAGESIZE))
#endif
#ifndef PR_SET_CHILD_SUBREAPER
#define PR_SET_CHILD_SUBREAPER 36
#endif
/* ... | 8,675 | 36.886463 | 113 | h |
criu | criu-master/test/zdtm/lib/arch/mips/include/asm/atomic.h | #ifndef __CR_ATOMIC_H__
#define __CR_ATOMIC_H__
//#include <linux/types.h>
//#include "common/compiler.h"
//#include "common/arch/mips/asm/utils.h"
//#include "common/arch/mips/asm/cmpxchg.h"
typedef uint32_t atomic_t;
/* typedef struct { */
/* int counter; */
/* }atomic_t; */
#define __WEAK_LLSC_MB " sync \n"
#de... | 3,059 | 21.014388 | 73 | h |
criu | criu-master/test/zdtm/lib/arch/ppc64/include/asm/atomic.h | #ifndef __CR_ATOMIC_H__
#define __CR_ATOMIC_H__
/*
* PowerPC atomic operations
*
* Copied from kernel header file arch/powerpc/include/asm/atomic.h
*/
typedef uint32_t atomic_t;
#define PPC_ATOMIC_ENTRY_BARRIER "lwsync \n"
#define PPC_ATOMIC_EXIT_BARRIER "sync \n"
#define ATOMIC_INIT(i) \
{ \
... | 2,421 | 27.494118 | 115 | h |
criu | criu-master/test/zdtm/lib/arch/s390/include/asm/atomic.h | #ifndef __ARCH_S390_ATOMIC__
#define __ARCH_S390_ATOMIC__
#include <stdint.h>
typedef uint32_t atomic_t;
#define __ATOMIC_OP(op_name, op_type, op_string) \
static inline op_type op_name(op_type val, op_type *ptr) \
{ ... | 1,945 | 29.40625 | 95 | h |
criu | criu-master/test/zdtm/lib/arch/x86/include/asm/atomic.h | #ifndef ATOMIC_H__
#define ATOMIC_H__
#define atomic_set(mem, v) ({ asm volatile("lock xchg %0, %1\n" : "+r"(v), "+m"(*mem) : : "cc", "memory"); })
#define atomic_get(mem) \
({ ... | 1,617 | 52.933333 | 109 | h |
criu | criu-master/test/zdtm/static/aio01.c | #include <linux/aio_abi.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <aio.h>
#include "zdtmtst.h"
const char *test_doc = "Check head and tail restore correct";
const char *test_author = "Kirill Tkhai <kt... | 2,640 | 21.965217 | 68 | c |
criu | criu-master/test/zdtm/static/auto_dev-ioctl.h | /*
* Copyright 2008 Red Hat, Inc. All rights reserved.
* Copyright 2008 Ian Kent <raven@themaw.net>
*
* This file is part of the Linux kernel and is made available under
* the terms of the GNU General Public License, version 2, or at your
* option, any later version, incorporated herein by reference.
*/
#ifndef... | 5,006 | 23.787129 | 117 | h |
criu | criu-master/test/zdtm/static/autofs.c | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <limits.h>
#include <string.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/vfs.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <linux/auto_fs4.h>
#include <linux/magic... | 19,181 | 20.079121 | 120 | c |
criu | criu-master/test/zdtm/static/bind-mount.c | #include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <linux/limits.h>
#include "zdtmtst.h"
const char *test_doc = "Check bind-mounts";
const char *test_author = "Pavel Emelianov <avagin@parallels.com>";
char *dirname;
TEST_OPTION(dirnam... | 1,397 | 21.190476 | 80 | c |
criu | criu-master/test/zdtm/static/bpf_array.c | #include <bpf/bpf.h>
#include <sys/mman.h>
#include "zdtmtst.h"
#include "bpfmap_zdtm.h"
#ifndef LIBBPF_OPTS
#define LIBBPF_OPTS DECLARE_LIBBPF_OPTS
#define LEGACY_LIBBPF /* Using libbpf < 0.7 */
#endif
const char *test_doc = "Check that data and meta-data for BPF_MAP_TYPE_ARRAY"
"is correctly restored";
... | 4,465 | 23.811111 | 107 | c |
criu | criu-master/test/zdtm/static/bpf_hash.c | #include <sys/mman.h>
#include <bpf/bpf.h>
#include "zdtmtst.h"
#include "bpfmap_zdtm.h"
#ifndef LIBBPF_OPTS
#define LIBBPF_OPTS DECLARE_LIBBPF_OPTS
#define LEGACY_LIBBPF /* Using libbpf < 0.7 */
#endif
const char *test_doc = "Check that data and meta-data for BPF_MAP_TYPE_HASH"
"is correctly restored";
c... | 4,495 | 24.40113 | 107 | c |
criu | criu-master/test/zdtm/static/bridge.c | #include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <linux/limits.h>
#include <signal.h>
#include <arpa/inet.h>
#include <net/if.h>
#include "zdtmtst.h"
const char *test_doc = "check that empty br... | 2,498 | 20.921053 | 88 | c |
criu | criu-master/test/zdtm/static/cgroup04.c |
#include <unistd.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <limits.h>
#include "zdtmtst.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
const char *test_doc = "Check that some cgroups properties in... | 3,563 | 20.214286 | 96 | c |
criu | criu-master/test/zdtm/static/cgroup_ignore.c | #include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include "zdtmtst.h"
const char *test_doc = "Check that cgroups are correctly ignored";
const char *test_author = "Adrian Reber <areber@redhat.com>";
char *dirname;
TEST_OPTIO... | 4,137 | 24.54321 | 89 | c |
criu | criu-master/test/zdtm/static/cgroupv2_00.c | #include <sys/mount.h>
#include <sys/stat.h>
#include "zdtmtst.h"
const char *test_doc = "Check that some cgroup-v2 properties in kernel controllers are preserved";
const char *test_author = "Bui Quang Minh <minhquangbui99@gmail.com>";
char *dirname;
TEST_OPTION(dirname, string, "cgroup-v2 directory name", 1);
const... | 1,947 | 21.390805 | 98 | c |
criu | criu-master/test/zdtm/static/cmdlinenv00.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "zdtmtst.h"
const char *test_doc = "Test that env/cmdline/auxv restored well\n";
const char *test_author = "Cyrill Gorcunov <gorcunov@openvz.org"... | 2,745 | 21.145161 | 74 | c |
criu | criu-master/test/zdtm/static/cow01.c | #include <fcntl.h>
#include <sys/mman.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <inttypes.h>
#include <sys/wait.h>
#include <linux/limits.h>
#include <sys/user.h>
#include <stdlib.h>
#include <sys/socket.h>
#include "zdtmtst.h"
const char *test_doc = "Check that cow me... | 11,493 | 22.220202 | 115 | c |
criu | criu-master/test/zdtm/static/dumpable02.c | #include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "zdtmtst.h"
const char *test_doc = "Check dumpable flag handling (non-dumpable case)";
const char *test_author = "Filipe ... | 4,652 | 21.263158 | 79 | c |
criu | criu-master/test/zdtm/static/epoll01.c | #include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/eventfd.h>
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#... | 2,468 | 20.102564 | 98 | c |
criu | criu-master/test/zdtm/static/fanotify00.c | #include <unistd.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/inotify.h>
#include <unistd.h>
#include <stdlib.h>
#include <linux/fanotify.h>
#include "zdtmtst... | 7,470 | 24.07047 | 112 | c |
criu | criu-master/test/zdtm/static/file_lease02.c | #include <fcntl.h>
#include <stdio.h>
#include <signal.h>
#include <limits.h>
#include "zdtmtst.h"
#define FD_COUNT 3
#define BREAK_SIGNUM SIGIO
const char *test_doc = "Check c/r of breaking leases";
const char *test_author = "Pavel Begunkov <asml.silence@gmail.com>";
char *filename;
TEST_OPTION(filename, strin... | 3,148 | 21.176056 | 113 | c |
criu | criu-master/test/zdtm/static/file_locks01.c | #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/file.h>
#include <string.h>
#include <sys/stat.h>
#include <linux/limits.h>
#include "zdtmtst.h"
#include "fs.h"
#ifndef LOCK_MAND
#define LOCK_MAND 32
#endif
#ifndef LOCK_READ
#define LOCK_READ 64
#endif
const char *test_do... | 3,906 | 20.005376 | 107 | c |
criu | criu-master/test/zdtm/static/grow_map.c | #include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include "zdtmtst.h"
const char *test_doc = "Check that VMA-s with MAP_GROWSDOWN are restored correctly";
const char *test_author = "Andrew Vagin <avagin@openvz.org>";
int main(int argc, char **argv)
{
char *start_addr, *fake_grow_down... | 1,690 | 24.238806 | 101 | c |
criu | criu-master/test/zdtm/static/grow_map02.c | #include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <signal.h>
#include <sys/wait.h>
#include "zdtmtst.h"
const char *test_doc = "Check that a few grow-down VMA-s are restored correctly";
const char *test_author = "Andrew Vagin <avagin@openvz.org>";
int main(int argc, char **arg... | 1,503 | 23.655738 | 102 | c |
criu | criu-master/test/zdtm/static/grow_map03.c | #include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include "zdtmtst.h"
const char *test_doc = "Check that VMA-s with MAP_GROWSDOWN are restored correctly";
const char *test_author = "Andrew Vagin <avagin@openvz.org>";
/*
* This test case creates two consecutive grows down vmas with a h... | 1,035 | 23.093023 | 101 | c |
criu | criu-master/test/zdtm/static/inotify00.c | #include <unistd.h>
#include <limits.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/inotify.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <sched.h>
#include <sys/mount.h>
#includ... | 5,426 | 21.802521 | 93 | c |
criu | criu-master/test/zdtm/static/inotify_system.c | #include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <sys/syscall.h>
#include <signal.h>
#include <string.h>
#include "zdtmtst.h"
const char *test_doc = "Inotify on symlink sh... | 8,715 | 21.638961 | 107 | c |
criu | criu-master/test/zdtm/static/ipc_namespace.c | #include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>
#include <linux/msg.h>
#include <linux/sem.h>
#include <linux/shm.h>
#include <fcntl.h>
#include <limits.h>
#include "zdtmtst.h"
#define CLONE_NEWIPC 0x08000000
extern int msgctl(int __msqid, int __cmd, struct ms... | 10,847 | 26.886889 | 111 | c |
criu | criu-master/test/zdtm/static/maps00.c | #include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <setjmp.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "zdtmtst.h"
const char *test_doc = "Create all sorts of maps and compare /proc/pid/maps\n"
"befo... | 6,667 | 24.844961 | 116 | c |
criu | criu-master/test/zdtm/static/maps01.c | #include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <linux/limits.h>
#include "zdtmtst.h"
#define MEM_SIZE (1LU << 30)
#define MEM_OFFSET (1LU << 29)
#... | 3,874 | 21.142857 | 105 | c |
criu | criu-master/test/zdtm/static/maps02.c | #include <sys/mman.h>
#include "zdtmtst.h"
#include "get_smaps_bits.h"
#ifndef MADV_DONTDUMP
#define MADV_DONTDUMP 16
#endif
const char *test_doc = "Test shared memory with advises";
const char *test_author = "Cyrill Gorcunov <gorcunov@openvz.org>";
struct mmap_data {
void *start;
unsigned long orig_flags;
unsign... | 2,495 | 23 | 98 | c |
criu | criu-master/test/zdtm/static/maps05.c | #include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <setjmp.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "zdtmtst.h"
const char *test_doc = "Create a bunch of small VMAs and test they survive transferring\n";
c... | 2,187 | 22.782609 | 98 | c |
criu | criu-master/test/zdtm/static/maps_file_prot.c | #include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/limits.h>
#include "zdtmtst.h"
const char *test_doc = "Test mappings of same file with different prot";
const char *test_author = "Jamie Liu <jamieliu@google.com>";
char *filena... | 1,245 | 20.482759 | 72 | c |
criu | criu-master/test/zdtm/static/memfd01.c | #include <fcntl.h>
#include <linux/memfd.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/vfs.h>
#include <unistd.h>
#include "zdtmtst.h"
const char *test_doc = "memfd with differ... | 2,568 | 20.588235 | 75 | c |
criu | criu-master/test/zdtm/static/memfd03.c | #include <fcntl.h>
#include <linux/memfd.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/vfs.h>
#include <unistd.h>
#include <sys/mman.h>
#include "zdtmtst.h"
const char *test_doc = "memfd seals";
con... | 2,230 | 21.31 | 75 | c |
criu | criu-master/test/zdtm/static/mmx00.c | #include <string.h>
#include <stdlib.h>
#include "zdtmtst.h"
const char *test_doc = "Start a calculation, leaving MMX in a certain state,\n"
"before migration, continue after";
const char *test_author = "Pavel Emelianov <xemul@parallels.com>";
#if defined(__i386__) || defined(__x86_64__)
void start(uint8_t ... | 2,079 | 22.111111 | 117 | c |
criu | criu-master/test/zdtm/static/mnt_ext_auto.c | #include <sched.h>
#include <sys/mount.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <linux/limits.h>
#include <stdio.h>
#include <stdlib.h>
#include "zdtmtst.h"
const char *test_doc = "Check --mnt-ext-map";
const char *test_author = "Andrew Vagin <avagin@gmail.com... | 4,736 | 22.567164 | 96 | c |
criu | criu-master/test/zdtm/static/mnt_ext_multiple.c | #include <sched.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <linux/limits.h>
#include "zdtmtst.h"
const char *test_doc = "Check multiple non-common root external mounts with same external master";
const char *test_author = "Pavel Tikhomirov <ptikhomirov@virtuozzo.com>";
char *dirname = "mnt_ext_multiple... | 2,730 | 21.94958 | 98 | c |
criu | criu-master/test/zdtm/static/mnt_ext_sharing.c | #include <sched.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include "zdtmtst.h"
#include "lock.h"
const char *test_doc = "Check sharing vs external mounts vs mntns";
const char *test_author = "Pavel Tikhomirov <ptikhomirov@virtuozzo.com>";
char *dirname = "mnt_ext_sha... | 5,264 | 21.21519 | 102 | c |
criu | criu-master/test/zdtm/static/mntns_rw_ro_rw.c | #include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include "zdtmtst.h"
const char *test_doc = "Test read-only bind mounts";
const char *test_author = "Andrey Vagin <xemul@parallels.com>";
int main(int argc, char **argv)
{
test_init(argc, ar... | 1,069 | 21.765957 | 86 | c |
criu | criu-master/test/zdtm/static/mount_complex_sharing.c | #include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mount.h>
#include <linux/limits.h>
#include "mountinfo.h"
#include "zdtmtst.h"
const char *test_doc = "Check complex sharing options for mounts";
const char *test_author = "Pavel Tikhomirov <ptikhomirov@virtuozzo.com>";
... | 6,706 | 25.828 | 104 | c |
criu | criu-master/test/zdtm/static/mountpoints.c | #include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include <sched.h>
#include <sys/wait.h>
#include <stdlib.h>
#include "zdtmtst.h"
const char *test_doc = "Check that mountpoints (in mount namespace) are supported";
const c... | 7,711 | 24.368421 | 96 | c |
criu | criu-master/test/zdtm/static/msgque.c | #include <sched.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/sem.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <signal.h>
#include <errno.h>
#include "zdtmtst.h"
const char *test_doc = "Tests sysv5 msg queues supp... | 2,985 | 20.79562 | 94 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.