| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef _NATIVE_CLIENT_SRC_PUBLIC_IMC_SYSCALLS_H_ | 7 #ifndef _NATIVE_CLIENT_SRC_PUBLIC_IMC_SYSCALLS_H_ |
| 8 #define _NATIVE_CLIENT_SRC_PUBLIC_IMC_SYSCALLS_H_ | 8 #define _NATIVE_CLIENT_SRC_PUBLIC_IMC_SYSCALLS_H_ |
| 9 | 9 |
| 10 /* | 10 /* |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 * (desc_length) is zero. | 101 * (desc_length) is zero. |
| 102 * @param pair An array of two file descriptors for the two ends of the | 102 * @param pair An array of two file descriptors for the two ends of the |
| 103 * socket. | 103 * socket. |
| 104 * @return On success imc_socketpair returns zero. On failure, it returns -1 | 104 * @return On success imc_socketpair returns zero. On failure, it returns -1 |
| 105 * and sets errno appropriately. | 105 * and sets errno appropriately. |
| 106 * The returned descriptor may only be used to transfer data | 106 * The returned descriptor may only be used to transfer data |
| 107 * and is itself transferable. | 107 * and is itself transferable. |
| 108 */ | 108 */ |
| 109 extern int imc_socketpair(int pair[2]); | 109 extern int imc_socketpair(int pair[2]); |
| 110 | 110 |
| 111 /** | |
| 112 * @nacl | |
| 113 * Set or get the name service connection capability. | |
| 114 * | |
| 115 * @param name_desc_in_out If not -1, the name service connection | |
| 116 * capability is set to this value; if it is -1, then it is set to the | |
| 117 * current connection capability value. | |
| 118 */ | |
| 119 extern int nacl_nameservice(int *name_desc_in_out); | |
| 120 | |
| 121 #ifdef __cplusplus | 111 #ifdef __cplusplus |
| 122 } | 112 } |
| 123 #endif | 113 #endif |
| 124 | 114 |
| 125 #endif | 115 #endif |
| OLD | NEW |