Skip to content

Commit c24866a

Browse files
faraotgross35
authored andcommitted
Make l4re pthread struct fields private
1 parent 1034d70 commit c24866a

File tree

1 file changed

+27
-27
lines changed
  • src/unix/linux_like/l4re/uclibc

1 file changed

+27
-27
lines changed

src/unix/linux_like/l4re/uclibc/mod.rs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -225,57 +225,57 @@ s! {
225225
}
226226

227227
pub struct _pthread_fastlock {
228-
pub __status: c_long,
229-
pub __spinlock: c_int,
228+
__status: c_long,
229+
__spinlock: c_int,
230230
}
231231

232232
pub struct pthread_cond_t {
233-
pub __c_lock: _pthread_fastlock,
234-
pub __c_waiting: _pthread_descr,
235-
pub __padding: [u8; PTHREAD_COND_PADDING_SIZE],
236-
pub __align: __pthread_cond_align_t,
233+
__c_lock: _pthread_fastlock,
234+
__c_waiting: _pthread_descr,
235+
__padding: [u8; PTHREAD_COND_PADDING_SIZE],
236+
__align: __pthread_cond_align_t,
237237
}
238238

239239
pub struct pthread_condattr_t {
240-
pub __dummy: c_int,
240+
__dummy: c_int,
241241
}
242242

243243
pub struct pthread_mutex_t {
244-
pub __m_reserved: c_int,
245-
pub __m_count: c_int,
246-
pub __m_owner: _pthread_descr,
247-
pub __m_kind: c_int,
248-
pub __m_lock: _pthread_fastlock,
244+
__m_reserved: c_int,
245+
__m_count: c_int,
246+
__m_owner: _pthread_descr,
247+
__m_kind: c_int,
248+
__m_lock: _pthread_fastlock,
249249
}
250250

251251
pub struct pthread_mutexattr_t {
252-
pub __mutexkind: c_int,
252+
__mutexkind: c_int,
253253
}
254254

255255
pub struct pthread_rwlock_t {
256-
pub __rw_lock: _pthread_fastlock,
257-
pub __rw_readers: c_int,
258-
pub __rw_writer: _pthread_descr,
259-
pub __rw_read_waiting: _pthread_descr,
260-
pub __rw_write_waiting: _pthread_descr,
261-
pub __rw_kind: c_int,
262-
pub __rw_pshared: c_int,
256+
__rw_lock: _pthread_fastlock,
257+
__rw_readers: c_int,
258+
__rw_writer: _pthread_descr,
259+
__rw_read_waiting: _pthread_descr,
260+
__rw_write_waiting: _pthread_descr,
261+
__rw_kind: c_int,
262+
__rw_pshared: c_int,
263263
}
264264

265265
pub struct pthread_rwlockattr_t {
266-
pub __lockkind: c_int,
267-
pub __pshared: c_int,
266+
__lockkind: c_int,
267+
__pshared: c_int,
268268
}
269269

270270
pub struct pthread_barrier_t {
271-
pub __ba_lock: _pthread_fastlock,
272-
pub __ba_required: c_int,
273-
pub __ba_present: c_int,
274-
pub __ba_waiting: _pthread_descr,
271+
__ba_lock: _pthread_fastlock,
272+
__ba_required: c_int,
273+
__ba_present: c_int,
274+
__ba_waiting: _pthread_descr,
275275
}
276276

277277
pub struct pthread_barrierattr_t {
278-
pub __pshared: c_int,
278+
__pshared: c_int,
279279
}
280280
}
281281

0 commit comments

Comments
 (0)