| 136 * The return value and error follow getsockopt() with a level of SOL_SOCKET and an |
136 * The return value and error follow getsockopt() with a level of SOL_SOCKET and an |
| 137 * option name of SO_ERROR, and this is how the error is determined if the UI does not |
137 * option name of SO_ERROR, and this is how the error is determined if the UI does not |
| 138 * implement the input_get_error UI op. |
138 * implement the input_get_error UI op. |
| 139 * |
139 * |
| 140 * @param fd The input file descriptor. |
140 * @param fd The input file descriptor. |
| 141 * @param errno A pointer to an int which on return will have the error, or 0 if no error. |
141 * @param error A pointer to an int which on return will have the error, or 0 if no error. |
| 142 * |
142 * |
| 143 * @return 0 if there is no error; -1 if there is an error, in which case errno will be set. |
143 * @return 0 if there is no error; -1 if there is an error, in which case errno will be set. |
| 144 */ |
144 */ |
| 145 int |
145 int |
| 146 purple_input_get_error(int fd, int *error); |
146 purple_input_get_error(int fd, int *error); |