Changeset bc0d32 in git for Singular/links/s_buff.cc


Ignore:
Timestamp:
Apr 9, 2013, 3:33:02 PM (11 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
bdda8c2a271e7650c11462d22c70cd15d21d34f1
Parents:
f8565ac2b56eae4e46fb63670efa1bc402ae3628
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-04-09 15:33:02+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-04-09 15:33:47+02:00
Message:
add: handling signals in systyem calls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/links/s_buff.cc

    rf8565a rbc0d32  
    1111#include <omalloc/omalloc.h>
    1212#include <Singular/links/s_buff.h>
     13#include <Singular/si_signals.h>
    1314//struct s_buff_s
    1415//{
     
    4344{
    4445  SSI_BLOCK_CHLD;
    45   int fd=open(n,O_RDONLY);
     46  int fd=si_open(n,O_RDONLY);
    4647  SSI_UNBLOCK_CHLD;
    4748  return s_open(fd);
     
    5455    SSI_BLOCK_CHLD;
    5556    omFreeSize(F->buff,S_BUFF_LEN);
    56     int r=close(F->fd);
     57    int r=si_close(F->fd);
    5758    omFreeSize(F,sizeof(*F));
    5859    F=NULL;
     
    7475    memset(F->buff,0,S_BUFF_LEN); /*debug*/
    7576    SSI_BLOCK_CHLD;
    76     int r=read(F->fd,F->buff,S_BUFF_LEN);
     77    int r=si_read(F->fd,F->buff,S_BUFF_LEN);
    7778    SSI_UNBLOCK_CHLD;
    7879    if (r<=0)
Note: See TracChangeset for help on using the changeset viewer.