munmap (2)
Leading comments
Copyright (c) 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following...
NAME
munmap - remove a mappingLIBRARY
Lb libcSYNOPSIS
In sys/mman.h Ft int Fn munmap void *addr size_t lenDESCRIPTION
The Fn munmap system call deletes the mappings for the specified address range, and causes further references to addresses within the range to generate invalid memory references.RETURN VALUES
Rv -std munmapERRORS
The Fn munmap system call will fail if:- Bq Er EINVAL
- The Fa addr argument was not page aligned, the Fa len argument was zero or negative, or some part of the region being unmapped is outside the valid address range for a process.