Fix floor type derivation.
[sbcl.git] / src / runtime / android-os.c
blobfda6f7ecb7497a494f4a94ae3329b6a5135431b7
1 /*
2 * The Android incarnation of OS-dependent routines. See also
3 * $(sbcl_arch)-android-os.c. Most of the os-dependent routines are
4 * actually implemented in linux-os.c
6 * This file (along with os.h) exports an OS-independent interface to
7 * the operating system VM facilities. Surprise surprise, this
8 * interface looks a lot like the Mach interface (but simpler in some
9 * places). For some operating systems, a subset of these functions
10 * will have to be emulated.
13 #include <sys/utsname.h>
14 #include <string.h>
16 extern char * software_version () {
17 struct utsname u;
18 int result = uname(&u);
19 if (result < 0)
20 return 0;
21 return strdup(u.release);