Re: How do you create a file descriptor from memory (oposite of mmap)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Did some more digging around, and came across the fmemopen function, that accepts a pointer to a local memory buffer, and returns a FILE * pointer to the buffer as if it was a file.
 
Found it here:
 
 
-- Marat
----- Original Message -----
From: Marat BN
Sent: Tuesday, January 30, 2007 10:39 AM
Subject: RE: How do you create a file descriptor from memory (oposite of mmap)?

Hi,
 
This is regarding message your "How do you create a file descriptor from memory (oposite of mmap)?" that you posted back in 2003.  I read it here: http://mail.nl.linux.org/kernelnewbies/2003-04/msg00075.html
 
It looks like you had one reply on this, and the replier stated that there is no way to have a file descriptor to a memory buffer without creating a file.  It would be really nifty to have a file descriptor to a memory buffer without having to involve the filesystem.  Have you been able to find any other solution to this problem since 2003?
 
Thanks,
Marat


Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux