2 * udev_sysdeps.c - wrapping of libc features and kernel defines
4 * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
5 * Copyright (C) 2005-2006 Kay Sievers <kay.sievers@vrfy.org>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation version 2 of the License.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include <sys/types.h>
33 size_t strlcpy(char *dst, const char *src, size_t size)
46 /* If size == 0 there is no space for a final null... */
53 size_t strlcat(char *dst, const char *src, size_t size)
60 while (bytes < size && *q) {
65 return (bytes + strlen(src));
76 #endif /* __GLIBC__ */