Changes

Jump to navigation Jump to search
188 bytes added ,  21:02, 27 January 2018
add missing ioctls, etc
Line 115: Line 115:     
== Sysctl ==
 
== Sysctl ==
This command is exclusive to <code>bsd:s</code> (FIXME: test whether this is actually the case).
     −
FreeBSD's <code>sysctl</code> command, restricted to <code>CTL_NET</code> (?).
+
FreeBSD's <code>sysctl</code> command, restricted to <code>CTL_NET</code> (?). Privileged operations are reserved for <code>bsd:s</code>.
    
== Ioctl ==
 
== Ioctl ==
FreeBSD's <code>ioctl</code> function. The following ioctls are implemented, refer to FreeBSD's headers for more details: SIOCATMARK, BIOCGBLEN, BIOCIMMEDIATE, BIOCSETIF, SIOCGETSGCNT, SIOCGIFMETRIC, SIOCSIFMETRIC SIOCDIFADDR, SIOCGIFINDEX, SIOCGIFADDR, SIOCGIFCONF, SIOCGIFNETMASK, SIOCGIFMTU, SIOCSIFMTU, SIOCGIFMEDIA, SIOCSIFLLADDR and SIOCGIFXMEDIA.
+
FreeBSD's <code>ioctl</code> function. The following ioctls are implemented, refer to FreeBSD's headers for more details: SIOCATMARK, BIOCGBLEN, BIOCSETF, BIOCIMMEDIATE, BIOCSETIF, BIOCVERSION, FIONSPACE, FIONWRITE, FIONREAD, SIOCGETSGCNT, SIOCGIFMETRIC, SIOCSIFMETRIC, SIOCDIFADDR, SIOCGIFINDEX, SIOCGIFADDR, SIOCGIFCONF, SIOCGIFNETMASK, SIOCAIFADDR, SIOCGIFMTU, SIOCSIFMTU, SIOCGIFMEDIA, SIOCSIFLLADDR and SIOCGIFXMEDIA.
    
== Fcntl ==
 
== Fcntl ==
 
FreeBSD's <code>fcntl</code>, limited to <code>F_GETFL</code> and <code>F_SETFL</code> with <code>O_NONBLOCK</code>.
 
FreeBSD's <code>fcntl</code>, limited to <code>F_GETFL</code> and <code>F_SETFL</code> with <code>O_NONBLOCK</code>.
 +
 +
== DuplicateSocket ==
 +
Takes a socket file descriptor and an unused u64. Duplicates the socket (FreeBSD's <code>dup</code>). Reserved to <code>bsd:s</code>.
    
= sfdnsres =
 
= sfdnsres =
88

edits

Navigation menu