]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libfrog/platform.h
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
7 #ifndef __LIBFROG_PLATFORM_H__
8 #define __LIBFROG_PLATFORM_H__
10 int platform_check_ismounted(char *path
, char *block
, struct stat
*sptr
,
12 int platform_check_iswritable(char *path
, char *block
, struct stat
*sptr
);
13 int platform_set_blocksize(int fd
, char *path
, dev_t device
, int bsz
,
15 void platform_flush_device(int fd
, dev_t device
);
16 char *platform_findrawpath(char *path
);
17 char *platform_findblockpath(char *path
);
18 int platform_direct_blockdev(void);
19 int platform_align_blockdev(void);
20 unsigned long platform_physmem(void); /* in kilobytes */
21 void platform_findsizes(char *path
, int fd
, long long *sz
, int *bsz
);
22 int platform_nproc(void);
24 void platform_findsizes(char *path
, int fd
, long long *sz
, int *bsz
);
26 #endif /* __LIBFROG_PLATFORM_H__ */