~ubuntu-branches/ubuntu/saucy/ncbi-tools6/saucy-proposed

« back to all changes in this revision

Viewing changes to corelib/ncbimem.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2009-08-11 22:03:47 UTC
  • mfrom: (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090811220347-g4b6lzdvphvvbpiu
* New upstream release.
* debian/libncbi6.symbols: update accordingly.
* debian/control: clean up obsolete or redundant relationship declarations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   6/4/91
31
31
*
32
 
* $Revision: 6.26 $
 
32
* $Revision: 6.27 $
33
33
*
34
34
* File Description:
35
35
*       portable memory handlers for Mac, PC, Unix
37
37
* Modifications:
38
38
* --------------------------------------------------------------------------
39
39
* $Log: ncbimem.c,v $
 
40
* Revision 6.27  2009/07/08 19:43:43  madden
 
41
* Use MAP_PRIVATE instead of shared for distributed file systems (RT 15656919)
 
42
*
40
43
* Revision 6.26  2004/09/01 21:21:54  kans
41
44
* if Windows but not DLL, handle functions now implemented with direct pointer
42
45
*
918
921
        break;
919
922
 
920
923
      mem_mapp->mmp_begin = mmap(NULL, mem_mapp->file_size, PROT_READ,
921
 
                                 MAP_SHARED, fd, 0);
 
924
                                 MAP_PRIVATE, fd, 0);
922
925
      close(fd);
923
926
      if ((void*) mem_mapp->mmp_begin == (void*) MAP_FAILED)
924
927
        break;