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

Side by Side Diff: ports/glibc-compat/include/sys/un.h

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 /*
2 * Copyright 2015 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
1 /* olonho */ 6 /* olonho */
2 #ifndef GLIBCEMU_SYS_UN_H 7 #ifndef GLIBCEMU_SYS_UN_H
3 #define GLIBCEMU_SYS_UN_H 1 8 #define GLIBCEMU_SYS_UN_H 1
4 9
5 #include <sys/socket.h> 10 #include <sys/socket.h>
6 11
7 struct sockaddr_un { 12 struct sockaddr_un {
8 sa_family_t sun_family; /* address family */ 13 sa_family_t sun_family; /* address family */
9 char sun_path[108]; 14 char sun_path[108];
10 }; 15 };
11 16
17 /* pulled from freebsd 10.1 sys/sys/un.h */
18 /* actual length of an initialized sockaddr_un */
19 #define SUN_LEN(su) \
20 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
21
12 #endif /* GLIBCEMU_SYS_UN_H */ 22 #endif /* GLIBCEMU_SYS_UN_H */
13 /* end of olonho */ 23 /* end of olonho */
Sam Clegg 2015/07/28 00:14:13 Maybe remove these olonho comments too. He used t
zhitingzhu 2015/07/28 02:05:41 Done.
14
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698