diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-11 12:53:49 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-11 12:53:49 -0500 |
commit | 238dc39030fc8fd7dbc441bff85d337017f0cf0b (patch) | |
tree | 228d194f97780e7b9d4188cb1f1afbc915b3d6ad /spm.h | |
parent | 07c2c5067927464afcb34ced4ffa65cc41a59339 (diff) | |
download | spmc-238dc39030fc8fd7dbc441bff85d337017f0cf0b.tar.gz |
Minor refactor of relocation functions. Added file_replace_text
Diffstat (limited to 'spm.h')
-rw-r--r-- | spm.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -78,10 +78,12 @@ void shell_free(Process *proc_info); int tar_extract_archive(const char *_archive, const char *_destination); int tar_extract_file(const char *archive, const char* filename, const char *destination); int rsync(const char *_args, const char *_source, const char *_destination); -int relocate(const char *_oldstr, const char *_newstr, const char *_filename); -RelocationEntry **read_prefixes(const char *filename); -void free_prefixes(RelocationEntry **entry); +int relocate(const char *filename, const char *_oldstr, const char *_newstr); +int file_replace_text(const char *filename, const char *oldstr, const char *newstr); +RelocationEntry **prefixes_read(const char *filename); +void prefixes_free(RelocationEntry **entry); +int file_replace_text(const char *filename, const char *oldstr, const char *newstr); int num_chars(const char *sptr, int ch); int startswith(const char *sptr, const char *pattern); int endswith(const char *sptr, const char *pattern); |