| logging.h | | logging.h | |
| /* | | /* | |
|
| * logging.h | | * simple logging functions that can be expanded into nothing | |
| * | | | |
| * Simple logging functions that can be compiled away into nothing. | | | |
| * | | * | |
|
| * Copyright (C) 2003,2004 Greg Kroah-Hartman <greg@kroah.com> | | * Copyright (C) 2003-2004 Greg Kroah-Hartman <greg@kroah.com> | |
| * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org> | | * Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org> | |
| * | | * | |
| * This program is free software; you can redistribute it and/or modify
it | | * This program is free software; you can redistribute it and/or modify
it | |
| * under the terms of the GNU General Public License as published by th
e | | * under the terms of the GNU General Public License as published by th
e | |
| * Free Software Foundation version 2 of the License. | | * Free Software Foundation version 2 of the License. | |
| * | | * | |
| * This program is distributed in the hope that it will be useful, but | | * This program is distributed in the hope that it will be useful, but | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * General Public License for more details. | | * General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
|
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #ifndef LOGGING_H | | #ifndef LOGGING_H | |
| #define LOGGING_H | | #define LOGGING_H | |
| | | | |
| #define err(format, arg...) do { } while (0) | | #define err(format, arg...) do { } while (0) | |
| #define info(format, arg...) do { } while (0) | | #define info(format, arg...) do { } while (0) | |
| #define dbg(format, arg...) do { } while (0) | | #define dbg(format, arg...) do { } while (0) | |
| #define logging_init(foo) do { } while (0) | | #define logging_init(foo) do { } while (0) | |
| | | | |
End of changes. 3 change blocks. |
| 6 lines changed or deleted | | 4 lines changed or added | |
|
| udev.h | | udev.h | |
| /* | | /* | |
|
| * udev.h | | | |
| * | | | |
| * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com> | | * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com> | |
|
| * Copyright (C) 2003-2005 Kay Sievers <kay.sievers@vrfy.org> | | * Copyright (C) 2003-2006 Kay Sievers <kay.sievers@vrfy.org> | |
| * | | * | |
| * This program is free software; you can redistribute it and/or modify
it | | * This program is free software; you can redistribute it and/or modify
it | |
| * under the terms of the GNU General Public License as published by th
e | | * under the terms of the GNU General Public License as published by th
e | |
| * Free Software Foundation version 2 of the License. | | * Free Software Foundation version 2 of the License. | |
| * | | * | |
| * This program is distributed in the hope that it will be useful, but | | * This program is distributed in the hope that it will be useful, but | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * General Public License for more details. | | * General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
|
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #ifndef _UDEV_H_ | | #ifndef _UDEV_H_ | |
| #define _UDEV_H_ | | #define _UDEV_H_ | |
| | | | |
| #include <sys/types.h> | | #include <sys/types.h> | |
| #include <sys/param.h> | | #include <sys/param.h> | |
| | | | |
| #include "list.h" | | #include "list.h" | |
| | | | |
| skipping to change at line 146 | | skipping to change at line 144 | |
| }; | | }; | |
| extern int log_priority(const char *priority); | | extern int log_priority(const char *priority); | |
| extern char *name_list_add(struct list_head *name_list, const char *name, i
nt sort); | | extern char *name_list_add(struct list_head *name_list, const char *name, i
nt sort); | |
| extern char *name_list_key_add(struct list_head *name_list, const char *key
, const char *value); | | extern char *name_list_key_add(struct list_head *name_list, const char *key
, const char *value); | |
| extern void name_list_cleanup(struct list_head *name_list); | | extern void name_list_cleanup(struct list_head *name_list); | |
| extern int add_matching_files(struct list_head *name_list, const char *dirn
ame, const char *suffix); | | extern int add_matching_files(struct list_head *name_list, const char *dirn
ame, const char *suffix); | |
| extern uid_t lookup_user(const char *user); | | extern uid_t lookup_user(const char *user); | |
| extern gid_t lookup_group(const char *group); | | extern gid_t lookup_group(const char *group); | |
| | | | |
| /* udev_utils_string.c */ | | /* udev_utils_string.c */ | |
|
| extern int strcmp_pattern(const char *p, const char *s); | | | |
| extern int string_is_true(const char *str); | | extern int string_is_true(const char *str); | |
| extern void remove_trailing_chars(char *path, char c); | | extern void remove_trailing_chars(char *path, char c); | |
| extern int utf8_encoded_valid_unichar(const char *str); | | extern int utf8_encoded_valid_unichar(const char *str); | |
| extern int replace_untrusted_chars(char *str); | | extern int replace_untrusted_chars(char *str); | |
| | | | |
| /* udev_utils_file.c */ | | /* udev_utils_file.c */ | |
| extern int create_path(const char *path); | | extern int create_path(const char *path); | |
| extern int delete_path(const char *path); | | extern int delete_path(const char *path); | |
| extern int file_map(const char *filename, char **buf, size_t *bufsize); | | extern int file_map(const char *filename, char **buf, size_t *bufsize); | |
| extern void file_unmap(void *buf, size_t bufsize); | | extern void file_unmap(void *buf, size_t bufsize); | |
| | | | |
End of changes. 4 change blocks. |
| 5 lines changed or deleted | | 2 lines changed or added | |
|
| udev_rules.h | | udev_rules.h | |
| /* | | /* | |
|
| * udev_rules.h | | | |
| * | | | |
| * Copyright (C) 2003-2004 Greg Kroah-Hartman <greg@kroah.com> | | * Copyright (C) 2003-2004 Greg Kroah-Hartman <greg@kroah.com> | |
|
| * Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org> | | * Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org> | |
| * | | * | |
| * This program is free software; you can redistribute it and/or modify
it | | * This program is free software; you can redistribute it and/or modify
it | |
| * under the terms of the GNU General Public License as published by th
e | | * under the terms of the GNU General Public License as published by th
e | |
| * Free Software Foundation version 2 of the License. | | * Free Software Foundation version 2 of the License. | |
| * | | * | |
| * This program is distributed in the hope that it will be useful, but | | * This program is distributed in the hope that it will be useful, but | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * General Public License for more details. | | * General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
|
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #ifndef UDEV_RULES_H | | #ifndef UDEV_RULES_H | |
| #define UDEV_RULES_H | | #define UDEV_RULES_H | |
| | | | |
| #include "udev.h" | | #include "udev.h" | |
| #include "list.h" | | #include "list.h" | |
| | | | |
| #define PAIRS_MAX 5 | | #define PAIRS_MAX 5 | |
| | | | |
End of changes. 3 change blocks. |
| 4 lines changed or deleted | | 2 lines changed or added | |
|
| udev_selinux.h | | udev_selinux.h | |
| /* | | /* | |
|
| * udev_selinux.h | | | |
| * | | | |
| * Copyright (C) 2004 Daniel Walsh | | * Copyright (C) 2004 Daniel Walsh | |
| * | | * | |
| * This program is free software; you can redistribute it and/or modify
it | | * This program is free software; you can redistribute it and/or modify
it | |
| * under the terms of the GNU General Public License as published by th
e | | * under the terms of the GNU General Public License as published by th
e | |
| * Free Software Foundation version 2 of the License. | | * Free Software Foundation version 2 of the License. | |
| * | | * | |
| * This program is distributed in the hope that it will be useful, but | | * This program is distributed in the hope that it will be useful, but | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * General Public License for more details. | | * General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
|
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | | * | |
| */ | | */ | |
| #ifndef _UDEV_SELINUX_H | | #ifndef _UDEV_SELINUX_H | |
| #define _UDEV_SELINUX_H | | #define _UDEV_SELINUX_H | |
| | | | |
| #ifdef USE_SELINUX | | #ifdef USE_SELINUX | |
| | | | |
| extern void selinux_setfilecon(const char *file, const char *devname, unsig
ned int mode); | | extern void selinux_setfilecon(const char *file, const char *devname, unsig
ned int mode); | |
| extern void selinux_setfscreatecon(const char *file, const char *devname, u
nsigned int mode); | | extern void selinux_setfscreatecon(const char *file, const char *devname, u
nsigned int mode); | |
| extern void selinux_resetfscreatecon(void); | | extern void selinux_resetfscreatecon(void); | |
| | | | |
End of changes. 2 change blocks. |
| 3 lines changed or deleted | | 1 lines changed or added | |
|
| udev_sysdeps.h | | udev_sysdeps.h | |
| /* | | /* | |
|
| * udev_sysdeps.h - wrapping of libc features and kernel defines | | * wrapping of libc features and kernel interfaces | |
| * | | * | |
| * Copyright (C) 2005-2006 Kay Sievers <kay.sievers@vrfy.org> | | * Copyright (C) 2005-2006 Kay Sievers <kay.sievers@vrfy.org> | |
| * | | * | |
| * This program is free software; you can redistribute it and/or modify
it | | * This program is free software; you can redistribute it and/or modify
it | |
| * under the terms of the GNU General Public License as published by th
e | | * under the terms of the GNU General Public License as published by th
e | |
| * Free Software Foundation version 2 of the License. | | * Free Software Foundation version 2 of the License. | |
| * | | * | |
| * This program is distributed in the hope that it will be useful, but | | * This program is distributed in the hope that it will be useful, but | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * General Public License for more details. | | * General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
|
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #ifndef _UDEV_SYSDEPS_H_ | | #ifndef _UDEV_SYSDEPS_H_ | |
| #define _UDEV_SYSDEPS_H_ | | #define _UDEV_SYSDEPS_H_ | |
| | | | |
| #include <string.h> | | #include <string.h> | |
| #include <unistd.h> | | #include <unistd.h> | |
| #include <stdint.h> | | #include <stdint.h> | |
| | | | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|
| udevd.h | | udevd.h | |
| /* | | /* | |
|
| * udevd.h | | | |
| * | | | |
| * Copyright (C) 2004 Ling, Xiaofeng <xiaofeng.ling@intel.com> | | * Copyright (C) 2004 Ling, Xiaofeng <xiaofeng.ling@intel.com> | |
|
| * Copyright (C) 2004-2005 Kay Sievers <kay.sievers@vrfy.org> | | * Copyright (C) 2004-2006 Kay Sievers <kay.sievers@vrfy.org> | |
| * | | * | |
| * This program is free software; you can redistribute it and/or modify
it | | * This program is free software; you can redistribute it and/or modify
it | |
| * under the terms of the GNU General Public License as published by th
e | | * under the terms of the GNU General Public License as published by th
e | |
| * Free Software Foundation version 2 of the License. | | * Free Software Foundation version 2 of the License. | |
| * | | * | |
| * This program is distributed in the hope that it will be useful, but | | * This program is distributed in the hope that it will be useful, but | |
| * WITHOUT ANY WARRANTY; without even the implied warranty of | | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * General Public License for more details. | | * General Public License for more details. | |
| * | | * | |
| * You should have received a copy of the GNU General Public License al
ong | | * You should have received a copy of the GNU General Public License al
ong | |
| * with this program; if not, write to the Free Software Foundation, In
c., | | * with this program; if not, write to the Free Software Foundation, In
c., | |
|
| * 675 Mass Ave, Cambridge, MA 02139, USA. | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #include "list.h" | | #include "list.h" | |
| | | | |
| #define UDEVD_PRIORITY -4 | | #define UDEVD_PRIORITY -4 | |
| #define UDEV_PRIORITY -2 | | #define UDEV_PRIORITY -2 | |
| | | | |
| #define EVENT_QUEUE_DIR ".udev/queue" | | #define EVENT_QUEUE_DIR ".udev/queue" | |
| #define EVENT_FAILED_DIR ".udev/failed" | | #define EVENT_FAILED_DIR ".udev/failed" | |
| | | | |
End of changes. 3 change blocks. |
| 4 lines changed or deleted | | 2 lines changed or added | |
|