Changeset 74fced0 in git


Ignore:
Timestamp:
Aug 15, 1997, 11:49:13 AM (26 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
bd003130ba3f37eafd59ba2ce081bb2186feda75
Parents:
680ccf2566216386e4aaed823b32324d0a290de9
Message:
* ndbm.cc: fix open-bug  for dos
  default mode of open is ascii, we need binary mode.


git-svn-id: file:///usr/local/Singular/svn/trunk@629 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    r680ccf2 r74fced0  
     1Fri Aug 15 11:44:13 MESZ 1997  Kai Krueger <krueger@mathematik.uni-kl.de>
     2        * ndbm.cc: fix open-bug  for dos
     3          default mode of open is ascii, we need binary mode.
     4
    15Thu Aug 14 18:04:04 1997  Olaf Bachmann  <obachman@mathematik.uni-kl.de>
    26        and anne
  • Singular/ndbm.cc

    r680ccf2 r74fced0  
    55//**************************************************************************/
    66//
    7 // $Id: ndbm.cc,v 1.3 1997-08-12 17:14:41 Singular Exp $
     7// $Id: ndbm.cc,v 1.4 1997-08-15 09:49:13 krueger Exp $
    88//
    99//**************************************************************************/
     
    8484  flags = O_RDWR | O_CREAT;
    8585#endif /* macintosh */
    86 
     86#ifdef MSDOS
     87  // default mode of open is ascii, we need binary mode.
     88  flags |= O_BINARY;
     89#endif
    8790  db->dbm_flags = (flags & 03) == O_RDONLY ? _DBM_RDONLY : 0;
    8891  if ((flags & 03) == O_WRONLY)
Note: See TracChangeset for help on using the changeset viewer.