Browse Source

Add copyright headers to some files which lack them

Before this change, all files that exist since 20th century had
copyright headers, while most files that appeared later didn't.  This
change fixes the inconsistency by adding missing copyright headers.

It doesn't mean that copyright headers became maintained.  In my view,
git history provides much better information on this subject and is much
more accurate than copyright headers.
Dmitry V. Levin 4 years ago
parent
commit
38a34c9349
100 changed files with 2813 additions and 7 deletions
  1. 28
    0
      Makefile.am
  2. 28
    0
      affinity.c
  3. 31
    0
      cacheflush.c
  4. 29
    0
      capability.c
  5. 31
    0
      clone.c
  6. 31
    1
      configure.ac
  7. 29
    0
      epoll.c
  8. 28
    0
      eventfd.c
  9. 33
    0
      execve.c
  10. 32
    0
      fadvise.c
  11. 27
    0
      fanotify.c
  12. 27
    0
      fetch_seccomp_fprog.c
  13. 27
    0
      flock.h
  14. 30
    0
      futex.c
  15. 27
    0
      get_robust_list.c
  16. 28
    0
      inotify.c
  17. 27
    0
      ioprio.c
  18. 27
    0
      kcmp.c
  19. 27
    0
      kernel_types.h
  20. 27
    0
      kexec.c
  21. 27
    0
      keyctl.c
  22. 33
    0
      ldt.c
  23. 33
    0
      link.c
  24. 29
    0
      linux/arm/get_scno.c
  25. 27
    0
      linux/subcall.h
  26. 32
    0
      linux/x86_64/get_scno.c
  27. 28
    0
      linux/x86_64/getregs_old.c
  28. 27
    0
      lookup_dcookie.c
  29. 35
    0
      lseek.c
  30. 28
    0
      m4/mpers.m4
  31. 27
    0
      membarrier.c
  32. 27
    0
      memfd_create.c
  33. 33
    0
      mknod.c
  34. 32
    0
      mount.c
  35. 28
    0
      mpers.awk
  36. 25
    0
      mpers.sh
  37. 26
    0
      mpers_test.sh
  38. 28
    0
      mpers_type.h
  39. 34
    0
      open.c
  40. 28
    0
      or1k_atomic.c
  41. 28
    0
      perf.c
  42. 30
    0
      prctl.c
  43. 27
    0
      print_time.c
  44. 31
    0
      printmode.c
  45. 34
    0
      printsiginfo.c
  46. 34
    0
      printstat.h
  47. 28
    0
      process_vm.c
  48. 28
    0
      ptp.c
  49. 35
    0
      ptrace.h
  50. 33
    0
      readlink.c
  51. 29
    0
      sched.c
  52. 32
    0
      sigaltstack.c
  53. 27
    0
      signalfd.c
  54. 28
    0
      socketutils.c
  55. 33
    0
      statfs.c
  56. 28
    0
      sync_file_range.c
  57. 29
    0
      sysctl.c
  58. 34
    0
      sysinfo.c
  59. 27
    0
      syslog.c
  60. 28
    0
      sysmips.c
  61. 25
    0
      tests/Makefile.am
  62. 26
    1
      tests/bexecve.test
  63. 27
    0
      tests/bpf.c
  64. 27
    0
      tests/caps.awk
  65. 27
    0
      tests/caps.c
  66. 26
    1
      tests/count.test
  67. 26
    1
      tests/detach-running.test
  68. 26
    1
      tests/detach-sleeping.test
  69. 26
    1
      tests/detach-stopped.test
  70. 27
    0
      tests/epoll_create1.c
  71. 27
    0
      tests/eventfd.c
  72. 27
    0
      tests/execve.c
  73. 27
    0
      tests/execveat.c
  74. 27
    0
      tests/filter-unavailable.c
  75. 27
    0
      tests/fstatat.c
  76. 27
    0
      tests/fstatx.c
  77. 27
    0
      tests/inet-accept-connect-send-recv.c
  78. 25
    0
      tests/init.sh
  79. 27
    0
      tests/ioctl.c
  80. 27
    0
      tests/ip_mreq.c
  81. 28
    0
      tests/ipc_msg.c
  82. 27
    0
      tests/ipc_msgbuf.c
  83. 28
    0
      tests/ipc_sem.c
  84. 28
    0
      tests/ipc_shm.c
  85. 27
    0
      tests/lstatx.c
  86. 27
    0
      tests/match.awk
  87. 27
    0
      tests/membarrier.c
  88. 27
    0
      tests/mlock2.c
  89. 27
    0
      tests/mmap.c
  90. 28
    0
      tests/mmsg.c
  91. 27
    0
      tests/mq.c
  92. 27
    0
      tests/net-accept-connect.c
  93. 28
    0
      tests/net-yy-accept.awk
  94. 28
    0
      tests/net-yy-connect.awk
  95. 26
    1
      tests/net-yy.test
  96. 27
    0
      tests/netlink_inet_diag.c
  97. 27
    0
      tests/netlink_unix_diag.c
  98. 27
    0
      tests/oldselect.c
  99. 27
    0
      tests/pc.c
  100. 0
    0
      tests/pc.test

+ 28
- 0
Makefile.am View File

@@ -1,4 +1,32 @@
1 1
 # Automake input for strace.
2
+#
3
+# Copyright (c) 2002-2009 Roland McGrath <roland@redhat.com>
4
+# Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
5
+# Copyright (c) 2008-2015 Mike Frysinger <vapier@gentoo.org>
6
+# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
7
+# All rights reserved.
8
+#
9
+# Redistribution and use in source and binary forms, with or without
10
+# modification, are permitted provided that the following conditions
11
+# are met:
12
+# 1. Redistributions of source code must retain the above copyright
13
+#    notice, this list of conditions and the following disclaimer.
14
+# 2. Redistributions in binary form must reproduce the above copyright
15
+#    notice, this list of conditions and the following disclaimer in the
16
+#    documentation and/or other materials provided with the distribution.
17
+# 3. The name of the author may not be used to endorse or promote products
18
+#    derived from this software without specific prior written permission.
19
+#
20
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 30
 
3 31
 if HAVE_M32_RUNTIME
4 32
 TESTS_M32 = tests-m32

+ 28
- 0
affinity.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2002-2004 Roland McGrath <roland@redhat.com>
3
+ * Copyright (c) 2009-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 
3 31
 static void

+ 31
- 0
cacheflush.c View File

