Description: fcntl
 .
 cbmc (6.0.1-1) unstable; urgency=low
 .
   * New upstream release
   * Updated Standards version to 4.7.0 (no changes required)
Author: Michael Tautschnig <mt@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-07-05

--- cbmc-6.0.1.orig/src/ansi-c/library/fcntl.c
+++ cbmc-6.0.1/src/ansi-c/library/fcntl.c
@@ -54,6 +54,15 @@ int fcntl64(int fd, int cmd, ...)
   return __CPROVER_fcntl(fd, cmd);
 }
 
+/* FUNCTION: __fcntl_time64 */
+
+int __CPROVER_fcntl(int, int);
+
+int __fcntl_time64(int fd, int cmd, ...)
+{
+  return __CPROVER_fcntl(fd, cmd);
+}
+
 /* FUNCTION: __CPROVER_open */
 
 #ifndef __CPROVER_FCNTL_H_INCLUDED
--- cbmc-6.0.1.orig/src/ansi-c/library_check.sh
+++ cbmc-6.0.1/src/ansi-c/library_check.sh
@@ -57,6 +57,7 @@ perl -p -i -e 's/^__srget\n//' __functio
 perl -p -i -e 's/^__swbuf\n//' __functions # putc, FreeBSD
 perl -p -i -e 's/^__tolower\n//' __functions # tolower, macOS
 perl -p -i -e 's/^__toupper\n//' __functions # toupper, macOS
+perl -p -i -e 's/^__fcntl_time64\n//' __functions # fcntl, Linux
 
 # Some functions are covered by existing tests:
 perl -p -i -e 's/^__CPROVER_(creat|fcntl|open|openat)\n//' __functions # creat, fcntl, open, openat
