Main Page   Compound List   File List   Compound Members   File Members  

quota.h

00001 /*
00002  * Copyright (C) 2000,2001 Red Hat, Inc.
00003  *
00004  * This is free software; you can redistribute it and/or modify it under
00005  * the terms of the GNU Library General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017  */
00018 #ident "$Id: quota.h,v 1.4 2001/07/12 01:06:04 nalin Exp $"
00019 
00020 #ifndef libuser_quota_h
00021 #define libuser_quota_h
00022 
00023 #include <sys/types.h>
00024 
00025 int quota_on(void);
00026 int quota_off(void);
00027 
00028 char **quota_get_specials_user(void);
00029 char **quota_get_specials_group(void);
00030 void quota_free_specials(char **specials);
00031 
00032 int quota_get_user(uid_t uid, const char *special,
00033                    int32_t *inode_usage, int32_t *inode_soft,
00034                    int32_t *inode_hard, int32_t *inode_grace,
00035                    int32_t *block_usage, int32_t *block_soft,
00036                    int32_t *block_hard, int32_t *block_grace);
00037 int quota_set_user(uid_t uid, const char *special,
00038                    int32_t inode_soft, int32_t inode_hard, 
00039                    int32_t inode_grace, int32_t block_soft, 
00040                    int32_t block_hard, int32_t block_grace);
00041 
00042 int quota_get_group(gid_t gid, const char *special,
00043                    int32_t *inode_usage, int32_t *inode_soft,
00044                    int32_t *inode_hard, int32_t *inode_grace,
00045                    int32_t *block_usage, int32_t *block_soft,
00046                    int32_t *block_hard, int32_t *block_grace);
00047 int quota_set_group(gid_t gid, const char *special,
00048                     int32_t inode_soft, int32_t inode_hard, 
00049                     int32_t inode_grace, int32_t block_soft, 
00050                     int32_t block_hard, int32_t block_grace);
00051 
00052 #endif

Generated at Wed Aug 29 13:14:11 2001 for libuser by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001