@@ -1,3 +1,34 @@
1
+/*
2
+ * Copyright (c) 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3
+ * Copyright (c) 2010 Mike Frysinger <vapier@gentoo.org>
4
+ * Copyright (c) 2010 Carmelo Amoroso <carmelo.amoroso@st.com>
5
+ * Copyright (c) 2015 Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
6
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
7
+ * All rights reserved.
8
+ *
9
+ * Redistribution and use in source and binary forms, with or without
10
+ * modification, are permitted provided that the following conditions
11
+ * are met:
12
+ * 1. Redistributions of source code must retain the above copyright
13
+ *    notice, this list of conditions and the following disclaimer.
14
+ * 2. Redistributions in binary form must reproduce the above copyright
15
+ *    notice, this list of conditions and the following disclaimer in the
16
+ *    documentation and/or other materials provided with the distribution.
17
+ * 3. The name of the author may not be used to endorse or promote products
18
+ *    derived from this software without specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+
1 32
 #include "defs.h"
2 33
 
3 34
 #ifdef HAVE_ASM_CACHECTL_H

+ 29
- 0
capability.c View File

@@ -1,3 +1,32 @@
1
+/*
2
+ * Copyright (c) 2000 Wichert Akkerman <wakkerma@debian.org>
3
+ * Copyright (c) 2011 Denys Vlasenko <dvlasenk@redhat.com>
4
+ * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions
9
+ * are met:
10
+ * 1. Redistributions of source code must retain the above copyright
11
+ *    notice, this list of conditions and the following disclaimer.
12
+ * 2. Redistributions in binary form must reproduce the above copyright
13
+ *    notice, this list of conditions and the following disclaimer in the
14
+ *    documentation and/or other materials provided with the distribution.
15
+ * 3. The name of the author may not be used to endorse or promote products
16
+ *    derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ */
29
+
1 30
 #include "defs.h"
2 31
 
3 32
 /* these constants are the same as in <linux/capability.h> */

+ 31
- 0
clone.c View File

@@ -1,3 +1,34 @@
1
+/*
2
+ * Copyright (c) 1999-2000 Wichert Akkerman <wichert@cistron.nl>
3
+ * Copyright (c) 2002-2005 Roland McGrath <roland@redhat.com>
4
+ * Copyright (c) 2008 Jan Kratochvil <jan.kratochvil@redhat.com>
5
+ * Copyright (c) 2009-2013 Denys Vlasenko <dvlasenk@redhat.com>
6
+ * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
7
+ * All rights reserved.
8
+ *
9
+ * Redistribution and use in source and binary forms, with or without
10
+ * modification, are permitted provided that the following conditions
11
+ * are met:
12
+ * 1. Redistributions of source code must retain the above copyright
13
+ *    notice, this list of conditions and the following disclaimer.
14
+ * 2. Redistributions in binary form must reproduce the above copyright
15
+ *    notice, this list of conditions and the following disclaimer in the
16
+ *    documentation and/or other materials provided with the distribution.
17
+ * 3. The name of the author may not be used to endorse or promote products
18
+ *    derived from this software without specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+
1 32
 #include "defs.h"
2 33
 
3 34
 #include <sched.h>

+ 31
- 1
configure.ac View File

@@ -1,4 +1,34 @@
1
-dnl Process this file with autoconf to create configure.  Use autoreconf.
1
+# Configure template for strace.
2
+#
3
+# Copyright (c) 1999-2001 Wichert Akkerman <wichert@deephackmode.org>
4
+# Copyright (c) 2002-2009 Roland McGrath <roland@redhat.com>
5
+# Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+# Copyright (c) 2008-2015 Mike Frysinger <vapier@gentoo.org>
7
+# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
8
+# All rights reserved.
9
+#
10
+# Redistribution and use in source and binary forms, with or without
11
+# modification, are permitted provided that the following conditions
12
+# are met:
13
+# 1. Redistributions of source code must retain the above copyright
14
+#    notice, this list of conditions and the following disclaimer.
15
+# 2. Redistributions in binary form must reproduce the above copyright
16
+#    notice, this list of conditions and the following disclaimer in the
17
+#    documentation and/or other materials provided with the distribution.
18
+# 3. The name of the author may not be used to endorse or promote products
19
+#    derived from this software without specific prior written permission.
20
+#
21
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+
2 32
 AC_PREREQ(2.57)
3 33
 AC_INIT([strace],
4 34
 	m4_esyscmd([./git-version-gen .tarball-version]),

+ 29
- 0
epoll.c View File

@@ -1,3 +1,32 @@
1
+/*
2
+ * Copyright (c) 2004-2007 Ulrich Drepper <drepper@redhat.com>
3
+ * Copyright (c) 2004 Roland McGrath <roland@redhat.com>
4
+ * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions
9
+ * are met:
10
+ * 1. Redistributions of source code must retain the above copyright
11
+ *    notice, this list of conditions and the following disclaimer.
12
+ * 2. Redistributions in binary form must reproduce the above copyright
13
+ *    notice, this list of conditions and the following disclaimer in the
14
+ *    documentation and/or other materials provided with the distribution.
15
+ * 3. The name of the author may not be used to endorse or promote products
16
+ *    derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ */
29
+
1 30
 #include "defs.h"
2 31
 #include <fcntl.h>
3 32
 #ifdef HAVE_SYS_EPOLL_H

+ 28
- 0
eventfd.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2007 Ulrich Drepper <drepper@redhat.com>
3
+ * Copyright (c) 2008-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 #include <fcntl.h>
3 31
 #ifdef HAVE_SYS_EVENTFD_H

+ 33
- 0
execve.c View File

@@ -1,3 +1,36 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2007 Roland McGrath <roland@redhat.com>
7
+ * Copyright (c) 2011-2012 Denys Vlasenko <vda.linux@googlemail.com>
8
+ * Copyright (c) 2010-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * All rights reserved.
10
+ *
11
+ * Redistribution and use in source and binary forms, with or without
12
+ * modification, are permitted provided that the following conditions
13
+ * are met:
14
+ * 1. Redistributions of source code must retain the above copyright
15
+ *    notice, this list of conditions and the following disclaimer.
16
+ * 2. Redistributions in binary form must reproduce the above copyright
17
+ *    notice, this list of conditions and the following disclaimer in the
18
+ *    documentation and/or other materials provided with the distribution.
19
+ * 3. The name of the author may not be used to endorse or promote products
20
+ *    derived from this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
1 34
 #include "defs.h"
