bridge/class-master/depend/pari/src/language/es.c
/* open tmpfile s (a priori for writing) avoiding symlink attacks */
open tmpfile s (a priori for writing) avoiding symlink attacks
open tmpfile s ( a priori for writing ) avoiding symlink attacks
pariFILE *
pari_safefopen(const char *s, const char *mode)
{
  long fd = open(s, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
  if (fd == -1) pari_err(e_MISC,"tempfile %s already exists",s);
  return pari_open_file(fdopen(fd, mode), s, mode);
}
pariFILE * pari_safefopen ( const char * s , const char * mode ) { long fd = open ( s , O_CREAT | O_EXCL | O_RDWR , S_IRUSR | S_IWUSR ) ; if ( fd == -1 ) pari_err ( e_MISC , " " , s ) ; return pari_open_file ( fdopen ( fd , mode ) , s , mode ) ; }
open tmpfile s (a priori for writing) avoiding symlink attacks
open tmpfile s ( a priori for writing ) avoiding symlink attacks