Changeset: b91de92e6dc9 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b91de92e6dc9
Modified Files:
        gdk/gdk.h
        gdk/gdk_posix.c
        gdk/gdk_posix.h
        gdk/gdk_utils.c
Branch: default
Log Message:

Some more const parameters.


diffs (57 lines):

diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -2199,7 +2199,7 @@ gdk_export BAT *BAThashjoin(BAT *l, BAT 
 #define GDK_HISTO_MAX_BIT      ((int) (sizeof(size_t)<<3))
 
 /* we prefer to use vm_alloc routines on size > GDKmmap */
-gdk_export void *GDKmmap(char *path, int mode, off_t off, size_t len);
+gdk_export void *GDKmmap(const char *path, int mode, off_t off, size_t len);
 
 gdk_export size_t GDK_mem_bigsize;     /* size after which we use anonymous VM 
rather than malloc */
 gdk_export size_t GDK_mem_maxsize;     /* max allowed size of committed memory 
*/
diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c
--- a/gdk/gdk_posix.c
+++ b/gdk/gdk_posix.c
@@ -363,7 +363,7 @@ MT_heapcur(void)
 }
 
 void *
-MT_mmap(char *path, int mode, off_t off, size_t len)
+MT_mmap(const char *path, int mode, off_t off, size_t len)
 {
        int fd = open(path, O_CREAT | ((mode & MMAP_WRITE) ? O_RDWR : 
O_RDONLY), MONETDB_MODE);
        void *ret = (void *) -1L;
@@ -513,7 +513,7 @@ MT_heapcur(void)
    needs to be unmapped separately in the end. */
 
 void *
-MT_mmap(char *path, int mode, off_t off, size_t len)
+MT_mmap(const char *path, int mode, off_t off, size_t len)
 {
        DWORD mode0 = FILE_READ_ATTRIBUTES | FILE_READ_DATA;
        DWORD mode1 = FILE_SHARE_READ | FILE_SHARE_WRITE;
diff --git a/gdk/gdk_posix.h b/gdk/gdk_posix.h
--- a/gdk/gdk_posix.h
+++ b/gdk/gdk_posix.h
@@ -192,7 +192,7 @@ gdk_export char *MT_heapcur(void);
 
 gdk_export size_t MT_getrss(void);
 
-gdk_export void *MT_mmap(char *path, int mode, off_t off, size_t len);
+gdk_export void *MT_mmap(const char *path, int mode, off_t off, size_t len);
 gdk_export int MT_munmap(void *p, size_t len);
 
 gdk_export int MT_path_absolute(const char *path);
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -1027,7 +1027,7 @@ GDKstrdup(const char *s)
  * allocations affect only the logical VM resources.
  */
 void *
-GDKmmap(char *path, int mode, off_t off, size_t len)
+GDKmmap(const char *path, int mode, off_t off, size_t len)
 {
        void *ret = MT_mmap(path, mode, off, len);
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to