diff options
Diffstat (limited to 'gcc/ada/s-osinte-linux.ads')
-rw-r--r-- | gcc/ada/s-osinte-linux.ads | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ada/s-osinte-linux.ads b/gcc/ada/s-osinte-linux.ads index c71bebc8d8a..2bcf56e500d 100644 --- a/gcc/ada/s-osinte-linux.ads +++ b/gcc/ada/s-osinte-linux.ads @@ -7,7 +7,7 @@ -- S p e c -- -- -- -- Copyright (C) 1991-1994, Florida State University -- --- Copyright (C) 1995-2014, Free Software Foundation, Inc. -- +-- Copyright (C) 1995-2015, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -224,6 +224,10 @@ package System.OS_Interface is subtype timeval is System.Linux.timeval; subtype clockid_t is System.Linux.clockid_t; + function clock_gettime + (clock_id : clockid_t; tp : access timespec) return int; + pragma Import (C, clock_gettime, "clock_gettime"); + function clock_getres (clock_id : clockid_t; res : access timespec) return int; @@ -526,6 +530,10 @@ package System.OS_Interface is destructor : destructor_pointer) return int; pragma Import (C, pthread_key_create, "pthread_key_create"); + ---------------- + -- Extensions -- + ---------------- + CPU_SETSIZE : constant := 1_024; -- Size of the cpu_set_t mask on most linux systems (SUSE 11 uses 4_096). -- This is kept for backward compatibility (System.Task_Info uses it), but |