Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: third_party/talloc/libreplace/socketpair.c

Issue 2282793002: Remove unused third_party/talloc (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/talloc/libreplace/socket.c ('k') | third_party/talloc/libreplace/strptime.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Unix SMB/CIFS implementation.
3 * replacement routines for broken systems
4 * Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2006
5 * Copyright (C) Michael Adam <obnox@samba.org> 2008
6 *
7 * ** NOTE! The following LGPL license applies to the replace
8 * ** library. This does NOT imply that all of Samba is released
9 * ** under the LGPL
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 3 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
23 */
24
25 #include "replace.h"
26 #include "system/network.h"
27
28 int rep_socketpair(int d, int type, int protocol, int sv[2])
29 {
30 if (d != AF_UNIX) {
31 errno = EAFNOSUPPORT;
32 return -1;
33 }
34
35 if (protocol != 0) {
36 errno = EPROTONOSUPPORT;
37 return -1;
38 }
39
40 if (type != SOCK_STREAM) {
41 errno = EOPNOTSUPP;
42 return -1;
43 }
44
45 return pipe(sv);
46 }
OLDNEW
« no previous file with comments | « third_party/talloc/libreplace/socket.c ('k') | third_party/talloc/libreplace/strptime.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698