Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | |
| OLD | NEW |