Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/param.h
Show All 39 Lines | |||||
* file systems; however making it smaller may make some file | * file systems; however making it smaller may make some file | ||||
* systems unmountable. | * systems unmountable. | ||||
* | * | ||||
* Note that the blocked devices are assumed to have DEV_BSIZE | * Note that the blocked devices are assumed to have DEV_BSIZE | ||||
* "sectors" and that fragments must be some multiple of this size. | * "sectors" and that fragments must be some multiple of this size. | ||||
*/ | */ | ||||
#define MAXNAMELEN 256 | #define MAXNAMELEN 256 | ||||
#ifndef IN_BASE | #ifdef IN_BASE | ||||
#define UID_NOBODY 60001 /* user ID no body */ | #define UID_NOBODY 65534 /* user ID no body */ | ||||
#define GID_NOBODY UID_NOBODY | #define GID_NOBODY 65534 | ||||
freqlabs: This change from ifndef to ifdef is concerning. What's going on here? | |||||
Done Inline ActionsThat's likely a mistake. I'll bet it can be removed entirely. imp: That's likely a mistake. I'll bet it can be removed entirely. | |||||
#endif | #endif | ||||
#define UID_NOACCESS 60002 /* user ID no access */ | #define UID_NOACCESS 60002 /* user ID no access */ | ||||
#define MAXUID UINT32_MAX /* max user id */ | #define MAXUID UINT32_MAX /* max user id */ | ||||
#define MAXPROJID MAXUID /* max project id */ | #define MAXPROJID MAXUID /* max project id */ | ||||
#ifdef PAGESIZE | #ifdef PAGESIZE | ||||
#undef PAGESIZE | #undef PAGESIZE | ||||
#endif /* PAGESIZE */ | #endif /* PAGESIZE */ | ||||
extern size_t spl_pagesize(void); | extern size_t spl_pagesize(void); | ||||
#define PAGESIZE (spl_pagesize()) | #define PAGESIZE (spl_pagesize()) | ||||
extern int execvpe(const char *name, char * const argv[], char * const envp[]); | extern int execvpe(const char *name, char * const argv[], char * const envp[]); | ||||
#endif | #endif |
This change from ifndef to ifdef is concerning. What's going on here?