]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
freebsd: unused variable warning
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 18 Nov 2023 07:23:08 +0000 (08:23 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 18 Nov 2023 07:23:08 +0000 (08:23 +0100)
still not sure what to do in aio_cancel

coregrind/m_syswrap/syswrap-freebsd.c

index dab12a6eaceaa7fcbcffd33048cc6ab3f1a6cd9e..9371fed0f142f67b91ccaa3ee2cd8419a7e9c338 100644 (file)
@@ -3012,14 +3012,17 @@ PRE(sys_aio_cancel)
    } else {
       if (ARG2) {
          if (ML_(safe_to_deref)((struct vki_aiocb *)ARG2, sizeof(struct vki_aiocb))) {
-            struct vki_aiocb *iocb = (struct vki_aiocb *)ARG2;
+            // struct vki_aiocb *iocb = (struct vki_aiocb *)ARG2;
             // @todo PJF cancel only requests associated with
             // fildes and iocb
+            // Do I need to remove pending reads from iocb(v)_table
+            // or should the user always call aio_return even after
+            // aio_cancel?
          } else {
             SET_STATUS_Failure(VKI_EINVAL);
          }
       } else {
-         // @todo PJF cancel all requests associated with fildes
+         // @todo PJF cancel all requests associated with fildes, see above
       }
    }
 }