chiark / gitweb /
Prep v221: Update and clean up build system to sync with upstream
[elogind.git] / src / basic / fileio.c
similarity index 99%
rename from src/shared/fileio.c
rename to src/basic/fileio.c
index d592bf5ac9c2f5126fd9e01f5ef878c905abc86a..718ed3642dca88c5dfe18fe32566940671a30d47 100644 (file)
@@ -631,6 +631,8 @@ int load_env_file(FILE *f, const char *fname, const char *newline, char ***rl) {
         return 0;
 }
 
+/// UNNEDED by elogind
+#if 0
 static int load_env_file_push_pairs(
                 const char *filename, unsigned line,
                 const char *key, char *value,
@@ -689,6 +691,7 @@ int load_env_file_pairs(FILE *f, const char *fname, const char *newline, char **
         *rl = m;
         return 0;
 }
+#endif // 0
 
 static void write_env_var(FILE *f, const char *v) {
         const char *p;
@@ -750,6 +753,8 @@ int write_env_file(const char *fname, char **l) {
         return r;
 }
 
+/// UNNEEDED by elogind
+#if 0
 int executable_is_script(const char *path, char **interpreter) {
         int r;
         _cleanup_free_ char *line = NULL;
@@ -778,6 +783,7 @@ int executable_is_script(const char *path, char **interpreter) {
         *interpreter = ans;
         return 1;
 }
+#endif // 0
 
 /**
  * Retrieve one field from a file like /proc/self/status.  pattern