Lines Matching refs:fw
803 _cleanup_fclose_ FILE *fr = NULL, *fw = NULL; in locale_gen_enable_locale() local
833 r = fopen_temporary("/etc/locale.gen", &fw, &temp_path); in locale_gen_enable_locale()
838 (void) fchmod(fileno(fw), 0644); in locale_gen_enable_locale()
841 r = copy_access(fileno(fr), fileno(fw)); in locale_gen_enable_locale()
844 r = copy_xattr(fileno(fr), fileno(fw), COPY_ALL_XATTRS); in locale_gen_enable_locale()
867 fputc('\n', fw); in locale_gen_enable_locale()
868 fputs(line, fw); in locale_gen_enable_locale()
875 fputc('\n', fw); in locale_gen_enable_locale()
889 fputc('\n', fw); in locale_gen_enable_locale()
890 fputs(locale_entry, fw); in locale_gen_enable_locale()
898 fputc('\n', fw); in locale_gen_enable_locale()
899 fputs(line, fw); in locale_gen_enable_locale()
907 fputc('\n', fw); in locale_gen_enable_locale()
908 fputs(locale_entry, fw); in locale_gen_enable_locale()
910 fputc('\n', fw); in locale_gen_enable_locale()
912 r = fflush_sync_and_check(fw); in locale_gen_enable_locale()