Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../data-stud/../../usr/man/man2/munmap.2
Real path: /usr/share/man/man2/munmap.2
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Copyright (c) 1996, Oracle and/or its affiliates. All rights reserved. .\" Portions Copyright (c) 1992, The X/Open Company Ltd. All rights reserved. .\" Oracle gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. This notice shall appear on any product containing this material. .TH munmap 2 "5 Jan 1998" "Oracle Solaris 11.4" "System Calls" .SH NAME munmap \- unmap pages of memory .SH SYNOPSIS .LP .nf #include <sys/mman.h> \fBint\fR \fBmunmap\fR(\fBvoid *\fR\fIaddr\fR, \fBsize_t\fR \fIlen\fR); .fi .SH DESCRIPTION .sp .LP The \fBmunmap()\fR function removes the mappings for pages in the range [\fIaddr, addr + len\fR), rounding the \fIlen\fR argument up to the next multiple of the page size as returned by \fBsysconf\fR(3C). If \fIaddr\fR is not the address of a mapping established by a prior call to \fBmmap\fR(2), the behavior is undefined. After a successful call to \fBmunmap()\fR and before any subsequent mapping of the unmapped pages, further references to these pages will result in the delivery of a \fBSIGBUS\fR or \fBSIGSEGV\fR signal to the process. .sp .LP The \fBmmap\fR(2) function often performs an implicit \fBmunmap()\fR. .SH RETURN VALUES .sp .LP Upon successful completion, \fBmunmap()\fR returns \fB0\fR; otherwise, it returns \fB\(mi1\fR and sets \fBerrno\fR to indicate an error. .SH ERRORS .sp .LP The \fBmunmap()\fR function will fail if: .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n .rt The \fIaddr\fR argument is not a multiple of the page size as returned by \fBsysconf\fR(3C); addresses in the range [\fIaddr, addr + len\fR) are outside the valid range for the address space of a process; or the \fIlen\fR argument has a value less than or equal to \fB0\fR. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ Standard See \fBstandards\fR(7). .TE .sp .SH SEE ALSO .sp .LP \fBmmap\fR(2), \fBsysconf\fR(3C), \fBattributes\fR(7), \fBstandards\fR(7)