2 * <sys/sendfile.h> wrapper functions.
5 * Jonathan Pryor (jonpryor@vt.edu)
7 * Copyright (C) 2004 Jonathan Pryor
10 #include <sys/types.h>
17 #include <sys/utsname.h>
21 static const mph_string_offset_t
23 MPH_STRING_OFFSET(struct utsname
, sysname
, MPH_STRING_OFFSET_ARRAY
),
24 MPH_STRING_OFFSET(struct utsname
, nodename
, MPH_STRING_OFFSET_ARRAY
),
25 MPH_STRING_OFFSET(struct utsname
, release
, MPH_STRING_OFFSET_ARRAY
),
26 MPH_STRING_OFFSET(struct utsname
, version
, MPH_STRING_OFFSET_ARRAY
),
27 MPH_STRING_OFFSET(struct utsname
, machine
, MPH_STRING_OFFSET_ARRAY
)
30 static const mph_string_offset_t
31 mph_utsname_offsets
[] = {
32 MPH_STRING_OFFSET(struct Mono_Posix_Syscall__Utsname
, sysname
, MPH_STRING_OFFSET_PTR
),
33 MPH_STRING_OFFSET(struct Mono_Posix_Syscall__Utsname
, nodename
, MPH_STRING_OFFSET_PTR
),
34 MPH_STRING_OFFSET(struct Mono_Posix_Syscall__Utsname
, release
, MPH_STRING_OFFSET_PTR
),
35 MPH_STRING_OFFSET(struct Mono_Posix_Syscall__Utsname
, version
, MPH_STRING_OFFSET_PTR
),
36 MPH_STRING_OFFSET(struct Mono_Posix_Syscall__Utsname
, machine
, MPH_STRING_OFFSET_PTR
)
40 Mono_Posix_Syscall_uname (struct Mono_Posix_Syscall__Utsname
*buf
)
52 buf
->_buf_
= _mph_copy_structure_strings (buf
, mph_utsname_offsets
,
53 &_buf
, utsname_offsets
, sizeof(utsname_offsets
)/sizeof(utsname_offsets
[0]));
54 buf
->domainname
= NULL
;