Skip to content

Commit 7d50626

Browse files
Port 2 more specs
1 parent 1823684 commit 7d50626

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/util/library/libraryFunctions.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ let c_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
161161
("swscanf", unknown (drop "buffer" [r] :: drop "fmt" [r] :: VarArgs (drop' [w])));
162162
("remove", unknown [drop "pathname" [r]]);
163163
("raise", unknown [drop "sig" []]); (* safe-ish, we don't handle signal handlers for now *)
164+
("timespec_get", unknown [drop "ts" [w]; drop "base" []]);
164165
]
165166

166167
(** C POSIX library functions.
@@ -427,6 +428,7 @@ let posix_descs_list: (string * LibraryDesc.t) list = LibraryDsl.[
427428
("strerror_r", unknown [drop "errnum" []; drop "buff" [w]; drop "buflen" []]);
428429
("umask", unknown [drop "mask" []]);
429430
("openlog", unknown [drop "ident" [r]; drop "option" []; drop "facility" []]);
431+
("times", unknown [drop "buf" [w]])
430432
]
431433

432434
(** Pthread functions. *)
@@ -1272,6 +1274,7 @@ let invalidate_actions = [
12721274
"__getdelim", writes [3];(*keep [3]*)
12731275
"__h_errno_location", readsAll;(*safe*)
12741276
"__fxstat", readsAll;(*safe*)
1277+
(* RPC library start *)
12751278
"clntudp_create", writesAllButFirst 3 readsAll;(*drop 3*)
12761279
"svctcp_create", readsAll;(*safe*)
12771280
"clntudp_bufcreate", writesAll;(*unsafe*)
@@ -1282,12 +1285,11 @@ let invalidate_actions = [
12821285
"svcudp_create", readsAll;(*safe*)
12831286
"svc_register", writesAll;(*unsafe*)
12841287
"svc_run", writesAll;(*unsafe*)
1288+
(* RPC library end *)
12851289
"__builtin___vsnprintf", writesAllButFirst 3 readsAll; (*drop 3*)
12861290
"__builtin___vsnprintf_chk", writesAllButFirst 3 readsAll; (*drop 3*)
12871291
"__error", readsAll; (*safe*)
12881292
"__maskrune", writesAll; (*unsafe*)
1289-
"times", writesAll; (*unsafe*)
1290-
"timespec_get", writes [1];
12911293
"__tolower", readsAll; (*safe*)
12921294
"signal", writesAll; (*unsafe*)
12931295
"BF_cfb64_encrypt", writes [1;3;4;5]; (*keep [1;3;4,5]*)

0 commit comments

Comments
 (0)