[libc-commits] [libc] [libc][sys/shm] Implement shmctl and add remaining constants. (PR #239839)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Mon Nov 9 06:51:08 PST 2026


================
@@ -52,7 +53,7 @@ TEST_F(LlvmLibcShmAtTest, AttachReadWriteAndReadOnly) {
 
   EXPECT_THAT(LIBC_NAMESPACE::shmdt(rw_addr), Succeeds(0));
   EXPECT_THAT(LIBC_NAMESPACE::shmdt(ro_addr), Succeeds(0));
-  // TODO: Remove the segment with shmctl once shmctl is implemented.
+  EXPECT_THAT(LIBC_NAMESPACE::shmctl(shmid, IPC_RMID, nullptr), Succeeds(0));
----------------
kaladron wrote:

This should be a scope_exit earlier to ensure that there aren't any leaks as we run through this.  (Here and below)

https://github.com/llvm/llvm-project/pull/239839


More information about the libc-commits mailing list