memory « linux « C File Q&A

Home
C File Q&A
1.array
2.binary
3.delete
4.Development
5.directory
6.fgets
7.fopen
8.fprintf
9.fscanf
10.fwrite
11.header
12.include
13.input
14.LINE
15.linux
16.open
17.output
18.pointer
19.read
20.size
21.string
22.struct
23.Text
24.windows
25.write
C File Q&A » linux » memory 

1. Why is remap_file_pages() failing in this example?    stackoverflow.com

The following C code illustrates a problem I'm seeing on Linux 2.6.30.5-43.fc11.x86_64:

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main() {
    char buf[1024];
    void ...

2. C APIs for fetching Memory and File Handle count    stackoverflow.com

Are there any C APIs for fetching free memory, swap memory consumption and to fetch file handle count similar to statvfs for file system information instead of directly parsing the /proc ...

3. Getting rid of file-based communication    stackoverflow.com

I have to work with two C programs that communicate via a file-based interface. That is, each of them has a main loop where it polls three or four files (fopen, ...

4. how to pass data using shared memory and save the received data to file    stackoverflow.com

I am new to linux environment. I just know the basics of C. I am trying to learn linux programming. For this I am trying an example on shared memory. Please ...

5. What is the difference between writing to a file and a mapped memory?    stackoverflow.com

I have the following questions related to handling files and mapping them (mmap): 1) We know that if we create a file, and write to that file, then either ways we are ...

6. way to open and load a file in memory    stackoverflow.com

Is there a way such that I can open and load a file directly in memory? I have lot of legacy code that opens a file present on network, and then does seeks ...

7. Library or tools for managing shared mmapped files    stackoverflow.com

Disclaimer: This is probably a research question as I cannot find what I am looking for, and it is rather specific. Problem: I have a custom search application that needs to read ...

8. Memory files in Linux    forums.devshed.com

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.