File: platform.h

package info (click to toggle)
xfsprogs 6.17.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 11,324 kB
  • sloc: ansic: 167,334; sh: 4,604; makefile: 1,336; python: 835; cpp: 5
file content (24 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
 * All Rights Reserved.
 */

#ifndef __LIBFROG_PLATFORM_H__
#define __LIBFROG_PLATFORM_H__

int platform_check_ismounted(char *path, char *block, struct stat *sptr,
		int verbose);
int platform_check_iswritable(char *path, char *block, struct stat *sptr);
void platform_set_blocksize(int fd, char *path, dev_t device, int bsz,
		bool fatal);
int platform_flush_device(int fd, dev_t device);
int platform_direct_blockdev(void);
int platform_align_blockdev(void);
unsigned long platform_physmem(void);	/* in kilobytes */
void platform_findsizes(char *path, int fd, long long *sz, int *bsz);
int platform_nproc(void);

void platform_findsizes(char *path, int fd, long long *sz, int *bsz);

#endif /* __LIBFROG_PLATFORM_H__ */