[BACK]Return to fsu_compat.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / othersrc / fsu_compat

File: [cvs.NetBSD.org] / othersrc / fsu_compat / fsu_compat.h (download)

Revision 1.2, Fri Nov 6 11:47:41 2009 UTC (12 years, 2 months ago) by stacktic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +9 -3 lines

include nbcompat.h where needed
rename wrapped functions

#ifndef _FSU_COMPAT_H_
#define _FSU_COMPAT_H_

#include "nbstdlib.h"
#include "nbsysstat.h"

#ifndef howmany
#define howmany(x, y) (((x)+((y)-1))/(y))
#endif

#ifndef __UNCONST
#define __UNCONST(a) ((char *)(unsigned long)(const char *)(a))
#endif

int	string_to_flags(char **, unsigned long *, unsigned long *);
char    *flags_to_string(unsigned long, const char *);
int 	humanize_number(char *, size_t, int64_t, const char *, int, int);
char 	*getbsize(int *, long *);

#endif