File:  [Early Linux] / linux / include / sys / mman.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 18:07:30 2018 UTC (8 years, 3 months ago) by root
Branches: linus, MAIN
CVS tags: linux097, linux096c, linux096b, linux096a, HEAD
linux 0.96a

#ifndef _MMAN_H
#define _MMAN_H

#define PROT_READ        0x1       /* page can be read */
#define PROT_WRITE       0x2       /* page can be written */
#define PROT_EXEC        0x4       /* page can be executed */
#define PROT_NONE        0x0       /* page can not be accessed */

#define MAP_SHARED       1         /* Share changes */
#define MAP_PRIVATE      2         /* Changes are private */
#define MAP_TYPE         0xf       /* Mask for type of mapping */
#define MAP_FIXED        0x10      /* Interpret addr exactly */

extern caddr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd,
		    off_t off);
extern int munmap(caddr_t addr, size_t len);

#endif /* _MMAN_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.