Home
last modified time | relevance | path

Searched full:sun (Results 1 – 25 of 2785) sorted by relevance

12345678910>>...112

/freebsd/tools/regression/sockets/unix_bindconnect/
H A Dunix_bindconnect.c86 struct sockaddr_un sun; in bind_test() local
102 bzero(&sun, sizeof(sun)); in bind_test()
103 sun.sun_len = sizeof(sun); in bind_test()
104 sun.sun_family = AF_UNIX; in bind_test()
105 if (snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", socket_path) in bind_test()
106 >= (int)sizeof(sun.sun_path)) { in bind_test()
107 warn("bind_test: snprintf(sun.sun_path)"); in bind_test()
112 if (bind(sock1, (struct sockaddr *)&sun, sizeof(sun)) < 0) { in bind_test()
113 warn("bind_test: bind(sun) #1"); in bind_test()
124 if (bind(sock1, (struct sockaddr *)&sun, sizeof(sun)) == 0) { in bind_test()
[all …]
/freebsd/tools/regression/sockets/unix_sendtorace/
H A Dunix_sendtorace.c69 struct sockaddr_un sun; in stream_client() local
74 bzero(&sun, sizeof(sun)); in stream_client()
75 sun.sun_len = sizeof(sun); in stream_client()
76 sun.sun_family = AF_UNIX; in stream_client()
77 strcpy(sun.sun_path, socket_path); in stream_client()
84 len = sendto(fd, &c, sizeof(c), 0, (struct sockaddr *)&sun, in stream_client()
85 sizeof(sun)); in stream_client()
95 struct sockaddr_un sun; in stream_test() local
103 bzero(&sun, sizeof(sun)); in stream_test()
104 sun.sun_len = sizeof(sun); in stream_test()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_getsockname.c49 struct sockaddr_un sun; in ATF_TC_BODY() local
54 len = sizeof(sun); in ATF_TC_BODY()
55 memset(&sun, 0, sizeof(sun)); in ATF_TC_BODY()
56 ATF_REQUIRE(getsockname(sd, (struct sockaddr *)&sun, &len) != -1); in ATF_TC_BODY()
57 ATF_CHECK(sun.sun_family == AF_UNIX); in ATF_TC_BODY()
58 ATF_CHECK(strcmp(sun.sun_path, "") == 0); in ATF_TC_BODY()
60 len = sizeof(sun); in ATF_TC_BODY()
61 memset(&sun, 0, sizeof(sun)); in ATF_TC_BODY()
62 sun.sun_family = AF_UNIX; in ATF_TC_BODY()
63 strcpy(sun.sun_path, path); in ATF_TC_BODY()
[all …]
/freebsd/contrib/netbsd-tests/net/net/
H A Dt_unix.c103 struct sockaddr_un sun; in acc() local
109 memset(&sun, 0, sizeof(sun)); in acc()
110 len = sizeof(sun); in acc()
111 if ((s = accept(s, (struct sockaddr *)&sun, &len)) == -1) in acc()
118 print("accept", &sun, len); in acc()
122 if (sun.sun_family != AF_UNIX) in acc()
123 FAIL("sun->sun_family %d != AF_UNIX", sun.sun_family); in acc()
125 if (sun.sun_len != 2) in acc()
126 FAIL("sun->sun_len %d != 2", sun.sun_len); in acc()
128 for (size_t i = 0; i < sizeof(sun.sun_path); i++) in acc()
[all …]
/freebsd/include/rpcsvc/
H A Drwall.x2 % * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 % * may copy or modify Sun RPC without charge, but are not authorized
8 % * Sun Microsystems, Inc.
10 % * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 % * Sun RPC is provided with no support and without any obligation on the
15 % * part of Sun Microsystems, Inc. to assist in its use, correction,
18 % * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 % * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 % * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 % * Sun has been advised of the possibility of such damages.
[all …]
H A Dypupdate_prot.x2 % * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 % * may copy or modify Sun RPC without charge, but are not authorized
8 % * Sun Microsystems, Inc.
10 % * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 % * Sun RPC is provided with no support and without any obligation on the
15 % * part of Sun Microsystems, Inc. to assist in its use, correction,
18 % * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 % * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 % * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 % * Sun has been advised of the possibility of such damages.
[all …]
H A Dnis_cache.x2 % * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 % * may copy or modify Sun RPC without charge, but are not authorized
8 % * Sun Microsystems, Inc.
10 % * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 % * Sun RPC is provided with no support and without any obligation on the
15 % * part of Sun Microsystems, Inc. to assist in its use, correction,
18 % * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 % * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 % * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 % * Sun has been advised of the possibility of such damages.
[all …]
H A Dnis_db.h2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
[all …]
/freebsd/lib/librpcsvc/
H A Drwall.c2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
8 * Sun Microsystems, Inc.
10 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 * Sun RPC is provided with no support and without any obligation on the
15 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 * Sun has been advised of the possibility of such damages.
[all …]
H A Drnusers.c2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
8 * Sun Microsystems, Inc.
10 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 * Sun RPC is provided with no support and without any obligation on the
15 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 * Sun has been advised of the possibility of such damages.
[all …]
H A Drstat.c2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
8 * Sun Microsystems, Inc.
10 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 * Sun RPC is provided with no support and without any obligation on the
15 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 * Sun has been advised of the possibility of such damages.
[all …]
H A Dsecretkey.c2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
8 * Sun Microsystems, Inc.
10 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
14 * Sun RPC is provided with no support and without any obligation on the
15 * part of Sun Microsystems, Inc. to assist in its use, correction,
18 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
22 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 * Sun has been advised of the possibility of such damages.
[all …]
/freebsd/tests/sys/kern/
H A Dunix_dgram.c62 static struct sockaddr_un sun = { variable
64 .sun_len = sizeof(sun),
185 ATF_REQUIRE(bind(one, (struct sockaddr *)&sun, sizeof(sun)) == 0); in ATF_TC_BODY()
190 ATF_REQUIRE(connect(many[i], (struct sockaddr *)&sun, in ATF_TC_BODY()
191 sizeof(sun)) == 0); in ATF_TC_BODY()
203 ATF_REQUIRE(connect(one, (struct sockaddr *)&sun, sizeof(sun)) == 0); in ATF_TC_BODY()
229 ATF_REQUIRE(sendto(two, notconn, BUFSIZE, 0, (struct sockaddr *)&sun, in ATF_TC_BODY()
230 sizeof(sun)) == BUFSIZE); in ATF_TC_BODY()
259 ATF_REQUIRE(sendto(two, notconn, BUFSIZE, 0, (struct sockaddr *)&sun, in ATF_TC_BODY()
260 sizeof(sun)) == BUFSIZE); in ATF_TC_BODY()
[all …]
/freebsd/contrib/tcpdump/
H A Drpc_auth.h2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
[all …]
H A Drpc_msg.h2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
[all …]
/freebsd/sys/cddl/compat/opensolaris/rpc/
H A Dxdr.h2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/rpc/
H A Dxdr.h
/freebsd/usr.bin/rpcgen/
H A Drpc_scan.h4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
7 * may copy or modify Sun RPC without charge, but are not authorized
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
15 * Sun RPC is provided with no support and without any obligation on the
16 * part of Sun Microsystems, Inc. to assist in its use, correction,
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * Sun has been advised of the possibility of such damages.
27 * Sun Microsystems, Inc.
[all …]
H A Drpc_parse.h4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
7 * may copy or modify Sun RPC without charge, but are not authorized
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
15 * Sun RPC is provided with no support and without any obligation on the
16 * part of Sun Microsystems, Inc. to assist in its use, correction,
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * Sun has been advised of the possibility of such damages.
27 * Sun Microsystems, Inc.
[all …]
/freebsd/sys/xdr/
H A Dxdr_reference.c4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
7 * may copy or modify Sun RPC without charge, but are not authorized
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
15 * Sun RPC is provided with no support and without any obligation on the
16 * part of Sun Microsystems, Inc. to assist in its use, correction,
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * Sun has been advised of the possibility of such damages.
27 * Sun Microsystems, Inc.
[all …]
H A Dxdr_sizeof.c2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * may copy or modify Sun RPC without charge, but are not authorized
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
13 * Sun RPC is provided with no support and without any obligation on the
14 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 * Sun has been advised of the possibility of such damages.
25 * Sun Microsystems, Inc.
[all …]
H A Dxdr_array.c4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
7 * may copy or modify Sun RPC without charge, but are not authorized
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
15 * Sun RPC is provided with no support and without any obligation on the
16 * part of Sun Microsystems, Inc. to assist in its use, correction,
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
25 * Sun has been advised of the possibility of such damages.
27 * Sun Microsystems, Inc.
[all …]
/freebsd/contrib/netbsd-tests/include/sys/
H A Dt_socket.c85 struct sockaddr_un sun; in ATF_TC_BODY() local
98 memset(&sun, 0, sizeof(sun)); in ATF_TC_BODY()
99 sun.sun_family = AF_LOCAL; in ATF_TC_BODY()
101 strncpy(sun.sun_path, SOCKPATH, sizeof(SOCKPATH)); in ATF_TC_BODY()
105 if (rump_sys_bind(s1, (struct sockaddr *)&sun, SUN_LEN(&sun)) == -1) in ATF_TC_BODY()
115 memset(&sun, 0, sizeof(sun)); in ATF_TC_BODY()
116 sun.sun_family = AF_LOCAL; in ATF_TC_BODY()
117 strncpy(sun.sun_path, SOCKPATH, sizeof(SOCKPATH)); in ATF_TC_BODY()
121 if (rump_sys_connect(s2, (struct sockaddr *)&sun, SUN_LEN(&sun)) == -1) in ATF_TC_BODY()
164 sl = sizeof(sun); in ATF_TC_BODY()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dunix_socket_detach.sh62 struct sockaddr_un sun;
68 memset(&sun, 0, sizeof(sun));
69 sun.sun_family = AF_LOCAL;
70 sun.sun_len = sizeof(sun);
71 snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", file);
87 if (bind(sd, (struct sockaddr *)&sun, sizeof(sun)) < 0) {
108 (void)connect(sd, (struct sockaddr *)&sun, sizeof(sun));
H A Dsetsockopt2.sh99 struct sockaddr_un sun;
107 memset(&sun, 0, sizeof(sun));
108 sun.sun_family = AF_LOCAL;
109 sun.sun_len = sizeof(sun);
110 snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", file);
140 if (bind(fd, (struct sockaddr *)&sun, sizeof(sun)) < 0)
155 sun.sun_len = arc4random() % 128;
156 sun.sun_family = arc4random() % 10;
157 setsockopt(fd, 0x6, 0x401, &sun, 0x14);
161 if (connect(fd, (struct sockaddr *)&sun, sizeof(sun)) != -1)

12345678910>>...112