I want to mount 100 MB tmpfs within a C program in Linux. How can pass pass mount's options (i.e. -o size=100M,mode=0755) to the mount syscall?
It is the mount interface for C:
#include <sys/mount.h>
int mount(const char *source, const char *target,
const char *filesystemtype, unsigned long mountflags,
const void *data);