Motr
M0
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <sys/ioctl.h>
#include "m0t1fs/m0t1fs_ioctl.h"
Go to the source code of this file.
Macros | |
#define | PASS "pass" |
#define | FAIL "fail" |
Functions | |
int | test_fwait_write (int fd) |
int | test_wrong_cmd (int fd) |
int | test_wrong_fd (void) |
int | main (int argc, char **argv) |
#define FAIL "fail" |
Definition at line 35 of file m0t1fs_fwait_test_helper.c.
#define PASS "pass" |
Definition at line 34 of file m0t1fs_fwait_test_helper.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
int test_fwait_write | ( | int | fd | ) |
Creates an object in motr, writes some data and tries to fwait on it.
Definition at line 40 of file m0t1fs_fwait_test_helper.c.
int test_wrong_cmd | ( | int | fd | ) |
Generates an ioctl with an unknown command associated.
Definition at line 58 of file m0t1fs_fwait_test_helper.c.
int test_wrong_fd | ( | void | ) |
Generates an ioctl targeted to an invalid file descriptor.
Definition at line 69 of file m0t1fs_fwait_test_helper.c.