Lines Matching +full:write +full:- +full:command

4  * SPDX-License-Identifier: Apache-2.0
13 * * Functions to write known content into files, and to verify that
17 * content against the build command description.
92 size_t len = sp->eos - sp->path; in testfs_path_copy()
94 memcpy(dp->path, sp->path, len + 1); in testfs_path_copy()
95 dp->eos = dp->path + len; in testfs_path_copy()
100 /** Write a sequence of constant data to the file.
104 * @param fp pointer to the file to write
106 * @param value value of the bytes to write
108 * @param len number of octets to write
134 /** Write an increasing sequence of bytes to the file.
138 * @param fp pointer to the file to write
140 * @param value value of the first byte to write
142 * @param len number of octets to write
178 * up to the next matching EXIT_DIR command are to be created within
208 #define TESTFS_BCMD_IS_ENTER_DIR(cp) (((cp)->type == FS_DIR_ENTRY_DIR) \
209 && ((cp)->name != NULL))
210 #define TESTFS_BCMD_IS_EXIT_DIR(cp) (((cp)->type == FS_DIR_ENTRY_DIR) \
211 && ((cp)->name == NULL))
212 #define TESTFS_BCMD_IS_FILE(cp) (((cp)->type == FS_DIR_ENTRY_FILE) \
213 && ((cp)->name != NULL))
214 #define TESTFS_BCMD_IS_END(cp) (((cp)->type == FS_DIR_ENTRY_FILE) \
215 && ((cp)->name == NULL))
236 * @param cp a command within the range
238 * @return a pointer to the END command in the range.
252 * Build command record entries that are that are matched will have
258 * @param scp the first build command relevant to the directory.
264 * build command content, or a negative error code on compare or file
271 /** Search a build command range for a match to an entry.
274 * match between the build command and the file status. The content
279 * @param scp pointer to the first build command associated with the
282 * @param ecp pointer to the exclusive last entry in the build command
285 * @return a pointer to a build command that matches in type and name,
292 /** Find the exit dir command that balances the enter dir command.
294 * @param cp pointer to an ENTER_DIR command.
299 * @return a pointer to the paired EXIT_DIR command.