* @param master read only master file system directory
* @param host copy on write host directory
* @param mount mountpoint where union is mounted
- * @return instance, or NULL if FUSE initalization failed
+ * @return instance, or NULL if FUSE initialization failed
*/
cowfs_t *cowfs_create(char *master, char *host, char *mount);
};
typedef struct {
- /** assocaited fetcher construction function */
+ /** associated fetcher construction function */
fetcher_constructor_t create;
/** URL this fetcher support */
char *url;
static char failure_buf[512];
/**
- * Source file failure occured
+ * Source file failure occurred
*/
static const char *failure_file;
/**
- * Line of source file failure occured
+ * Line of source file failure occurred
*/
static int failure_line;
char *translate(char *str, const char *from, const char *to);
/**
- * Replaces all occurences of search in the given string with replace.
+ * Replaces all occurrences of search in the given string with replace.
*
* Allocates memory only if anything is replaced in the string. The original
* string is also returned if any of the arguments are invalid (e.g. if search
*
* @param str original string
* @param search string to search for and replace
- * @param replace string to replace found occurences with
+ * @param replace string to replace found occurrences with
* @return allocated string, if anything got replaced, str otherwise
*/
char *strreplace(const char *str, const char *search, const char *replace);
/**
* Close open file descriptors greater than or equal to lowfd.
*
- * @param lowfd start closing file descriptoros from here
+ * @param lowfd start closing file descriptors from here
*/
void closefrom(int lowfd);
#endif