#include "config.h"
#include "check_device.h"
#include <stdio.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <libintl.h>
#include "len.h"
#include "output.h"
Go to the source code of this file.
◆ check_device()
| int check_device |
( |
const char * |
file, |
|
|
const char * |
dev |
|
) |
| |
Check if a file is on the given device.
- Parameters
-
| [in] | file | Pointer to a string representing the filename. |
| [in] | dev | Pointer to a string representing the device name. |
- Returns
- return value
- 0 file is on device
- -1 file is not on device
Definition at line 99 of file check_device.c.
◆ readmountinfo()
| int readmountinfo |
( |
struct mnt_info *** |
collection | ) |
|