Skip to content

Commit

Permalink
sys/freebsd: added __specialfd syscall
Browse files Browse the repository at this point in the history
  • Loading branch information
simran-kathpalia authored and markjdb committed Jun 29, 2021
1 parent b4bbe51 commit 42aeb8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sys/freebsd/sys.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ include <time.h>
include <signal.h>
include <sys/wait.h>
include <sys/time.h>
include <sys/specialfd.h>

type signo int32[0:SIGRTMAX]

Expand Down Expand Up @@ -136,6 +137,7 @@ copy_file_range(infd fd, inoffp ptr[inout, fileoff[int64]], outfd fd, outoffp pt
__realpathat(dirfd fd, path ptr[in, filename], buf ptr[out, string], size len[buf], flags flags[realpathat_flags])
undelete(path ptr[in, filename])
acct(filename ptr[in, filename, opt])
__specialfd$eventfd(type const[SPECIALFD_EVENTFD], req ptr[in, eventfd], len len[req]) fd

getrusage(who flags[rusage_who], usage ptr[out, rusage])
getrlimit(res flags[rlimit_type], rlim ptr[out, rlimit])
Expand Down Expand Up @@ -324,6 +326,11 @@ linger {
linger int32
}

eventfd {
initval int32
flags int32
}

pollfd_events = POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL, POLLRDNORM, POLLRDBAND, POLLWRNORM, POLLWRBAND, POLLINIGNEOF
mknod_mode = S_IFREG, S_IFCHR, S_IFBLK, S_IFIFO, S_IFSOCK, S_IRUSR, S_IWUSR, S_IXUSR, S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH
at_flags = 0, AT_SYMLINK_NOFOLLOW, AT_SYMLINK_FOLLOW, AT_RESOLVE_BENEATH, AT_EMPTY_PATH
Expand Down
2 changes: 2 additions & 0 deletions sys/freebsd/sys.txt.const
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ SIGRTMAX = 126
SIG_BLOCK = 1
SIG_SETMASK = 3
SIG_UNBLOCK = 2
SPECIALFD_EVENTFD = 1
SYS___getcwd = 326
SYS___realpathat = 574
SYS___specialfd = 577
SYS_access = 33
SYS_acct = 51
SYS_chdir = 12
Expand Down

0 comments on commit 42aeb8b

Please sign in to comment.