Skip to content

Commit 7439927

Browse files
committed
libz: add an io compartment
zlib has two major parts. The core deflate compression works entierly in memory. There is also the gzlib portion which provides an analog to POSIX IO interfaces and uses IO underneath.
1 parent a4f52a1 commit 7439927

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/libz/Compartments.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"compartments": {
3+
"io": {
4+
"files": [
5+
"gz*.*o"
6+
]
7+
}
8+
}
9+
}

lib/libz/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ CFLAGS+= -DUNALIGNED_OK
5151

5252
VERSION_DEF= ${.CURDIR}/Versions.def
5353
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
54+
COMPARTMENT_POLICY= ${.CURDIR}/Compartments.json
5455

5556
INCS= zconf.h zlib.h
5657

0 commit comments

Comments
 (0)