Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
409 B

22 years ago
#include <sys/types.h>
#include <unistd.h>
#include <sys/mman.h>
#include "open.h"
#include "mmap.h"
extern char* mmap_shared(const char* filename,unsigned long* filesize) {
22 years ago
int fd=open_read(filename);
char *map;
if (fd>=0) {
if (map==(char*)-1)
return map;
return 0;