Skip to content

Commit

Permalink
Update alltypes.h.h add sem.h
Browse files Browse the repository at this point in the history
Added time_t and suseconds_t to alltypes.h

After this change the followin tests should now pass:
  src/functional/pthread_mutex-static.exe
  src/functional/pthread_mutex.exe
  src/functional/pthread_mutex_pi-static.exe
  src/functional/pthread_mutex_pi.exe
  src/functional/sem_init-static.exe
  src/functional/sem_init.exe
  src/regression/pthread_cond-smasher-static.exe
  src/regression/pthread_cond-smasher.exe
  src/regression/pthread_cond_wait-cancel_ignored-static.exe
  src/regression/pthread_cond_wait-cancel_ignored.exe
  src/regression/pthread_once-deadlock-static.exe
  • Loading branch information
SidManning committed Apr 16, 2020
1 parent 3e62015 commit ca20acd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/hexagon/bits/alltypes.h.in
Expand Up @@ -23,3 +23,6 @@ TYPEDEF struct { __attribute__((__aligned__(8))) long long __ll; long double __l
#else
TYPEDEF struct { alignas(8) long long __ll; long double __ld; } max_align_t;
#endif

TYPEDEF long time_t;
TYPEDEF long suseconds_t;
13 changes: 13 additions & 0 deletions arch/hexagon/bits/sem.h
@@ -0,0 +1,13 @@
struct semid_ds {
struct ipc_perm sem_perm;
unsigned long __sem_otime_lo;
unsigned long __sem_otime_hi;
unsigned long __sem_ctime_lo;
unsigned long __sem_ctime_hi;
unsigned short sem_nsems;
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
long __unused3;
long __unused4;
time_t sem_otime;
time_t sem_ctime;
};

0 comments on commit ca20acd

Please sign in to comment.