Basic Solution File System - BSFS
Loading...
Searching...
No Matches
touch.c File Reference

Implements the touch command for the BSFS filesystem. More...

Functions

int touch (FILE *disk, superblock_t *sb, char **args)
 Create an empty regular file.

Detailed Description

Implements the touch command for the BSFS filesystem.

Creates empty files in the filesystem.

Function Documentation

◆ touch()

int touch ( FILE * disk,
superblock_t * sb,
char ** args )

Create an empty regular file.

Usage: touch <filename>

Parameters
diskOpen filesystem image.
sbLoaded superblock.
argsTarget filename in args[1].
Returns
1 to continue the REPL.