aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--COPYING2
-rw-r--r--Makefile10
-rw-r--r--src/coopgammad.c (renamed from src/gammad.c)12
-rw-r--r--src/filter.c2
-rw-r--r--src/filter.h2
-rw-r--r--src/message.c2
-rw-r--r--src/message.h2
-rw-r--r--src/output.c2
-rw-r--r--src/output.h2
-rw-r--r--src/ramps.c2
-rw-r--r--src/ramps.h2
-rw-r--r--src/server.c2
-rw-r--r--src/server.h2
-rw-r--r--src/util.c2
-rw-r--r--src/util.h2
15 files changed, 24 insertions, 24 deletions
diff --git a/COPYING b/COPYING
index 4bbf280..198b37b 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-gammad -- Cooperative gamma server
+coopgammad -- Cooperative gamma server
Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
This library is free software: you can redistribute it and/or modify
diff --git a/Makefile b/Makefile
index 631b544..bb02f60 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-PKGNAME = gammad
-COMMAND = gammad
+PKGNAME = coopgammad
+COMMAND = coopgammad
KERNEL = $(shell uname | tr '[A-Z]_' '[a-z]-')
-SRC = filter gammad output ramps util message server
+SRC = filter coopgammad output ramps util message server
OPTIMISE = -Og -g
@@ -28,9 +28,9 @@ CPPFLAGS = -D'PKGNAME="$(PKGNAME)"' -D'COMMAND="$(COMMAND)"' -D_XOPEN_SOURCE=700
.PHONY: all
-all: bin/gammad
+all: bin/coopgammad
-bin/gammad: $(foreach S,$(SRC),obj/$(S).o)
+bin/coopgammad: $(foreach S,$(SRC),obj/$(S).o)
@mkdir -p -- "$$(dirname -- "$@")"
$(CC) $(LDFLAGS) -o $@ $^
diff --git a/src/gammad.c b/src/coopgammad.c
index fa24d82..26a9d05 100644
--- a/src/gammad.c
+++ b/src/coopgammad.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
@@ -207,11 +207,11 @@ static char* get_pathname(const char* suffix)
if ((pw = getpwuid(getuid())))
username = pw->pw_name ? pw->pw_name : "";
- n = sizeof("/.gammad/~/.") + 3 * sizeof(int);
+ n = sizeof("/.coopgammad/~/.") + 3 * sizeof(int);
n += strlen(rundir) + strlen(username) + strlen(name) + strlen(suffix);
if (!(rc = malloc(n)))
goto fail;
- sprintf(rc, "%s/.gammad/~%s/%i%s%s%s",
+ sprintf(rc, "%s/.coopgammad/~%s/%i%s%s%s",
rundir, username, site.method, name ? "." : "", name ? name : "", suffix);
return rc;
@@ -325,7 +325,7 @@ static char* get_crtc_name(libgamma_crtc_information_t* info, libgamma_crtc_stat
*
* @param pidfile The PID file
* @param token An environment variable (including both key and value)
- * that must exist in the process if it is a gammad process
+ * that must exist in the process if it is a coopgammad process
* @return -1: An error occurred
* 0: The service is already running
* 1: The PID file is outdated
@@ -431,10 +431,10 @@ static int create_pidfile(char* pidfile)
char* token;
/* Create token used to validate the service. */
- token = malloc(sizeof("GAMMAD_PIDFILE_TOKEN=") + strlen(pidfile));
+ token = malloc(sizeof("COOPGAMMAD_PIDFILE_TOKEN=") + strlen(pidfile));
if (token == NULL)
return -1;
- sprintf(token, "GAMMAD_PIDFILE_TOKEN=%s", pidfile);
+ sprintf(token, "COOPGAMMAD_PIDFILE_TOKEN=%s", pidfile);
if (putenv(token))
return -1;
diff --git a/src/filter.c b/src/filter.c
index 5fa91ef..54bb9ad 100644
--- a/src/filter.c
+++ b/src/filter.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/filter.h b/src/filter.h
index 9df24e1..8ffcc26 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/message.c b/src/message.c
index c0372bd..343a26b 100644
--- a/src/message.c
+++ b/src/message.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/message.h b/src/message.h
index 163d806..15ceaf7 100644
--- a/src/message.h
+++ b/src/message.h
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/output.c b/src/output.c
index 3cd7886..5e8e8b0 100644
--- a/src/output.c
+++ b/src/output.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/output.h b/src/output.h
index acd5f63..3c56de5 100644
--- a/src/output.h
+++ b/src/output.h
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/ramps.c b/src/ramps.c
index 32c7994..b7ad978 100644
--- a/src/ramps.c
+++ b/src/ramps.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/ramps.h b/src/ramps.h
index 799ad0a..8261a61 100644
--- a/src/ramps.h
+++ b/src/ramps.h
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/server.c b/src/server.c
index 843ad81..c79f325 100644
--- a/src/server.c
+++ b/src/server.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/server.h b/src/server.h
index fa5552d..1edcf0e 100644
--- a/src/server.h
+++ b/src/server.h
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/util.c b/src/util.c
index 5cbe44b..41edd74 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify
diff --git a/src/util.h b/src/util.h
index 18066fa..8f621c3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,5 +1,5 @@
/**
- * gammad -- Cooperative gamma server
+ * coopgammad -- Cooperative gamma server
* Copyright (C) 2016 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribute it and/or modify