2 35
 
3 36
 static void

+ 32
- 0
fadvise.c View File

@@ -1,3 +1,35 @@
1
+/*
2
+ * Copyright (c) 2004 Ulrich Drepper <drepper@redhat.com>
3
+ * Copyright (c) 2004 Roland McGrath <roland@redhat.com>
4
+ * Copyright (c) 2007 Daniel Jacobowitz  <dan@codesourcery.com>
5
+ * Copyright (c) 2009 Andreas Schwab <schwab@redhat.com>
6
+ * Copyright (c) 2009 Kirill A. Shutemov <kirill@shutemov.name>
7
+ * Copyright (c) 2011-2015 Dmitry V. Levin <ldv@altlinux.org>
8
+ * All rights reserved.
9
+ *
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions
12
+ * are met:
13
+ * 1. Redistributions of source code must retain the above copyright
14
+ *    notice, this list of conditions and the following disclaimer.
15
+ * 2. Redistributions in binary form must reproduce the above copyright
16
+ *    notice, this list of conditions and the following disclaimer in the
17
+ *    documentation and/or other materials provided with the distribution.
18
+ * 3. The name of the author may not be used to endorse or promote products
19
+ *    derived from this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
1 33
 #include "defs.h"
2 34
 
3 35
 #include <fcntl.h>

+ 27
- 0
fanotify.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 #include "xlat/fan_classes.h"

+ 27
- 0
fetch_seccomp_fprog.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 #include DEF_MPERS_TYPE(seccomp_fprog_t)

+ 27
- 0
flock.h View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include <linux/fcntl.h>
2 29
 
3 30
 #if defined HAVE_STRUCT_FLOCK

+ 30
- 0
futex.c View File

@@ -1,3 +1,33 @@
1
+/*
2
+ * Copyright (c) 2002-2003 Roland McGrath  <roland@redhat.com>
3
+ * Copyright (c) 2007-2008 Ulrich Drepper <drepper@redhat.com>
4
+ * Copyright (c) 2009 Andreas Schwab <schwab@redhat.com>
5
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+ * All rights reserved.
7
+ *
8
+ * Redistribution and use in source and binary forms, with or without
9
+ * modification, are permitted provided that the following conditions
10
+ * are met:
11
+ * 1. Redistributions of source code must retain the above copyright
12
+ *    notice, this list of conditions and the following disclaimer.
13
+ * 2. Redistributions in binary form must reproduce the above copyright
14
+ *    notice, this list of conditions and the following disclaimer in the
15
+ *    documentation and/or other materials provided with the distribution.
16
+ * 3. The name of the author may not be used to endorse or promote products
17
+ *    derived from this software without specific prior written permission.
18
+ *
19
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+ */
30
+
1 31
 #include "defs.h"
2 32
 
3 33
 #ifdef HAVE_LINUX_FUTEX_H

+ 27
- 0
get_robust_list.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2012-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 SYS_FUNC(get_robust_list)

+ 28
- 0
inotify.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
3
+ * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 #include <fcntl.h>
3 31
 

