udevadm-info.c revision 2fdaa983a958822d79821c1afe51e22e7a3e00ff
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stddef.h>
#include <ctype.h>
#include <stdarg.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <getopt.h>
#include <fcntl.h>
#include "udev.h"
static const char const *skip[] = {
const char *name;
const char *value;
len--;
if (len > 0) {
const char *str;
const char *str;
if (export) {
if (depth <= 0)
bool root = 0;
bool export = 0;
int rc = 0;
enum action_type {
enum query_type {
int option;
switch (option) {
goto exit;
goto exit;
char type;
goto exit;
goto exit;
goto exit;
goto exit;
goto exit;
root = true;
goto exit;
goto exit;
goto exit;
export = true;
goto exit;
goto exit;
goto exit;
switch (action) {
case ACTION_QUERY:
goto exit;
switch(query) {
case QUERY_NAME: {
goto exit;
if (root) {
case QUERY_SYMLINK:
if (root) {
case QUERY_PATH:
goto exit;
case QUERY_PROPERTY:
if (export) {
case QUERY_ALL:
case ACTION_ATTRIBUTE_WALK:
goto exit;
case ACTION_DEVICE_ID_FILE:
case ACTION_ROOT:
exit:
return rc;