Changeset 48ce9a in git for Singular/ndbm.cc
- Timestamp:
- Jul 27, 2005, 11:59:27 AM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 58ac0853e446e66c1775b4ecbc279060079c866a
- Parents:
- dcb1b7234585e33f2aa5d87adfdbc154c0cd591e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ndbm.cc
rdcb1b7 r48ce9a 5 5 //**************************************************************************/ 6 6 // 7 // $Id: ndbm.cc,v 1.1 5 2005-07-26 17:06:58Singular Exp $7 // $Id: ndbm.cc,v 1.16 2005-07-27 09:59:27 Singular Exp $ 8 8 // 9 9 //**************************************************************************/ … … 33 33 34 34 #include <stdio.h> 35 #ifdef __MWERKS__ 36 # define bcopy(a,b,c) memmove(b,a,c) 37 # define EPERM 1 38 # define ENOMEM 23 39 # define ENOSPC 28 40 # define L_SET SEEK_SET 41 #else 42 # include <sys/types.h> 43 # include <sys/stat.h> 44 # include <sys/file.h> 45 # include <errno.h> 46 # include <stdlib.h> 47 # include <string.h> 48 # include <unistd.h> 49 # include <fcntl.h> 50 #endif 35 /* alternative: 36 * # define EPERM 1 37 * # define ENOMEM 23 38 * # define ENOSPC 28 39 * # define L_SET SEEK_SET 40 */ 41 #include <sys/types.h> 42 #include <sys/stat.h> 43 #include <sys/file.h> 44 #include <errno.h> 45 #include <stdlib.h> 46 #include <string.h> 47 #include <unistd.h> 48 #include <fcntl.h> 51 49 #ifndef HAVE_BCOPY 52 50 # define bcopy(a,b,c) memmove(b,a,c) … … 78 76 return ((DBM *)0); 79 77 } 80 #ifdef macintosh81 // It seems that the compile has some problems to commit the flags properly82 // O_RDWR | O_CREAT = 0x102 change to 0x200. We don't know why.83 // setting flags to O_RDWR | O_CREAT solved our problem. :-(84 flags = O_RDWR | O_CREAT;85 #endif /* macintosh */86 78 #ifdef MSDOS 87 79 // default mode of open is ascii, we need binary mode.
Note: See TracChangeset
for help on using the changeset viewer.