Skip to content

Commit

Permalink
Move str[n]casecmp to Posix group
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Oct 3, 2023
1 parent 8f1bd75 commit 0e77bc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analyses/libraryFunctions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ let c_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("strchr", unknown [drop "s" [r]; drop "c" []]);
("__builtin_strchr", unknown [drop "s" [r]; drop "c" []]);
("strrchr", unknown [drop "s" [r]; drop "c" []]);
("strcasecmp", unknown [drop "s1" [r]; drop "s2" [r]]);
("strncasecmp", unknown [drop "s1" [r]; drop "s2" [r]; drop "n" []]);
("malloc", special [__ "size" []] @@ fun size -> Malloc size);
("calloc", special [__ "n" []; __ "size" []] @@ fun n size -> Calloc {count = n; size});
("realloc", special [__ "ptr" [r; f]; __ "size" []] @@ fun ptr size -> Realloc { ptr; size });
Expand Down Expand Up @@ -367,6 +365,8 @@ let posix_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
("dlclose", unknown [drop "handle" [r]]);
("inet_addr", unknown [drop "cp" [r]]);
("uname", unknown [drop "buf" [w]]);
("strcasecmp", unknown [drop "s1" [r]; drop "s2" [r]]);
("strncasecmp", unknown [drop "s1" [r]; drop "s2" [r]; drop "n" []]);
]

(** Pthread functions. *)
Expand Down

0 comments on commit 0e77bc2

Please sign in to comment.