File: hasmlock.h-yes.c

package info (click to toggle)
tinyssh 20230101-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,244 kB
  • sloc: ansic: 12,106; sh: 1,168; python: 479; makefile: 42
file content (9 lines) | stat: -rw-r--r-- 143 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
/* Public domain. */
#include <sys/mman.h>

int main(void) {
    char x[16];
    mlock(x, sizeof x);
    munlock(x, sizeof x);
    return 0;
}