Sponsored Content
Top Forums Programming C code for implementation of Memory Mapping Post 302135846 by raviviolet13 on Thursday 13th of September 2007 01:43:10 AM
Old 09-13-2007
Java C code for implementation of Memory Mapping

Please post a C code for implementation of Memory Mapping function.
It should simulate the mmap command.
 

8 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Need the sample code for implementation of SFTP

Hi we need to implement SFTP through unix shell scripts. I have seen many posts, in which there is discussion about non-interactive,automated SFTP. Can anyone please send me the sample code for SFTP shell script. We are using SFTP to transfer the files from the host server to the target... (10 Replies)
Discussion started by: kumarm
10 Replies

2. Shell Programming and Scripting

Need help on AWK implementation

Hi, I am accepting a string from user. compare this output with the awk output as below... echo "\n\n\tDay : \c" read day awk '{ if($day == $2) { if ($mon == $1) { print "Yes" }}}' syslog.txt I am getting the follwoing error awk: Field $() is not correct. The input line... (5 Replies)
Discussion started by: EmbedUX
5 Replies

3. Filesystems, Disks and Memory

How does memory mapping work?

I can't find a guide or tutorial that explains it at all. Its there a better search term than Memory Mapping? What's the magic inbetween having the hard drive behave like the memory? (4 Replies)
Discussion started by: theKbStockpiler
4 Replies

4. Shell Programming and Scripting

Perl code Out of memory problem

Hi I am working with a 3.0 GB file and running the following script to process it. After running for 15 minutes, the script stops saying Out of memory or Killed. Can the experts suggest where my code can be improved to save memory? Thanks in advance. #! usr/bin/perl use warnings; open... (3 Replies)
Discussion started by: polsum
3 Replies

5. Shell Programming and Scripting

Creating unique mapping from multiple mapping

Hello, I do not know if this is the right title to use. I have a large dictionary database which has the following structure: where a b c d e are in English and p q r s t are in a target language., the two separated by the delimiter =. What I am looking for is a perl script which will take... (5 Replies)
Discussion started by: gimley
5 Replies

6. UNIX for Dummies Questions & Answers

Finding implementation code in UNIX for FAT16/32

So we know that Unix is free source software. And we know that Unix have support for FAT 16 and FAT 32. Does anyone know where can I found that implementation in code ? Thank you. (2 Replies)
Discussion started by: medolina
2 Replies

7. Programming

C: CSV implementation

I have this code from a programming book: #include <stdio.h> #include <string.h> char buf; /* input line buffer */ char* field; /* fields */ char* unquote( char* ); /* csvgetline: read and parse line, return field count */ /* sample input:... (3 Replies)
Discussion started by: totoro125
3 Replies

8. UNIX for Advanced & Expert Users

Mapping Oracle SGA memory into physical files in Solaris.

Is there a way by which we could map Oracle SGA memory into physical files in solaris. We could find these physical files in /dev/shm/ folder in linux environment but they are missing in solaris. (1 Reply)
Discussion started by: arjun_chauhan
1 Replies
mman.h(3HEAD)                                                         Headers                                                        mman.h(3HEAD)

NAME
mman.h, mman - memory management declarations SYNOPSIS
#include <sys/mman.h> DESCRIPTION
The <sys/mman.h> header supports the following options: o the Memory Mapped Files option o the Shared Memory Objects option o the Process Memory Locking option o the Memory Protection option o the Synchronized Input and Output option For Memory Mapped Files and Shared Memory Objects options, the following protection options are defined: PROT_READ Page can be read. PROT_WRITE Page can be written. PROT_EXEC Page can be executed. PROT_NONE Page cannot be accessed. The following flag options are defined: MAP_SHARED Share changes. MAP_PRIVATE Changes are private. MAP_FIXED Interpret addr exactly. The flags immediately following are defined for msync(). See msync(3C). MS_ASYNC Perform asynchronous writes. MS_SYNC Perform synchronous writes. MS_INVALIDATE Invalidate mappings. The symbolic constants immediately following are defined for the mlockall() function. See mlockall(3C). MCL_CURRENT Lock currently mapped pages. MCL_FUTURE Lock pages that become mapped. The symbolic constant MAP_FAILED is defined to indicate a failure from the mmap() function. See mmap(2). The mode_t, off_t, and size_t types are be defined as described in <sys/types.h>. See types(3HEAD). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
mmap(2), mprotect(2), munmap(2), madvise(3C), mlock(3C), mlockall(3C), msync(3C), shm_open(3RT), shm_unlink(3RT), attributes(5), stan- dards(5) SunOS 5.10 10 Sep 2004 mman.h(3HEAD)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy