Changeset 48ce9a in git for Singular/ndbm.cc


Ignore:
Timestamp:
Jul 27, 2005, 11:59:27 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
58ac0853e446e66c1775b4ecbc279060079c866a
Parents:
dcb1b7234585e33f2aa5d87adfdbc154c0cd591e
Message:
*hannes: removed MWERKS and macintosh (Mac 9) code


git-svn-id: file:///usr/local/Singular/svn/trunk@8458 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ndbm.cc

    rdcb1b7 r48ce9a  
    55//**************************************************************************/
    66//
    7 // $Id: ndbm.cc,v 1.15 2005-07-26 17:06:58 Singular Exp $
     7// $Id: ndbm.cc,v 1.16 2005-07-27 09:59:27 Singular Exp $
    88//
    99//**************************************************************************/
     
    3333
    3434#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>
    5149#ifndef HAVE_BCOPY
    5250#   define bcopy(a,b,c) memmove(b,a,c)
     
    7876    return ((DBM *)0);
    7977  }
    80 #ifdef macintosh
    81   // It seems that the compile has some problems to commit the flags properly
    82   // 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 */
    8678#ifdef MSDOS
    8779  // default mode of open is ascii, we need binary mode.
Note: See TracChangeset for help on using the changeset viewer.