Contains methods to write to file. More...
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include "../core/superblock.h"
#include "../core/descriptors_table.h"
#include "../core/defines.h"
#include "../core/methods.h"
#include "utils.h"
#include "net_utils.h"
Go to the source code of this file.
Functions | |
void | write_to_file (const char *path_to_fs_file, uint16_t file_descriptor, char *data, uint32_t size, int output_fd) |
Write data to file Write data from data to file by file_descriptor. More... | |
void | write_to_file_from_file (const char *path_to_fs_file, uint16_t file_descriptor, const char *path_to_file) |
Write data to file Write data from path_to_file to file by file_descriptor. More... | |
void write_to_file | ( | const char * | path_to_fs_file, |
uint16_t | file_descriptor, | ||
char * | data, | ||
uint32_t | size, | ||
int | output_fd | ||
) |
Write data to file Write data from data to file by file_descriptor.
fs_file_path | |
file_descriptor | opened file descriptor from our FS |
data | data to write |
size | size should be max_data_size |
output_fd |
Definition at line 32 of file write_to_file.h.
void write_to_file_from_file | ( | const char * | path_to_fs_file, |
uint16_t | file_descriptor, | ||
const char * | path_to_file | ||
) |
Write data to file Write data from path_to_file to file by file_descriptor.
path_to_fs_file | |
file_descriptor | |
path_to_file |
Definition at line 271 of file write_to_file.h.