Skip to content

Commit f93c6c3

Browse files
committed
Auto merge of #2478 - devnexen:dfbsd_chkpoint_api, r=Amanieu
dragonflybsd add checkpoint api
2 parents 6877d17 + a6c3d6b commit f93c6c3

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ fn test_dragonflybsd(target: &str) {
12251225
"sys/times.h",
12261226
"sys/timex.h",
12271227
"sys/types.h",
1228+
"sys/checkpoint.h",
12281229
"sys/uio.h",
12291230
"sys/un.h",
12301231
"sys/utsname.h",

libc-test/semver/dragonfly.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ CCTS_OFLOW
112112
CDSR_OFLOW
113113
CDTR_IFLOW
114114
CIGNORE
115+
CKPT_FREEZE
116+
CKPT_THAW
115117
CLD_CONTINUED
116118
CLD_DUMPED
117119
CLD_EXITED
@@ -853,6 +855,8 @@ SHM_R
853855
SHM_RDONLY
854856
SHM_RND
855857
SHM_W
858+
SIGCKPT
859+
SIGCKPTEXIT
856860
SIGEMT
857861
SIGEV_KEVENT
858862
SIGEV_NONE
@@ -1449,6 +1453,7 @@ strncasecmp
14491453
strndup
14501454
strsignal
14511455
sync
1456+
sys_checkpoint
14521457
syscall
14531458
sysctl
14541459
sysctlbyname

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,10 @@ cfg_if! {
701701
pub const RAND_MAX: ::c_int = 0x7fff_ffff;
702702
pub const PTHREAD_STACK_MIN: ::size_t = 16384;
703703
pub const SIGSTKSZ: ::size_t = 40960;
704+
pub const SIGCKPT: ::c_int = 33;
705+
pub const SIGCKPTEXIT: ::c_int = 34;
706+
pub const CKPT_FREEZE: ::c_int = 0x1;
707+
pub const CKPT_THAW: ::c_int = 0x2;
704708
pub const MADV_INVAL: ::c_int = 10;
705709
pub const MADV_SETMAP: ::c_int = 11;
706710
pub const O_CLOEXEC: ::c_int = 0x00020000;
@@ -1407,6 +1411,8 @@ extern "C" {
14071411
pub fn updlastlogx(fname: *const ::c_char, uid: ::uid_t, ll: *mut lastlogx) -> ::c_int;
14081412
pub fn getutxuser(name: *const ::c_char) -> utmpx;
14091413
pub fn utmpxname(file: *const ::c_char) -> ::c_int;
1414+
1415+
pub fn sys_checkpoint(tpe: ::c_int, fd: ::c_int, pid: ::pid_t, retval: ::c_int) -> ::c_int;
14101416
}
14111417

14121418
#[link(name = "rt")]

0 commit comments

Comments
 (0)