Skip to content

Commit 4ffeed4

Browse files
author
Martin Unzner
committed
Merge branch 'implicit_bind'
2 parents 1d111c6 + feaf613 commit 4ffeed4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1658
-1233
lines changed

CRAPL-LICENSE.txt

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
THE CRAPL v0 BETA 1
2+
3+
4+
0. Information about the CRAPL
5+
6+
If you have questions or concerns about the CRAPL, or you need more
7+
information about this license, please contact:
8+
9+
Matthew Might
10+
http://matt.might.net/
11+
12+
13+
I. Preamble
14+
15+
Science thrives on openness.
16+
17+
In modern science, it is often infeasible to replicate claims without
18+
access to the software underlying those claims.
19+
20+
Let's all be honest: when scientists write code, aesthetics and
21+
software engineering principles take a back seat to having running,
22+
working code before a deadline.
23+
24+
So, let's release the ugly. And, let's be proud of that.
25+
26+
27+
II. Definitions
28+
29+
1. "This License" refers to version 0 beta 0 of the Community
30+
Research and Academic Programming License (the CRAPL).
31+
32+
2. "The Program" refers to the medley of source code, shell scripts,
33+
executables, objects, libraries and build files supplied to You,
34+
or these files as modified by You.
35+
36+
[Any appearance of design in the Program is purely coincidental and
37+
should not in any way be mistaken for evidence of thoughtful
38+
software construction.]
39+
40+
3. "You" refers to the person or persons brave and daft enough to use
41+
the Program.
42+
43+
4. "The Documentation" refers to the Program.
44+
45+
5. "The Author" probably refers to the caffeine-addled graduate
46+
student that got the Program to work moments before a submission
47+
deadline.
48+
49+
50+
III. Terms
51+
52+
1. By reading this sentence, You have agreed to the terms and
53+
conditions of this License.
54+
55+
2. If the Program shows any evidence of having been properly tested
56+
or verfied, You will disregard this evidence.
57+
58+
3. You agree to hold the Author free from shame, embarrassment or
59+
ridicule for any hacks, kludges or leaps of faith found within the
60+
Program.
61+
62+
4. You recognize that any request for support for the Program will be
63+
discarded with extreme prejudice.
64+
65+
5. The Author reserves all rights to the Program, except for any
66+
rights granted under any additional licenses attached to the
67+
Program.
68+
69+
70+
IV. Permissions
71+
72+
1. You are permitted to use the Program to validate published
73+
scientific claims.
74+
75+
2. You are permitted to use the Program to validate scientific claims
76+
submitted for peer review, under the condition that You keep
77+
modifications to the Program confidential until those claims have
78+
been published.
79+
80+
3. You are permitted to use and/or modify the Program for the
81+
validation of novel scientific claims if You make a good-faith
82+
attempt to notify the Author of Your work and Your claims prior to
83+
submission for publication.
84+
85+
4. If You publicly release any claims or data that were supported or
86+
generated by the Program or a modification thereof, in whole or in
87+
part, You will release any inputs supplied to the Program and any
88+
modifications You made to the Progam. This License will be in
89+
effect for the modified program.
90+
91+
92+
V. Disclaimer of Warranty
93+
94+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
95+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
96+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
97+
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
98+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
99+
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
100+
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
101+
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
102+
CORRECTION.
103+
104+
105+
VI. Limitation of Liability
106+
107+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
108+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
109+
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
110+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
111+
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
112+
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
113+
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
114+
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
115+
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

common/lib/libc/arch/CVS/Entries.Log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
A D/aarch64////
12
A D/alpha////
23
A D/arm////
34
A D/hppa////
@@ -16,3 +17,4 @@ A D/vax////
1617
A D/x86_64////
1718
R D/sh5////
1819
R D/ns32k////
20+
R D/aarch64////

lib/libc/arch/CVS/Entries.Log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
A D/aarch64////
12
A D/alpha////
23
A D/arm////
34
A D/arm26////
@@ -24,3 +25,4 @@ R D/ns32k////
2425
R D/hp300////
2526
R D/arm32////
2627
R D/arm26////
28+
R D/aarch64////

lib/libc/compat/arch/CVS/Entries.Log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
A D/aarch64////
12
A D/alpha////
23
A D/arm////
34
A D/hppa////
@@ -16,3 +17,4 @@ A D/vax////
1617
A D/x86_64////
1718
R D/sh5////
1819
R D/ns32k////
20+
R D/aarch64////

lib/librumpnet/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ LIBDPLIBS+= rump ${.CURDIR}/../librump
77

88
WARNS= 3 # XXX: kernel isn't ready for -Wsign-compare
99

10+
RUMPCOMP_USER=
11+
1012
.include "${RUMPTOP}/librump/rumpnet/Makefile.rumpnet"

lib/librumpnet/rumpcomp_user.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#include <inttypes.h>
2+
#include <stdio.h>
3+
4+
#include "rumpcomp_user.h"
5+
#include "swarm_client_ipc.c"
6+
7+
#define DPRINTF(x) printf x
8+
9+
int rumpcomp_librumpnet_hive_request_port(
10+
uint16_t port, int32_t *p_bind_result,
11+
int netbsd_kernel_protocol) {
12+
int err;
13+
DPRINTF(("NetBSD kernel protocol is %d, Port is %u\n",
14+
netbsd_kernel_protocol, port));
15+
if ((err = request_hive_bind(netbsd_kernel_protocol, port))) {
16+
DPRINTF(("Failed to send bind request: %d\n", err));
17+
return EINVAL;
18+
}
19+
20+
uint32_t ret_msg;
21+
if ((ret_msg = rcv_message_type_sock()) != HIVE_BIND_REPLY) {
22+
DPRINTF(("Received wrong message header from Hive: %d\n", ret_msg));
23+
return EINVAL;
24+
}
25+
26+
if ((err = rcv_reply_hive_bind(p_bind_result))) {
27+
DPRINTF(("Failed to receive bind result: %d\n", err));
28+
return EINVAL;
29+
}
30+
31+
DPRINTF(("Hive bind succeeded, result: %d.\n", *p_bind_result));
32+
return 0;
33+
}
34+

lib/librumpnet/rumpcomp_user.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef __NETINET_RUMPCOMP_USER__
2+
#define __NETINET_RUMPCOMP_USER__
3+
4+
int rumpcomp_librumpnet_hive_request_port(
5+
uint16_t port, int32_t *p_bind_result,
6+
int netbsd_kernel_protocol);
7+
8+
#endif

lib/librumpnet/swarm_client_ipc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../examples/swarm_client_ipc.c

lib/librumpnet/swarm_client_ipc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../examples/swarm_client_ipc.h

lib/librumpnet/swarm_ipc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../examples/swarm_ipc.h

0 commit comments

Comments
 (0)