File: adjtimex.c

package info (click to toggle)
trinity 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,252 kB
  • ctags: 2,738
  • sloc: ansic: 24,011; sh: 322; makefile: 141
file content (22 lines) | stat: -rw-r--r-- 610 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * SYSCALL_DEFINE1(adjtimex, struct timex __user *, txc_p
 *
 * On success, adjtimex() returns the clock state: */

#define TIME_OK   0 /* clock synchronized */
#define TIME_INS  1 /* insert leap second */
#define TIME_DEL  2 /* delete leap second */
#define TIME_OOP  3 /* leap second in progress */
#define TIME_WAIT 4 /* leap second has occurred */
#define TIME_BAD  5 /* clock not synchronized */

 /* On failure, adjtimex() returns -1 and sets errno. */

#include "sanitise.h"

struct syscall syscall_adjtimex = {
	.name = "adjtimex",
	.num_args = 1,
	.arg1name = "txc_p",
	.arg1type = ARG_ADDRESS,
};