File: swap.h

package info (click to toggle)
dietlibc 0.32-5.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 9,116 kB
  • ctags: 19,753
  • sloc: ansic: 54,723; asm: 11,274; cpp: 1,835; makefile: 683; sh: 104; perl: 62
file content (19 lines) | stat: -rw-r--r-- 397 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _SYS_SWAP_H
#define _SYS_SWAP_H

#include <sys/cdefs.h>

#define SWAP_FLAG_PREFER       0x8000  /* set if swap priority specified */
#define SWAP_FLAG_PRIO_MASK    0x7fff
#define SWAP_FLAG_PRIO_SHIFT   0

#define MAX_SWAPFILES 32

__BEGIN_DECLS

extern int swapon (const char *path, int flags) __THROW;
extern int swapoff (const char *path) __THROW;

__END_DECLS

#endif /* _SYS_SWAP_H */