aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Normand <normand@fr.ibm.com>2010-05-27 12:17:40 +0200
committerDaniel Lezcano <dlezcano@fr.ibm.com>2010-05-27 12:17:40 +0200
commitd0817ec91abb63cafda5e1737771020026b98879 (patch)
treea4be5ee6ea37a34410ef60c532170f69eb1983d4
parentdrop capabilities in lxc-init (V2) (diff)
downloadlxc-d0817ec91abb63cafda5e1737771020026b98879.tar.gz
lxc-d0817ec91abb63cafda5e1737771020026b98879.tar.bz2
lxc-d0817ec91abb63cafda5e1737771020026b98879.zip
remove obsolete lxc_utils.h
This file is a duplicate of utils.h Signed-off-by: Michel Normand <normand@fr.ibm.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--src/lxc/lxc_utils.h51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/lxc/lxc_utils.h b/src/lxc/lxc_utils.h
deleted file mode 100644
index 5fc3946..0000000
--- a/src/lxc/lxc_utils.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * lxc: linux Container library
- *
- * (C) Copyright IBM Corp. 2007, 2008
- *
- * Authors:
- * Daniel Lezcano <dlezcano at fr.ibm.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-#ifndef _utils_h
-#define _utils_h
-
-#define LXC_TTY_HANDLER(s) \
- static struct sigaction lxc_tty_sa_##s; \
- static void tty_##s##_handler(int sig, siginfo_t *info, void *ctx) \
- { \
- if (lxc_tty_sa_##s.sa_handler == SIG_DFL || \
- lxc_tty_sa_##s.sa_handler == SIG_IGN) \
- return; \
- (*lxc_tty_sa_##s.sa_sigaction)(sig, info, ctx); \
- }
-
-#define LXC_TTY_ADD_HANDLER(s) \
- do { \
- struct sigaction sa; \
- sa.sa_sigaction = tty_##s##_handler; \
- sa.sa_flags = SA_SIGINFO; \
- sigfillset(&sa.sa_mask); \
- /* No error expected with sigaction. */ \
- sigaction(s, &sa, &lxc_tty_sa_##s); \
- } while (0)
-
-#define LXC_TTY_DEL_HANDLER(s) \
- do { \
- sigaction(s, &lxc_tty_sa_##s, NULL); \
- } while (0)
-
-#endif