+ 27
- 0
ioprio.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 enum {

+ 27
- 0
kcmp.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 #include "xlat/kcmp_types.h"
3 30
 

+ 27
- 0
kernel_types.h View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #ifndef STRACE_KERNEL_TYPES_H
2 29
 
3 30
 # define STRACE_KERNEL_TYPES_H

+ 27
- 0
kexec.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 #include "xlat/kexec_load_flags.h"

+ 27
- 0
keyctl.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 typedef int32_t key_serial_t;

+ 33
- 0
ldt.c View File

@@ -1,3 +1,36 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2002-2004 Roland McGrath <roland@redhat.com>
7
+ * Copyright (c) 2010 Andreas Schwab <schwab@linux-m68k.org>
8
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * All rights reserved.
10
+ *
11
+ * Redistribution and use in source and binary forms, with or without
12
+ * modification, are permitted provided that the following conditions
13
+ * are met:
14
+ * 1. Redistributions of source code must retain the above copyright
15
+ *    notice, this list of conditions and the following disclaimer.
16
+ * 2. Redistributions in binary form must reproduce the above copyright
17
+ *    notice, this list of conditions and the following disclaimer in the
18
+ *    documentation and/or other materials provided with the distribution.
19
+ * 3. The name of the author may not be used to endorse or promote products
20
+ *    derived from this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
1 34
 #include "defs.h"
2 35
 
3 36
 #if defined I386 || defined X86_64 || defined X32

+ 33
- 0
link.c View File

@@ -1,3 +1,36 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2006 Ulrich Drepper <drepper@redhat.com>
7
+ * Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
8
+ * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * All rights reserved.
10
+ *
11
+ * Redistribution and use in source and binary forms, with or without
12
+ * modification, are permitted provided that the following conditions
13
+ * are met:
14
+ * 1. Redistributions of source code must retain the above copyright
15
+ *    notice, this list of conditions and the following disclaimer.
16
+ * 2. Redistributions in binary form must reproduce the above copyright
17
+ *    notice, this list of conditions and the following disclaimer in the
18
+ *    documentation and/or other materials provided with the distribution.
19
+ * 3. The name of the author may not be used to endorse or promote products
20
+ *    derived from this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
1 34
 #include "defs.h"
2 35
 
3 36
 #include <fcntl.h>

+ 29
- 0
linux/arm/get_scno.c View File

@@ -1,3 +1,32 @@
1
+/*
2
+ * Copyright (c) 2003 Russell King <rmk@arm.linux.org.uk>
3
+ * Copyright (c) 2011-2013 Denys Vlasenko <vda.linux@googlemail.com>
4
+ * Copyright (c) 2011-2015 Dmitry V. Levin <ldv@altlinux.org>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions
9
+ * are met:
10
+ * 1. Redistributions of source code must retain the above copyright
11
+ *    notice, this list of conditions and the following disclaimer.
12
+ * 2. Redistributions in binary form must reproduce the above copyright
13
+ *    notice, this list of conditions and the following disclaimer in the
14
+ *    documentation and/or other materials provided with the distribution.
15
+ * 3. The name of the author may not be used to endorse or promote products
16
+ *    derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ */
29
+
1 30
 /* Return codes: 1 - ok, 0 - ignore, other - error. */
2 31
 static int
3 32
 arch_get_scno(struct tcb *tcp)

+ 27
- 0
linux/subcall.h View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #ifndef SYS_socket_subcall
2 29
 # error SYS_socket_subcall is not defined
3 30
 #endif

+ 32
- 0
linux/x86_64/get_scno.c View File

@@ -1,3 +1,35 @@
1
+/*
2
+ * Copyright (c) 2002 Andi Kleen <ak@suse.de>
3
+ * Copyright (c) 2002 Michal Ludvig <mludvig@suse.cz>
4
+ * Copyright (c) 2002 Roland McGrath <roland@redhat.com>
5
+ * Copyright (c) 2008-2013 Denys Vlasenko <vda.linux@googlemail.com>
6
+ * Copyright (c) 2012 H.J. Lu <hongjiu.lu@intel.com>
7
+ * Copyright (c) 2010-2015 Dmitry V. Levin <ldv@altlinux.org>
8
+ * All rights reserved.
9
+ *
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions
12
+ * are met:
13
+ * 1. Redistributions of source code must retain the above copyright
14
+ *    notice, this list of conditions and the following disclaimer.
15
+ * 2. Redistributions in binary form must reproduce the above copyright
16
+ *    notice, this list of conditions and the following disclaimer in the
17
+ *    documentation and/or other materials provided with the distribution.
18
+ * 3. The name of the author may not be used to endorse or promote products
19
+ *    derived from this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
1 33
 /* Return codes: 1 - ok, 0 - ignore, other - error. */
2 34
 static int
3 35
 arch_get_scno(struct tcb *tcp)

+ 28
- 0
linux/x86_64/getregs_old.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2013 Denys Vlasenko <vda.linux@googlemail.com>
3
+ * Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 /*
2 30
  * PTRACE_GETREGSET was added to the kernel in v2.6.25,
3 31
  * a PTRACE_GETREGS based fallback is provided for old kernels.

+ 27
- 0
lookup_dcookie.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 SYS_FUNC(lookup_dcookie)

+ 35
- 0
lseek.c View File

@@ -1,3 +1,38 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2002-2005 Roland McGrath <roland@redhat.com>
7
+ * Copyright (c) 2009 Andreas Schwab <schwab@redhat.com>
8
+ * Copyright (c) 2012 H.J. Lu <hongjiu.lu@intel.com>
9
+ * Copyright (c) 2013 Denys Vlasenko <vda.linux@googlemail.com>
10
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
11
+ * All rights reserved.
12
+ *
13
+ * Redistribution and use in source and binary forms, with or without
14
+ * modification, are permitted provided that the following conditions
15
+ * are met:
16
+ * 1. Redistributions of source code must retain the above copyright
17
+ *    notice, this list of conditions and the following disclaimer.
18
+ * 2. Redistributions in binary form must reproduce the above copyright
19
+ *    notice, this list of conditions and the following disclaimer in the
20
+ *    documentation and/or other materials provided with the distribution.
21
+ * 3. The name of the author may not be used to endorse or promote products
22
+ *    derived from this software without specific prior written permission.
23
+ *
24
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
25
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
28
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ */
35
+
1 36
 #include "defs.h"
2 37
 
3 38
 #include "xlat/whence_codes.h"

+ 28
- 0
m4/mpers.m4 View File

@@ -1,3 +1,31 @@
1
+#!/usr/bin/m4
2
+#
3
+# Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
4
+# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
5
+# All rights reserved.
6
+#
7
+# Redistribution and use in source and binary forms, with or without
8
+# modification, are permitted provided that the following conditions
9
+# are met:
10
+# 1. Redistributions of source code must retain the above copyright
11
+#    notice, this list of conditions and the following disclaimer.
12
+# 2. Redistributions in binary form must reproduce the above copyright
13
+#    notice, this list of conditions and the following disclaimer in the
14
+#    documentation and/or other materials provided with the distribution.
15
+# 3. The name of the author may not be used to endorse or promote products
16
+#    derived from this software without specific prior written permission.
17
+#
18
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
1 29
 AC_DEFUN([st_MPERS],[
2 30
 
3 31
 pushdef([MPERS_NAME], translit([$1], [a-z], [A-Z]))

+ 27
- 0
membarrier.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 #include "xlat/membarrier_cmds.h"

+ 27
- 0
memfd_create.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 #include "xlat/memfd_create_flags.h"

+ 33
- 0
mknod.c View File

@@ -1,3 +1,36 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2006 Ulrich Drepper <drepper@redhat.com>
7
+ * Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
8
+ * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * All rights reserved.
10
+ *
11
+ * Redistribution and use in source and binary forms, with or without
12
+ * modification, are permitted provided that the following conditions
13
+ * are met:
14
+ * 1. Redistributions of source code must retain the above copyright
15
+ *    notice, this list of conditions and the following disclaimer.
16
+ * 2. Redistributions in binary form must reproduce the above copyright
17
+ *    notice, this list of conditions and the following disclaimer in the
18
+ *    documentation and/or other materials provided with the distribution.
19
+ * 3. The name of the author may not be used to endorse or promote products
20
+ *    derived from this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
1 34
 #include "defs.h"
2 35
 
3 36
 #include <fcntl.h>

+ 32
- 0
mount.c View File

@@ -1,3 +1,35 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2005 Roland McGrath <roland@redhat.com>
7
+ * Copyright (c) 2007-2015 Dmitry V. Levin <ldv@altlinux.org>
8
+ * All rights reserved.
9
+ *
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions
12
+ * are met:
13
+ * 1. Redistributions of source code must retain the above copyright
14
+ *    notice, this list of conditions and the following disclaimer.
15
+ * 2. Redistributions in binary form must reproduce the above copyright
16
+ *    notice, this list of conditions and the following disclaimer in the
17
+ *    documentation and/or other materials provided with the distribution.
18
+ * 3. The name of the author may not be used to endorse or promote products
19
+ *    derived from this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
1 33
 #include "defs.h"
2 34
 
3 35
 #define MS_MGC_VAL	0xc0ed0000	/* old magic mount flag number */

+ 28
- 0
mpers.awk View File

@@ -1,3 +1,31 @@
1
+#!/bin/gawk
2
+#
3
+# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
4
+# Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
5
+# All rights reserved.
6
+#
7
+# Redistribution and use in source and binary forms, with or without
8
+# modification, are permitted provided that the following conditions
9
+# are met:
10
+# 1. Redistributions of source code must retain the above copyright
11
+#    notice, this list of conditions and the following disclaimer.
12
+# 2. Redistributions in binary form must reproduce the above copyright
13
+#    notice, this list of conditions and the following disclaimer in the
14
+#    documentation and/or other materials provided with the distribution.
15
+# 3. The name of the author may not be used to endorse or promote products
16
+#    derived from this software without specific prior written permission.
17
+#
18
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
1 29
 function compare_indices(i1, v1, i2, v2) {
2 30
 	c1 = strtonum(sprintf("%s", i1))
3 31
 	c2 = strtonum(sprintf("%s", i2))

+ 25
- 0
mpers.sh View File

@@ -1,4 +1,29 @@
1 1
 #!/bin/sh -e
2
+#
3
+# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
4
+# All rights reserved.
5
+#
6
+# Redistribution and use in source and binary forms, with or without
7
+# modification, are permitted provided that the following conditions
8
+# are met:
9
+# 1. Redistributions of source code must retain the above copyright
10
+#    notice, this list of conditions and the following disclaimer.
11
+# 2. Redistributions in binary form must reproduce the above copyright
12
+#    notice, this list of conditions and the following disclaimer in the
13
+#    documentation and/or other materials provided with the distribution.
14
+# 3. The name of the author may not be used to endorse or promote products
15
+#    derived from this software without specific prior written permission.
16
+#
17
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 27
 
3 28
 export LC_ALL=C
4 29
 

+ 26
- 0
mpers_test.sh View File

@@ -1,4 +1,30 @@
1 1
 #!/bin/sh -efu
2
+#
3
+# Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
4
+# Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
5
+# All rights reserved.
6
+#
7
+# Redistribution and use in source and binary forms, with or without
8
+# modification, are permitted provided that the following conditions
9
+# are met:
10
+# 1. Redistributions of source code must retain the above copyright
11
+#    notice, this list of conditions and the following disclaimer.
12
+# 2. Redistributions in binary form must reproduce the above copyright
13
+#    notice, this list of conditions and the following disclaimer in the
14
+#    documentation and/or other materials provided with the distribution.
15
+# 3. The name of the author may not be used to endorse or promote products
16
+#    derived from this software without specific prior written permission.
17
+#
18
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 28
 
3 29
 mpers_name="$1"; shift
4 30
 size="$(printf %s "$mpers_name" |tr -cd '[0-9]')"

+ 28
- 0
mpers_type.h View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
3
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #ifdef IN_MPERS
2 30
 # define STRINGIFY(a) #a
3 31
 # define DEF_MPERS_TYPE(args) STRINGIFY(args.h)

+ 34
- 0
open.c View File

@@ -1,3 +1,37 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993, 1994, 1995, 1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2005-2007 Roland McGrath <roland@redhat.com>
7
+ * Copyright (c) 2006-2007 Ulrich Drepper <drepper@redhat.com>
8
+ * Copyright (c) 2009-2013 Denys Vlasenko <dvlasenk@redhat.com>
9
+ * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
10
+ * All rights reserved.
11
+ *
12
+ * Redistribution and use in source and binary forms, with or without
13
+ * modification, are permitted provided that the following conditions
14
+ * are met:
15
+ * 1. Redistributions of source code must retain the above copyright
16
+ *    notice, this list of conditions and the following disclaimer.
17
+ * 2. Redistributions in binary form must reproduce the above copyright
18
+ *    notice, this list of conditions and the following disclaimer in the
19
+ *    documentation and/or other materials provided with the distribution.
20
+ * 3. The name of the author may not be used to endorse or promote products
21
+ *    derived from this software without specific prior written permission.
22
+ *
23
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ */
34
+
1 35
 #include "defs.h"
2 36
 
3 37
 #include <fcntl.h>

+ 28
- 0
or1k_atomic.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2013 Christian Svensson <blue@cmd.nu>
3
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 
3 31
 #ifdef OR1K

+ 28
- 0
perf.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2013 Ben Noordhuis <info@bnoordhuis.nl>
3
+ * Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 
3 31
 #ifdef HAVE_LINUX_PERF_EVENT_H

+ 30
- 0
prctl.c View File

@@ -1,3 +1,33 @@
1
+/*
2
+ * Copyright (c) 1994-1996 Rick Sladkey <jrs@world.std.com>
3
+ * Copyright (c) 1996-2000 Wichert Akkerman <wichert@cistron.nl>
4
+ * Copyright (c) 2005-2007 Roland McGrath <roland@redhat.com>
5
+ * Copyright (c) 2008-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+ * All rights reserved.
7
+ *
8
+ * Redistribution and use in source and binary forms, with or without
9
+ * modification, are permitted provided that the following conditions
10
+ * are met:
11
+ * 1. Redistributions of source code must retain the above copyright
12
+ *    notice, this list of conditions and the following disclaimer.
13
+ * 2. Redistributions in binary form must reproduce the above copyright
14
+ *    notice, this list of conditions and the following disclaimer in the
15
+ *    documentation and/or other materials provided with the distribution.
16
+ * 3. The name of the author may not be used to endorse or promote products
17
+ *    derived from this software without specific prior written permission.
18
+ *
19
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+ */
30
+
1 31
 #include "defs.h"
2 32
 
3 33
 #include <sys/prctl.h>

+ 27
- 0
print_time.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 #include DEF_MPERS_TYPE(time_t)

+ 31
- 0
printmode.c View File

@@ -1,3 +1,34 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2012 Denys Vlasenko <vda.linux@googlemail.com>
7
+ * All rights reserved.
8
+ *
9
+ * Redistribution and use in source and binary forms, with or without
10
+ * modification, are permitted provided that the following conditions
11
+ * are met:
12
+ * 1. Redistributions of source code must retain the above copyright
13
+ *    notice, this list of conditions and the following disclaimer.
14
+ * 2. Redistributions in binary form must reproduce the above copyright
15
+ *    notice, this list of conditions and the following disclaimer in the
16
+ *    documentation and/or other materials provided with the distribution.
17
+ * 3. The name of the author may not be used to endorse or promote products
18
+ *    derived from this software without specific prior written permission.
19
+ *
20
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+
1 32
 #include "defs.h"
2 33
 
3 34
 #include <fcntl.h>

+ 34
- 0
printsiginfo.c View File

@@ -1,3 +1,37 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2001 John Hughes <john@Calva.COM>
7
+ * Copyright (c) 2013 Denys Vlasenko <vda.linux@googlemail.com>
8
+ * Copyright (c) 2011-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
10
+ * All rights reserved.
11
+ *
12
+ * Redistribution and use in source and binary forms, with or without
13
+ * modification, are permitted provided that the following conditions
14
+ * are met:
15
+ * 1. Redistributions of source code must retain the above copyright
16
+ *    notice, this list of conditions and the following disclaimer.
17
+ * 2. Redistributions in binary form must reproduce the above copyright
18
+ *    notice, this list of conditions and the following disclaimer in the
19
+ *    documentation and/or other materials provided with the distribution.
20
+ * 3. The name of the author may not be used to endorse or promote products
21
+ *    derived from this software without specific prior written permission.
22
+ *
23
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ */
34
+
1 35
 #include "defs.h"
2 36
 
3 37
 #include DEF_MPERS_TYPE(siginfo_t)

+ 34
- 0
printstat.h View File

@@ -1,3 +1,37 @@
1
+/*
2
+ * Copyright (c) 1999-2003 Ulrich Drepper <drepper@redhat.com>
3
+ * Copyright (c) 2004 David S. Miller <davem@nuts.davemloft.net>
4
+ * Copyright (c) 2003-2005 Roland McGrath <roland@redhat.com>
5
+ * Copyright (c) 2007 Jan Kratochvil <jan.kratochvil@redhat.com>
6
+ * Copyright (c) 2009 Denys Vlasenko <dvlasenk@redhat.com>
7
+ * Copyright (c) 2009-2010 Andreas Schwab <schwab@linux-m68k.org>
8
+ * Copyright (c) 2012 H.J. Lu <hongjiu.lu@intel.com>
9
+ * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
10
+ * All rights reserved.
11
+ *
12
+ * Redistribution and use in source and binary forms, with or without
13
+ * modification, are permitted provided that the following conditions
14
+ * are met:
15
+ * 1. Redistributions of source code must retain the above copyright
16
+ *    notice, this list of conditions and the following disclaimer.
17
+ * 2. Redistributions in binary form must reproduce the above copyright
18
+ *    notice, this list of conditions and the following disclaimer in the
19
+ *    documentation and/or other materials provided with the distribution.
20
+ * 3. The name of the author may not be used to endorse or promote products
21
+ *    derived from this software without specific prior written permission.
22
+ *
23
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ */
34
+
1 35
 #ifndef DO_PRINTSTAT
2 36
 # define DO_PRINTSTAT do_printstat
3 37
 #endif

+ 28
- 0
process_vm.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2012 Denys Vlasenko <vda.linux@googlemail.com>
3
+ * Copyright (c) 2012-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 
3 31
 SYS_FUNC(process_vm_readv)

+ 28
- 0
ptp.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2014 Stefan Sørensen <stefan.sorensen@spectralink.com>
3
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 #include <linux/ioctl.h>
3 31
 #include <linux/ptp_clock.h>

+ 35
- 0
ptrace.h View File

@@ -1,3 +1,38 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 2004 Roland McGrath <roland@redhat.com>
6
+ * Copyright (c) 2010 Wang Chao <wang.chao@cn.fujitsu.com>
7
+ * Copyright (c) 2011-2013 Denys Vlasenko <vda.linux@googlemail.com>
8
+ * Copyright (c) 2011-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * Copyright (c) 2013 Ali Polatel <alip@exherbo.org>
10
+ * Copyright (c) 2015 Mike Frysinger <vapier@gentoo.org>
11
+ * All rights reserved.
12
+ *
13
+ * Redistribution and use in source and binary forms, with or without
14
+ * modification, are permitted provided that the following conditions
15
+ * are met:
16
+ * 1. Redistributions of source code must retain the above copyright
17
+ *    notice, this list of conditions and the following disclaimer.
18
+ * 2. Redistributions in binary form must reproduce the above copyright
19
+ *    notice, this list of conditions and the following disclaimer in the
20
+ *    documentation and/or other materials provided with the distribution.
21
+ * 3. The name of the author may not be used to endorse or promote products
22
+ *    derived from this software without specific prior written permission.
23
+ *
24
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
25
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
28
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ */
35
+
1 36
 #ifdef NEED_PTRACE_PROTOTYPE_WORKAROUND
2 37
 # define ptrace xptrace
3 38
 # include <sys/ptrace.h>

+ 33
- 0
readlink.c View File

@@ -1,3 +1,36 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2006 Ulrich Drepper <drepper@redhat.com>
7
+ * Copyright (c) 2006 Bernhard Kaindl <bk@suse.de>
8
+ * Copyright (c) 2006-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * All rights reserved.
10
+ *
11
+ * Redistribution and use in source and binary forms, with or without
12
+ * modification, are permitted provided that the following conditions
13
+ * are met:
14
+ * 1. Redistributions of source code must retain the above copyright
15
+ *    notice, this list of conditions and the following disclaimer.
16
+ * 2. Redistributions in binary form must reproduce the above copyright
17
+ *    notice, this list of conditions and the following disclaimer in the
18
+ *    documentation and/or other materials provided with the distribution.
19
+ * 3. The name of the author may not be used to endorse or promote products
20
+ *    derived from this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
1 34
 #include "defs.h"
2 35
 
3 36
 static int

+ 29
- 0
sched.c View File

@@ -1,3 +1,32 @@
1
+/*
2
+ * Copyright (c) 2004 Ulrich Drepper <drepper@redhat.com>
3
+ * Copyright (c) 2005 Roland McGrath <roland@redhat.com>
4
+ * Copyright (c) 2012-2015 Dmitry V. Levin <ldv@altlinux.org>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions
9
+ * are met:
10
+ * 1. Redistributions of source code must retain the above copyright
11
+ *    notice, this list of conditions and the following disclaimer.
12
+ * 2. Redistributions in binary form must reproduce the above copyright
13
+ *    notice, this list of conditions and the following disclaimer in the
14
+ *    documentation and/or other materials provided with the distribution.
15
+ * 3. The name of the author may not be used to endorse or promote products
16
+ *    derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ */
29
+
1 30
 #include "defs.h"
2 31
 
3 32
 #include <sched.h>

+ 32
- 0
sigaltstack.c View File

@@ -1,3 +1,35 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
7
+ * Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
8
+ * All rights reserved.
9
+ *
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions
12
+ * are met:
13
+ * 1. Redistributions of source code must retain the above copyright
14
+ *    notice, this list of conditions and the following disclaimer.
15
+ * 2. Redistributions in binary form must reproduce the above copyright
16
+ *    notice, this list of conditions and the following disclaimer in the
17
+ *    documentation and/or other materials provided with the distribution.
18
+ * 3. The name of the author may not be used to endorse or promote products
19
+ *    derived from this software without specific prior written permission.
20
+ *
21
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
26
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+ */
32
+
1 33
 #include "defs.h"
2 34
 
3 35
 #include DEF_MPERS_TYPE(stack_t)

+ 27
- 0
signalfd.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2008-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 #include <fcntl.h>
3 30
 #ifdef HAVE_SYS_SIGNALFD_H

+ 28
- 0
socketutils.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2014 Zubin Mithra <zubin.mithra@gmail.com>
3
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 #include <netinet/in.h>
3 31
 #include <sys/socket.h>

+ 33
- 0
statfs.c View File

@@ -1,3 +1,36 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2003 Ulrich Drepper <drepper@redhat.com>
7
+ * Copyright (c) 2012 Andreas Schwab <schwab@linux-m68k.org>
8
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * All rights reserved.
10
+ *
11
+ * Redistribution and use in source and binary forms, with or without
12
+ * modification, are permitted provided that the following conditions
13
+ * are met:
14
+ * 1. Redistributions of source code must retain the above copyright
15
+ *    notice, this list of conditions and the following disclaimer.
16
+ * 2. Redistributions in binary form must reproduce the above copyright
17
+ *    notice, this list of conditions and the following disclaimer in the
18
+ *    documentation and/or other materials provided with the distribution.
19
+ * 3. The name of the author may not be used to endorse or promote products
20
+ *    derived from this software without specific prior written permission.
21
+ *
22
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+ */
33
+
1 34
 #include "defs.h"
2 35
 #ifdef HAVE_SYS_VFS_H
3 36
 # include <sys/vfs.h>

+ 28
- 0
sync_file_range.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2013 William Manley <william.manley@youview.com>
3
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 
3 31
 #include <fcntl.h>

+ 29
- 0
sysctl.c View File

@@ -1,3 +1,32 @@
1
+/*
2
+ * Copyright (c) 1999 Ulrich Drepper <drepper@cygnus.com>
3
+ * Copyright (c) 2005 Roland McGrath <roland@redhat.com>
4
+ * Copyright (c) 2005-2015 Dmitry V. Levin <ldv@altlinux.org>
5
+ * All rights reserved.
6
+ *
7
+ * Redistribution and use in source and binary forms, with or without
8
+ * modification, are permitted provided that the following conditions
9
+ * are met:
10
+ * 1. Redistributions of source code must retain the above copyright
11
+ *    notice, this list of conditions and the following disclaimer.
12
+ * 2. Redistributions in binary form must reproduce the above copyright
13
+ *    notice, this list of conditions and the following disclaimer in the
14
+ *    documentation and/or other materials provided with the distribution.
15
+ * 3. The name of the author may not be used to endorse or promote products
16
+ *    derived from this software without specific prior written permission.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ */
29
+
1 30
 #include "defs.h"
2 31
 
3 32
 #include <linux/sysctl.h>

+ 34
- 0
sysinfo.c View File

@@ -1,3 +1,37 @@
1
+/*
2
+ * Copyright (c) 1991, 1992 Paul Kranenburg <pk@cs.few.eur.nl>
3
+ * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
4
+ * Copyright (c) 1993-1996 Rick Sladkey <jrs@world.std.com>
5
+ * Copyright (c) 1996-1999 Wichert Akkerman <wichert@cistron.nl>
6
+ * Copyright (c) 2012 H.J. Lu <hongjiu.lu@intel.com>
7
+ * Copyright (c) 2012 Denys Vlasenko <vda.linux@googlemail.com>
8
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
9
+ * Copyright (c) 2015 Elvira Khabirova <lineprinter0@gmail.com>
10
+ * All rights reserved.
11
+ *
12
+ * Redistribution and use in source and binary forms, with or without
13
+ * modification, are permitted provided that the following conditions
14
+ * are met:
15
+ * 1. Redistributions of source code must retain the above copyright
16
+ *    notice, this list of conditions and the following disclaimer.
17
+ * 2. Redistributions in binary form must reproduce the above copyright
18
+ *    notice, this list of conditions and the following disclaimer in the
19
+ *    documentation and/or other materials provided with the distribution.
20
+ * 3. The name of the author may not be used to endorse or promote products
21
+ *    derived from this software without specific prior written permission.
22
+ *
23
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ */
34
+
1 35
 #include "defs.h"
2 36
 #include DEF_MPERS_TYPE(sysinfo_t)
3 37
 #include <sys/sysinfo.h>

+ 27
- 0
syslog.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2012-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include "defs.h"
2 29
 
3 30
 enum {

+ 28
- 0
sysmips.c View File

@@ -1,3 +1,31 @@
1
+/*
2
+ * Copyright (c) 2001 Wichert Akkerman <wichert@deephackmode.org>
3
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+ * All rights reserved.
5
+ *
6
+ * Redistribution and use in source and binary forms, with or without
7
+ * modification, are permitted provided that the following conditions
8
+ * are met:
9
+ * 1. Redistributions of source code must retain the above copyright
10
+ *    notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright
12
+ *    notice, this list of conditions and the following disclaimer in the
13
+ *    documentation and/or other materials provided with the distribution.
14
+ * 3. The name of the author may not be used to endorse or promote products
15
+ *    derived from this software without specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ */
28
+
1 29
 #include "defs.h"
2 30
 
3 31
 #ifdef MIPS

+ 25
- 0
tests/Makefile.am View File

@@ -1,4 +1,29 @@
1 1
 # Automake input for strace tests.
2
+#
3
+# Copyright (c) 2011-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+# All rights reserved.
5
+#
6
+# Redistribution and use in source and binary forms, with or without
7
+# modification, are permitted provided that the following conditions
8
+# are met:
9
+# 1. Redistributions of source code must retain the above copyright
10
+#    notice, this list of conditions and the following disclaimer.
11
+# 2. Redistributions in binary form must reproduce the above copyright
12
+#    notice, this list of conditions and the following disclaimer in the
13
+#    documentation and/or other materials provided with the distribution.
14
+# 3. The name of the author may not be used to endorse or promote products
15
+#    derived from this software without specific prior written permission.
16
+#
17
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 27
 
3 28
 OS = linux
4 29
 ARCH = @arch@

+ 26
- 1
tests/bexecve.test View File

@@ -1,6 +1,31 @@
1 1
 #!/bin/sh
2
-
2
+#
3 3
 # Check -bexecve behavior.
4
+#
5
+# Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
6
+# All rights reserved.
7
+#
8
+# Redistribution and use in source and binary forms, with or without
9
+# modification, are permitted provided that the following conditions
10
+# are met:
11
+# 1. Redistributions of source code must retain the above copyright
12
+#    notice, this list of conditions and the following disclaimer.
13
+# 2. Redistributions in binary form must reproduce the above copyright
14
+#    notice, this list of conditions and the following disclaimer in the
15
+#    documentation and/or other materials provided with the distribution.
16
+# 3. The name of the author may not be used to endorse or promote products
17
+#    derived from this software without specific prior written permission.
18
+#
19
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 29
 
5 30
 . "${srcdir=.}/init.sh"
6 31
 

+ 27
- 0
tests/bpf.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #ifdef HAVE_CONFIG_H
2 29
 # include "config.h"
3 30
 #endif

+ 27
- 0
tests/caps.awk View File

@@ -1,3 +1,30 @@
1
+#!/bin/gawk
2
+#
3
+# Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
4
+# All rights reserved.
5
+#
6
+# Redistribution and use in source and binary forms, with or without
7
+# modification, are permitted provided that the following conditions
8
+# are met:
9
+# 1. Redistributions of source code must retain the above copyright
10
+#    notice, this list of conditions and the following disclaimer.
11
+# 2. Redistributions in binary form must reproduce the above copyright
12
+#    notice, this list of conditions and the following disclaimer in the
13
+#    documentation and/or other materials provided with the distribution.
14
+# 3. The name of the author may not be used to endorse or promote products
15
+#    derived from this software without specific prior written permission.
16
+#
17
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+
1 28
 BEGIN {
2 29
 	cap = "(0|CAP_[A-Z_]+(\\|CAP_[A-Z_]+)*|CAP_[A-Z_]+(\\|CAP_[A-Z_]+){37}\\|0xffffffc0)"
3 30
 	r[1] = "^capget\\(\\{_LINUX_CAPABILITY_VERSION_3, 0\\}, \\{" cap ", " cap ", " cap "\\}\\) = 0$"

+ 27
- 0
tests/caps.c View File

@@ -1,3 +1,30 @@
1
+/*
2
+ * Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions
7
+ * are met:
8
+ * 1. Redistributions of source code must retain the above copyright
9
+ *    notice, this list of conditions and the following disclaimer.
10
+ * 2. Redistributions in binary form must reproduce the above copyright
11
+ *    notice, this list of conditions and the following disclaimer in the
12
+ *    documentation and/or other materials provided with the distribution.
13
+ * 3. The name of the author may not be used to endorse or promote products
14
+ *    derived from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
1 28
 #include <errno.h>
2 29
 
3 30
 extern int capget(int *, int *);

+ 26
- 1
tests/count.test View File

@@ -1,6 +1,31 @@
1 1
 #!/bin/sh
2
-
2
+#
3 3
 # Check whether -c and -w options work.
4
+#
5
+# Copyright (c) 2014-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+# All rights reserved.
7
+#
8
+# Redistribution and use in source and binary forms, with or without
9
+# modification, are permitted provided that the following conditions
10
+# are met:
11
+# 1. Redistributions of source code must retain the above copyright
12
+#    notice, this list of conditions and the following disclaimer.
13
+# 2. Redistributions in binary form must reproduce the above copyright
14
+#    notice, this list of conditions and the following disclaimer in the
15
+#    documentation and/or other materials provided with the distribution.
16
+# 3. The name of the author may not be used to endorse or promote products
17
+#    derived from this software without specific prior written permission.
18
+#
19
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 29
 
5 30
 . "${srcdir=.}/init.sh"
6 31
 

+ 26
- 1
tests/detach-running.test View File

@@ -1,6 +1,31 @@
1 1
 #!/bin/sh
2
-
2
+#
3 3
 # Ensure that strace can detach from running processes.
4
+#
5
+# Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+# All rights reserved.
7
+#
8
+# Redistribution and use in source and binary forms, with or without
9
+# modification, are permitted provided that the following conditions
10
+# are met:
11
+# 1. Redistributions of source code must retain the above copyright
12
+#    notice, this list of conditions and the following disclaimer.
13
+# 2. Redistributions in binary form must reproduce the above copyright
14
+#    notice, this list of conditions and the following disclaimer in the
15
+#    documentation and/or other materials provided with the distribution.
16
+# 3. The name of the author may not be used to endorse or promote products
17
+#    derived from this software without specific prior written permission.
18
+#
19
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 29
 
5 30
 . "${srcdir=.}/init.sh"
6 31
 

+ 26
- 1
tests/detach-sleeping.test View File

@@ -1,6 +1,31 @@
1 1
 #!/bin/sh
2
-
2
+#
3 3
 # Ensure that strace can detach from sleeping processes.
4
+#
5
+# Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+# All rights reserved.
7
+#
8
+# Redistribution and use in source and binary forms, with or without
9
+# modification, are permitted provided that the following conditions
10
+# are met:
11
+# 1. Redistributions of source code must retain the above copyright
12
+#    notice, this list of conditions and the following disclaimer.
13
+# 2. Redistributions in binary form must reproduce the above copyright
14
+#    notice, this list of conditions and the following disclaimer in the
15
+#    documentation and/or other materials provided with the distribution.
16
+# 3. The name of the author may not be used to endorse or promote products
17
+#    derived from this software without specific prior written permission.
18
+#
19
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 29
 
5 30
 . "${srcdir=.}/init.sh"
6 31
 

+ 26
- 1
tests/detach-stopped.test View File

@@ -1,6 +1,31 @@
1 1
 #!/bin/sh
2
-
2
+#
3 3
 # Ensure that strace can detach from stopped processes.
4
+#
5
+# Copyright (c) 2013-2015 Dmitry V. Levin <ldv@altlinux.org>
6
+# All rights reserved.
7
+#
8
+# Redistribution and use in source and binary forms, with or without
9
+# modification, are permitted provided that the following conditions
10
+# are met:
11
+# 1. Redistributions of source code must retain the above copyright
12
+#    notice, this list of conditions and the following disclaimer.
13
+# 2. Redistributions in binary form must reproduce the above copyright
14
+#    notice, this list of conditions and the following disclaimer in the
15
+#    documentation and/or other materials provided with the distribution.
16
+# 3. The name of the author may not be used to endorse or promote products
17
+#    derived from this software without specific prior written permission.
18
+#
19
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES