Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,7 @@ fn test_dragonflybsd(target: &str) {
"sys/times.h",
"sys/timex.h",
"sys/types.h",
"sys/checkpoint.h",
"sys/uio.h",
"sys/un.h",
"sys/utsname.h",
Expand Down
5 changes: 5 additions & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ CCTS_OFLOW
CDSR_OFLOW
CDTR_IFLOW
CIGNORE
CKPT_FREEZE
CKPT_THAW
CLD_CONTINUED
CLD_DUMPED
CLD_EXITED
Expand Down Expand Up @@ -853,6 +855,8 @@ SHM_R
SHM_RDONLY
SHM_RND
SHM_W
SIGCKPT
SIGCKPTEXIT
SIGEMT
SIGEV_KEVENT
SIGEV_NONE
Expand Down Expand Up @@ -1449,6 +1453,7 @@ strncasecmp
strndup
strsignal
sync
sys_checkpoint
syscall
sysctl
sysctlbyname
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,10 @@ cfg_if! {
pub const RAND_MAX: ::c_int = 0x7fff_ffff;
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
pub const SIGSTKSZ: ::size_t = 40960;
pub const SIGCKPT: ::c_int = 33;
pub const SIGCKPTEXIT: ::c_int = 34;
pub const CKPT_FREEZE: ::c_int = 0x1;
pub const CKPT_THAW: ::c_int = 0x2;
pub const MADV_INVAL: ::c_int = 10;
pub const MADV_SETMAP: ::c_int = 11;
pub const O_CLOEXEC: ::c_int = 0x00020000;
Expand Down Expand Up @@ -1407,6 +1411,8 @@ extern "C" {
pub fn updlastlogx(fname: *const ::c_char, uid: ::uid_t, ll: *mut lastlogx) -> ::c_int;
pub fn getutxuser(name: *const ::c_char) -> utmpx;
pub fn utmpxname(file: *const ::c_char) -> ::c_int;

pub fn sys_checkpoint(tpe: ::c_int, fd: ::c_int, pid: ::pid_t, retval: ::c_int) -> ::c_int;
}

#[link(name = "rt")]
Expand Down