Changeset bdda8c2 in git for Singular/links/semaphore.c


Ignore:
Timestamp:
Apr 9, 2013, 4:39:42 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
2d5ff537ab672bcbb2ca73df6830672f38b1ea63
Parents:
bc0d32def5d3461a77eed40c1e1a3d254811858a
Message:
add: handling signals in system calls, p2
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/semaphore.c

    rbc0d32 rbdda8c2  
    77
    88#include <kernel/mod2.h>
     9#include <Singular/si_signals.h>
    910
    1011#ifdef HAVE_SIMPLEIPC
     
    6667{
    6768  if ((id<0) || (id >= SIPC_MAX_SEMAPHORES) || (semaphore[id]==NULL))  return -1;
    68   sem_wait(semaphore[id]);
     69  si_sem_wait(semaphore[id]);
    6970  return 1;
    7071}
     
    7374{
    7475  if ((id<0) || (id >= SIPC_MAX_SEMAPHORES) || (semaphore[id]==NULL))  return -1;
    75   return !sem_trywait(semaphore[id]);
     76  return !si_sem_trywait(semaphore[id]);
    7677}
    7778
Note: See TracChangeset for help on using the changeset viewer.