]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - libfrog/platform.h
libxfs/frog: remove latform_find{raw,block}path
[thirdparty/xfsprogs-dev.git] / libfrog / platform.h
CommitLineData
b658de93
DW
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6
7#ifndef __LIBFROG_PLATFORM_H__
8#define __LIBFROG_PLATFORM_H__
9
10int platform_check_ismounted(char *path, char *block, struct stat *sptr,
11 int verbose);
12int platform_check_iswritable(char *path, char *block, struct stat *sptr);
13int platform_set_blocksize(int fd, char *path, dev_t device, int bsz,
14 int fatal);
a688242b 15int platform_flush_device(int fd, dev_t device);
b658de93
DW
16int platform_direct_blockdev(void);
17int platform_align_blockdev(void);
18unsigned long platform_physmem(void); /* in kilobytes */
19void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
20int platform_nproc(void);
21
22void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
23
24#endif /* __LIBFROG_PLATFORM_H__ */