test-udev.c revision 3e2147858f21943d5f4a781c60f33ac22c6096ed
/*
* Copyright (C) 2003-2004 Greg Kroah-Hartman <greg@kroah.com>
* Copyright (C) 2004-2008 Kay Sievers <kay.sievers@vrfy.org>
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <syslog.h>
#include <grp.h>
#include <sys/signalfd.h>
#include "udev.h"
{
char syspath[UTIL_PATH_SIZE];
const char *devpath;
const char *action;
exit(1);
goto out;
}
goto out;
}
goto out;
}
sigfillset(&mask);
goto out;
}
/* do what devtmpfs usually provides us */
else
} else {
}
}
if (err == 0)
out:
if (err != 0)
return 1;
return 0;
}