summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/solaris2/kopensolaris-gnu/rctl.h
blob: c7d17931c412063735a27fea5691b01681c28185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* Copyright (C) 2008 Free Software Foundation, Inc.
   This file is part of the GNU C Library.
   Contributed by David Bartley <dtbartle@csclub.uwaterloo.ca>, 2008.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, write to the Free
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
   02111-1307 USA.  */

#ifndef _RCTL_H
#define _RCTL_H

#include <sys/rctl.h>
#include <sys/types.h>
#include <features.h>

__BEGIN_DECLS

int rctl_walk(int (*)(const char *, void *), void *);

hrtime_t rctlblk_get_firing_time (rctlblk_t *);
unsigned int rctlblk_get_global_action (rctlblk_t *);
unsigned int rctlblk_get_global_flags (rctlblk_t *);
unsigned int rctlblk_get_local_action (rctlblk_t *, int *);
unsigned int rctlblk_get_local_flags (rctlblk_t *);
rctl_priv_t rctlblk_get_privilege (rctlblk_t *);
id_t rctlblk_get_recipient_pid (rctlblk_t *);
rctl_qty_t rctlblk_get_value(rctlblk_t *);
rctl_qty_t rctlblk_get_enforced_value (rctlblk_t *);
void rctlblk_set_local_action (rctlblk_t *, unsigned int, int);
void rctlblk_set_local_flags (rctlblk_t *, unsigned int);
void rctlblk_set_privilege (rctlblk_t *, rctl_priv_t);
void rctlblk_set_recipient_pid (rctlblk_t *, id_t);
size_t rctlblk_size (void);

__END_DECLS

#endif /* _RCTL_H */