Don't forget getting the file name from parameters.
Remove unused unistd.h include.