MINCORE(2) BSD System Calls Manual MINCORE(2)NAME
mincore -- determine residency of memory pages
SYNOPSIS
#include <sys/types.h>
#include <sys/mman.h>
int
mincore(caddr_t addr, size_t len, char *vec);
DESCRIPTION
The mincore() system call allows a process to obtain information about whether pages are core resident. Here the current core residency of
the pages is returned in the character array vec, with a value of 1 meaning that the page is in-core.
RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
SEE ALSO madvise(2), minherit(2), mlock(2), mprotect(2), msync(2), munmap(2)HISTORY
The mincore() function first appeared in 4.4BSD.
BSD June 9, 1993 BSD
Check Out this Related Man Page
MINCORE(2) BSD System Calls Manual MINCORE(2)NAME
mincore -- determine residency of memory pages
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <sys/mman.h>
int
mincore(const void *addr, size_t len, char *vec);
DESCRIPTION
The mincore() system call determines whether each of the pages in the region beginning at addr and continuing for len bytes is resident. The
status is returned in the vec array, one character per page. Each character is either 0 if the page is not resident, or a combination of the
following flags (defined in <sys/mman.h>):
MINCORE_INCORE Page is in core (resident).
MINCORE_REFERENCED Page has been referenced by us.
MINCORE_MODIFIED Page has been modified by us.
MINCORE_REFERENCED_OTHER Page has been referenced.
MINCORE_MODIFIED_OTHER Page has been modified.
MINCORE_SUPER Page is part of a "super" page. (only i386 & amd64)
The information returned by mincore() may be out of date by the time the system call returns. The only way to ensure that a page is resident
is to lock it into memory with the mlock(2) system call.
RETURN VALUES
The mincore() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate
the error.
ERRORS
The mincore() system call will fail if:
[ENOMEM] The virtual address range specified by the addr and len arguments is not fully mapped.
[EFAULT] The vec argument points to an illegal address.
SEE ALSO madvise(2), mlock(2), mprotect(2), msync(2), munmap(2), getpagesize(3)HISTORY
The mincore() system call first appeared in 4.4BSD.
BSD January 17, 2003 BSD
What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file.
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend (3 Replies)
Greetings,
I'm trying to delete a file with a weird name from within Terminal on a Mac.
It's a very old file (1992) with null characters in the name: ââWord FinderÂŽ Plusâ˘.
Here are some examples of what I've tried:
12FX009:5 dpontius$ ls
ââWord FinderÂŽ Plusâ˘
12FX009:5 dpontius$ rm... (29 Replies)