Implement sysfs
authorDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 28 Aug 2008 07:35:09 +0000 (07:35 +0000)
committerDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 28 Aug 2008 07:35:09 +0000 (07:35 +0000)
sysdeps/unix/sysv/solaris2/kopensolaris-gnu/Makefile
sysdeps/unix/sysv/solaris2/kopensolaris-gnu/Versions
sysdeps/unix/sysv/solaris2/kopensolaris-gnu/sys/fstyp.h
sysdeps/unix/sysv/solaris2/kopensolaris-gnu/syscalls.list

index 4615bf9..48f11c7 100644 (file)
@@ -23,7 +23,7 @@ sysdep_routines +=  gethrtime mount umount umount2 systeminfo resolvepath \
     core_get_options core_get_process_content core_get_process_path \
     core_set_default_content core_set_default_path core_set_global_content \
     core_set_global_path core_set_options core_set_process_content \
-    core_set_process_path getacct putacct wracct
+    core_set_process_path getacct putacct wracct sysfs
 sysdep_routines += sys_fdsync sys_sysconfig sys_brk sys_fcntl sys_utssys \
     sys_lwp_private sys_uname sys_getloadavg sys_utimes sys_getpeerucred \
     sys_ucred_get sys_privsys sys_syslabeling sys_putmsg sys_putpmsg \
@@ -36,8 +36,7 @@ sysdep_headers += sys/feature_tests.h sys/lwp.h sys/mount.h sys/cred.h \
     sys/pset.h sys/priv.h sys/acl.h sys/procfs.h sys/reg.h sys/bufmod.h \
     sys/types32.h sys/task.h sys/isa_defs.h sys/door.h sys/corectl.h \
     sys/elf.h sys/rctl.h sys/task.h sys/zone.h sys/refstr.h sys/refstr_impl.h \
-    sys/time_impl.h sys/mutex.h sys/tsol/label.h sys/tsol/label_macro.h \
-    sys/exacct.h
+    sys/time_impl.h sys/mutex.h sys/tsol/label.h sys/exacct.h
 sysdep_headers += ucred.h priv.h bits/regset.h project.h proc_service.h \
     door.h rtld_db.h zone.h project.h
 endif
index f994643..badbcc8 100644 (file)
@@ -35,7 +35,7 @@ libc {
     resolvepath;
 
     # s
-    setpflags; setppriv; setustack; strlcat; strlcpy; swapctl; __systemcall;
+    setpflags; setppriv; setustack; strlcat; strlcpy; swapctl; __systemcall; sysfs;
     systeminfo;
 
     # u
index 99f704f..d4c0d00 100644 (file)
 #ifndef _SYS_FSTYP_H
 #define        _SYS_FSTYP_H
 
+#include <features.>
+
 #define        FSTYPSZ         16
 
 #define        GETFSIND        1
 #define        GETFSTYP        2
 #define        GETNFSTYP       3
 
+__BEGIN_DECLS
+
+int sysfs (int, ...);
+
+__END_DECLS
+
 #endif /* _SYS_FSTYP_H */
index aad6d91..63b4c8f 100644 (file)
@@ -97,6 +97,7 @@ sockconfig          - sockconfig            i:iiis      _sockconfig         sock
 statvfs             - statvfs               i:sp        __statvfs           statvfs
 statvfs64           - statvfs64             i:sp        __statvfs64         statvfs64
 stty                - stty                  i:ip        stty
+sysfs               - sysfs                 i:iii       sysfs
 systeminfo          - systeminfo            i:ipi       sysinfo
 swapctl             - uadmin:swapctl        i:ip        swapctl
 uadmin              - uadmin                i:iii       __uadmin            uadmin