24 lines
425 B
C
24 lines
425 B
C
#ifndef _LIBC_SYS_PARAM_H
|
|
#define _LIBC_SYS_PARAM_H
|
|
|
|
#pragma once
|
|
|
|
#include <limits.h>
|
|
#include <sys/types.h>
|
|
|
|
#ifndef MAXPATHLEN
|
|
#define MAXPATHLEN 4096
|
|
#endif
|
|
|
|
#ifndef MIN
|
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
#endif
|
|
#ifndef MAX
|
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
|
#endif
|
|
|
|
#define howmany(x, y) (((x) + ((y) - 1)) / (y))
|
|
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
|
|
|
|
#endif /* _LIBC_SYS_PARAM_H */
|