Changeset bdda8c2 in git for Singular/fehelp.cc


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

Legend:

Unmodified
Added
Removed
  • Singular/fehelp.cc

    rbc0d32 rbdda8c2  
    2323
    2424#include <findexec/omFindExec.h>
     25
     26#include <Singular/si_signals.h>
    2527
    2628#include "ipid.h"
     
    510512        hentry->url[i] = '\0';
    511513
    512         if (fscanf(fd, "%ld\n", &(hentry->chksum)) != 1)
     514        if (si_fscanf(fd, "%ld\n", &(hentry->chksum)) != 1)
    513515        {
    514516          hentry->chksum = -1;
     
    638640  if (fd == NULL) return 0;
    639641  memset(index_key,0,MAX_HE_ENTRY_LENGTH);
    640   while (fscanf(fd, "%[^\t]\t%*[^\n]\n", index_key) == 1)
     642  while (si_fscanf(fd, "%[^\t]\t%*[^\n]\n", index_key) == 1)
    641643  {
    642644    if ((index_key[MAX_HE_ENTRY_LENGTH-1]!='\0'))
     
    12201222  {
    12211223    // char* dummy=fgets(buffer, BUF_LEN, index); /* */
    1222     (void)sscanf(buffer, "Node:%[^\177]\177%ld\n", Index, &offset);
     1224    (void)si_sscanf(buffer, "Node:%[^\177]\177%ld\n", Index, &offset);
    12231225    for(p=Index; *p; p++) *p = tolow(*p);/* */
    12241226    (void)strcat(Index, " ");
Note: See TracChangeset for help on using the changeset viewer.