From 411f7fc4781f6758a50ce206df62efd809c20186 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 12 Jan 2019 09:30:29 -0800 Subject: sed: add -z. Used to construct SELinux policies in the AOSP build. I left loopfiles_lines with its hard-coded '\n' because although cut(1) also has a -z option, I can't find any case where it's used in any of the codebases searchable by me. (And fmt(1), the other user, doesn't even have the option.) YAGNI. Bug: http://b/122744241 --- lib/lib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index 3e6838ea..578a99c9 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -253,7 +253,7 @@ int regexec0(regex_t *preg, char *string, long len, int nmatch, regmatch_t pmatch[], int eflags); char *getusername(uid_t uid); char *getgroupname(gid_t gid); -void do_lines(int fd, void (*call)(char **pline, long len)); +void do_lines(int fd, char delim, void (*call)(char **pline, long len)); long environ_bytes(); long long millitime(void); char *format_iso_time(char *buf, size_t len, struct timespec *ts); -- cgit v1.2.3