Skip to content
  • Florian Bezdeka's avatar
    y2038: Adding sem_timedwait64 · c6527e56
    Florian Bezdeka authored and Jan Kiszka's avatar Jan Kiszka committed
    
    
    Implementation is heavily inspired by the sem_timedwait syscall,
    but expecting time64 based timespec / timeout.
    
    We need two new syscall handlers:
      - The native one (COBALT_SYSCALL()) to get 32 bit kernels time64
        aware. This handler is added for 64 bit kernels as well, but not
        used. As we don't have separate syscall tables for this both
        worlds we have to add it.
    
     - The compat handler (COBALT_SYSCALL32emu()) for x32 or x86
       applications running on an x86_64 kernel. Otherwise the redirection
       to the compat / emulation syscalls is broken.
    
    Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    c6527e56