Skip to content

Commit 3588210

Browse files
committed
mmap: start move to lkmc
1 parent a1b2d86 commit 3588210

File tree

3 files changed

+1
-122
lines changed

3 files changed

+1
-122
lines changed

c/malloc.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,6 @@
3434
#include "common.h"
3535

3636
int main(void) {
37-
/* Basic usage */
38-
{
39-
size_t bytes = sizeof(int) * 2;
40-
int *is = malloc(bytes);
41-
if (is == NULL) {
42-
printf("malloc failed\n");
43-
} else {
44-
is[0] = 1;
45-
assert(is[0] == 1);
46-
free(is);
47-
}
48-
}
49-
5037
/*
5138
# free
5239

posix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
1. [System V semaphores](semaphore_sysv.c)
1414
1. semaphore_unnamed.c TODO
1515
1. semaphore_named.c TODO. https://stackoverflow.com/questions/16400820/c-how-to-use-posix-semaphores-on-forked-processes
16-
1. [mmap](mmap.c)
16+
1. mmap
1717
1. [MAP_PRIVATE](map_private.c)
1818
1. Shared memory
1919
1. [shm_open](shm_open.c)

posix/mmap.c

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)