Skip to content

Instantly share code, notes, and snippets.

View friedrich's full-sized avatar

Friedrich Schöller friedrich

View GitHub Profile
@friedrich
friedrich / progress-bar.tex
Last active July 12, 2020 16:16
LaTeX Beamer progress bar template
\defbeamertemplate{footline}{progress bar}{
\dimen0=\paperwidth
\multiply\dimen0 by \insertframenumber
\divide\dimen0 by \inserttotalframenumber
\edef\progressbarwidth{\the\dimen0}
\leavevmode%
\vbox{%
\hbox{%
\begin{beamercolorbox}[wd=0.9\paperwidth,ht=3ex,dp=2ex,leftskip=1.5ex]{section in head/foot}
#include <gtk/gtk.h>
static void copy(GtkClipboard *clipboard)
{
gtk_clipboard_set_text(clipboard, "hello", -1);
gtk_clipboard_store(clipboard);
}
int main(int argc, char *argv[])
{
diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c
index f2826c3..747de3a 100644
--- a/kernel/time/posix-timers.c
+++ b/kernel/time/posix-timers.c
@@ -1015,6 +1015,9 @@ SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock,
struct k_clock *kc = clockid_to_kclock(which_clock);
struct timespec new_tp;
+ printk("syscall clock_settime by process %d STOPPED\n", current->pid);
+ return 0;