X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futil.h;h=66ebb46dbf6741f9fd579e4a9414a8d20ebd7561;hp=b097dc9b7b629b3c970cc3db9a1638c871ef6cd4;hb=598b557bf0dea33db2c13d383382efbd847ed5f0;hpb=56cf987fe74270bde4e16c7ec9e0414a9030723b diff --git a/src/util.h b/src/util.h index b097dc9b7..66ebb46db 100644 --- a/src/util.h +++ b/src/util.h @@ -61,6 +61,7 @@ typedef struct dual_timestamp { #define FORMAT_TIMESPAN_MAX 64 #define ANSI_HIGHLIGHT_ON "\x1B[1;31m" +#define ANSI_HIGHLIGHT_GREEN_ON "\x1B[1;32m" #define ANSI_HIGHLIGHT_OFF "\x1B[0m" usec_t now(clockid_t clock); @@ -318,7 +319,6 @@ void sigset_add_many(sigset_t *ss, ...); char* gethostname_malloc(void); char* getlogname_malloc(void); int getttyname_malloc(char **r); -int getmachineid_malloc(char **r); int chmod_and_chown(const char *path, mode_t mode, uid_t uid, gid_t gid); @@ -336,6 +336,8 @@ int running_in_chroot(void); char *ellipsize(const char *s, unsigned length, unsigned percent); +void nss_disable_nscd(void); + const char *ioprio_class_to_string(int i); int ioprio_class_from_string(const char *s); @@ -360,14 +362,4 @@ int ip_tos_from_string(const char *s); const char *signal_to_string(int i); int signal_from_string(const char *s); -int label_init(void); -int label_fix(const char *path); -void label_finish(void); -int label_socket_set(const char *label); -void label_socket_clear(void); -int label_fifofile_set(const char *label, const char *path); -void label_file_clear(void); -void label_free(const char *label); -int label_get_socket_label_from_exe(const char *exe, char **label); - #endif