@@ -105,7 +105,7 @@ namespace os_utils
105
105
return rc;
106
106
}
107
107
108
- inline int stat (const char * path, struct STAT * buf)
108
+ inline int stat (const char * path, struct STAT * buf)
109
109
{
110
110
int rc;
111
111
do {
@@ -118,7 +118,7 @@ namespace os_utils
118
118
return rc;
119
119
}
120
120
121
- inline int fstat (int fd, struct STAT * buf)
121
+ inline int fstat (int fd, struct STAT * buf)
122
122
{
123
123
int rc;
124
124
do {
@@ -131,7 +131,7 @@ namespace os_utils
131
131
return rc;
132
132
}
133
133
134
- inline int fgetpos (FILE * stream, fpos_t * pos)
134
+ inline int fgetpos (FILE* stream, fpos_t * pos)
135
135
{
136
136
int rc;
137
137
do {
@@ -144,7 +144,7 @@ namespace os_utils
144
144
return rc;
145
145
}
146
146
147
- inline int fsetpos (FILE * stream, const fpos_t * pos)
147
+ inline int fsetpos (FILE* stream, const fpos_t * pos)
148
148
{
149
149
int rc;
150
150
do {
@@ -171,20 +171,20 @@ namespace os_utils
171
171
return rc;
172
172
}
173
173
174
- inline int mkstemp (char *__template )
174
+ inline int mkstemp (char * templ )
175
175
{
176
176
int rc;
177
177
do {
178
178
#ifdef LSB_BUILD
179
- rc = mkstemp64 (__template );
179
+ rc = mkstemp64 (templ );
180
180
#else
181
- rc = ::mkstemp (__template );
181
+ rc = ::mkstemp (templ );
182
182
#endif
183
183
} while (rc == -1 && SYSCALL_INTERRUPTED (errno));
184
184
return rc;
185
185
}
186
186
187
- inline ssize_t pread (int fd, void * buf, size_t count, off_t offset)
187
+ inline ssize_t pread (int fd, void * buf, size_t count, off_t offset)
188
188
{
189
189
// Don't check EINTR because it's done by caller
190
190
return
@@ -195,7 +195,7 @@ namespace os_utils
195
195
#endif
196
196
}
197
197
198
- inline ssize_t pwrite (int fd, const void * buf, size_t count, off_t offset)
198
+ inline ssize_t pwrite (int fd, const void * buf, size_t count, off_t offset)
199
199
{
200
200
// Don't check EINTR because it's done by caller
201
201
return
@@ -206,7 +206,7 @@ namespace os_utils
206
206
#endif
207
207
}
208
208
209
- inline struct dirent * readdir (DIR * dirp)
209
+ inline struct dirent * readdir (DIR* dirp)
210
210
{
211
211
struct dirent * rc;
212
212
do {
@@ -219,7 +219,7 @@ namespace os_utils
219
219
return rc;
220
220
}
221
221
222
- inline void * mmap (void * addr, size_t length, int prot, int flags, int fd, off_t offset)
222
+ inline void * mmap (void * addr, size_t length, int prot, int flags, int fd, off_t offset)
223
223
{
224
224
void * rc;
225
225
do {
@@ -245,7 +245,7 @@ namespace os_utils
245
245
return rc;
246
246
}
247
247
248
- inline int lstat (const char * path, struct STAT * buf)
248
+ inline int lstat (const char * path, struct STAT * buf)
249
249
{
250
250
int rc;
251
251
do {
@@ -271,7 +271,7 @@ namespace os_utils
271
271
return rc;
272
272
}
273
273
274
- inline int getrlimit (int resource, struct rlimit * rlim)
274
+ inline int getrlimit (int resource, struct rlimit * rlim)
275
275
{
276
276
int rc;
277
277
do {
@@ -284,7 +284,7 @@ namespace os_utils
284
284
return rc;
285
285
}
286
286
287
- inline int setrlimit (int resource, const struct rlimit * rlim)
287
+ inline int setrlimit (int resource, const struct rlimit * rlim)
288
288
{
289
289
int rc;
290
290
do {
0 commit comments