summaryrefslogtreecommitdiff
path: root/src/lib/libcmd/features/utsname
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcmd/features/utsname')
-rw-r--r--src/lib/libcmd/features/utsname15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/libcmd/features/utsname b/src/lib/libcmd/features/utsname
new file mode 100644
index 0000000..7254867
--- /dev/null
+++ b/src/lib/libcmd/features/utsname
@@ -0,0 +1,15 @@
+lib getdomainname,gethostid,gethostname,sethostname,syscall,systeminfo,uname
+lib syssgi
+mem utsname.base_rel,utsname.idnumber,utsname.m_type,utsname.nodeext sys/utsname.h
+sys syscall,systeminfo,syssgi
+
+tst cross{
+ u=`/bin/uname -o 2>/dev/null`
+ case $u in
+ UWIN-*) u=UWIN ;;
+ esac
+ case $u in
+ '') ;;
+ *) echo "#define _UNAME_os_DEFAULT \"$u\" /* default os name */" ;;
+ esac
+}end