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

Side by Side Diff: third_party/libevent/evutil.h

Issue 412006: posix: upgrade libevent from 1.4.7 to 1.4.13 (Closed)
Patch Set: better readme Created 11 years, 1 month 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 /* 1 /*
2 * Copyright (c) 2007 Niels Provos <provos@citi.umich.edu> 2 * Copyright (c) 2007 Niels Provos <provos@citi.umich.edu>
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 #endif 161 #endif
162 162
163 163
164 /* big-int related functions */ 164 /* big-int related functions */
165 ev_int64_t evutil_strtoll(const char *s, char **endptr, int base); 165 ev_int64_t evutil_strtoll(const char *s, char **endptr, int base);
166 166
167 167
168 #ifdef _EVENT_HAVE_GETTIMEOFDAY 168 #ifdef _EVENT_HAVE_GETTIMEOFDAY
169 #define evutil_gettimeofday(tv, tz) gettimeofday((tv), (tz)) 169 #define evutil_gettimeofday(tv, tz) gettimeofday((tv), (tz))
170 #else 170 #else
171 struct timezone;
171 int evutil_gettimeofday(struct timeval *tv, struct timezone *tz); 172 int evutil_gettimeofday(struct timeval *tv, struct timezone *tz);
172 #endif 173 #endif
173 174
174 int evutil_snprintf(char *buf, size_t buflen, const char *format, ...) 175 int evutil_snprintf(char *buf, size_t buflen, const char *format, ...)
175 #ifdef __GNUC__ 176 #ifdef __GNUC__
176 __attribute__((format(printf, 3, 4))) 177 __attribute__((format(printf, 3, 4)))
177 #endif 178 #endif
178 ; 179 ;
179 int evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap); 180 int evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap);
180 181
181 #ifdef __cplusplus 182 #ifdef __cplusplus
182 } 183 }
183 #endif 184 #endif
184 185
185 #endif /* _EVUTIL_H_ */ 186 #endif /* _EVUTIL_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698