mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
17 lines
463 B
C
17 lines
463 B
C
#ifndef __CR_ERRNO_H__
|
|
#define __CR_ERRNO_H__
|
|
|
|
void set_cr_errno(int err);
|
|
int get_cr_errno(void);
|
|
|
|
/*
|
|
* List of symbolic error names:
|
|
* ESRCH - no process can be found corresponding to that specified by pid
|
|
* EEXIST - process with such pid already exists
|
|
* EBADRQC - bad options
|
|
*/
|
|
|
|
#define set_task_cr_err(new_err) atomic_cmpxchg(&task_entries->cr_err, 0, new_err)
|
|
#define get_task_cr_err() atomic_read(&task_entries->cr_err)
|
|
|
|
#endif /* __CR_ERRNO_H__ */
|