- 13 4月, 2021 2 次提交
-
-
由 Sean Anderson 提交于
This introduces strlcat, which provides a safer interface than strncat. It never copies more than its size bytes, including the terminating nul. In addition, it never reads past dest[size - 1], even if dest is not nul-terminated. This also removes the stub for dwc3 now that we have a proper implementation. Signed-off-by: NSean Anderson <seanga2@gmail.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Sean Anderson 提交于
strlcpy should always return the number of bytes copied. We were accidentally missing the nul-terminator. We also always used to return a non-zero value, even if we did not actually copy anything. Fixes: 23cd1385 ("Integrate USB gadget layer and USB CDC driver layer") Signed-off-by: NSean Anderson <seanga2@gmail.com>
-
- 17 1月, 2021 1 次提交
-
-
由 Patrick Delaunay 提交于
A common use of memmove() can be handled by memcpy(). Also memcpy() includes an optimization for large sizes: it copies a word at a time. So we can get a speed-up by calling memcpy() to handle our move in this case. Update memmove() to call also memcpy() if the source don't overlap the destination (src + count <= dest). Signed-off-by: NPatrick Delaunay <patrick.delaunay@foss.st.com>
-
- 06 2月, 2020 1 次提交
-
-
由 Simon Glass 提交于
At present architectures can override strdup() but not strndup(). Use the same option for both. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 06 6月, 2019 1 次提交
-
-
由 Thierry Reding 提交于
Signed-off-by: NThierry Reding <treding@nvidia.com> Signed-off-by: NTom Warren <twarren@nvidia.com>
-
- 21 11月, 2018 1 次提交
-
-
由 Simon Glass 提交于
At present the config header is not included in this file, but it does use a CONFIG option. Fix it. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 01 6月, 2017 2 次提交
-
-
由 Simon Glass 提交于
Add an implementation of strcspn() which returns the number of initial characters that do not match any in a rejection list. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This functions works like strchr() but returns the end of the string if the character is not found. Add an implementation of this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 10 5月, 2017 1 次提交
-
-
由 Simon Glass 提交于
A common use of memmove() can be handled by memcpy(). Also memcpy() includes an optimisation for large sizes: it copies a word at a time. So we can get a speed-up by calling memcpy() to handle our move in this case. Update memmove() to call memcpy() if the destination is before the source. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NTom Rini <trini@konsulko.com>
-
- 05 4月, 2017 1 次提交
-
-
由 Simon Glass 提交于
Most of the time the optimised memset() is what we want. For extreme situations such as TPL it may be too large. For example on the 'rock' board, using a simple loop saves a useful 48 bytes. With gcc 4.9 and the rodata bug, this patch is enough to reduce the TPL image below the limit. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
-
- 07 6月, 2016 1 次提交
-
-
由 Robert P. J. Day 提交于
Since bcopy() is no longer used, delete all remaining references to it. Signed-off-by: NRobert P. J. Day <rpjday@crashcourse.ca>
-
- 12 12月, 2014 1 次提交
-
-
由 Masahiro Yamada 提交于
Move strlcpy() definition from drivers/usb/gadget/ether.c to lib/string.c because it is a very useful function. Let's add the prototype to include/linux/string.h too. Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 15 10月, 2013 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 01 6月, 2013 1 次提交
-
-
由 Sergey Lapin 提交于
This patch is essentially an update of u-boot MTD subsystem to the state of Linux-3.7.1 with exclusion of some bits: - the update is concentrated on NAND, no onenand or CFI/NOR/SPI flashes interfaces are updated EXCEPT for API changes. - new large NAND chips support is there, though some updates have got in Linux-3.8.-rc1, (which will follow on top of this patch). To produce this update I used tag v3.7.1 of linux-stable repository. The update was made using application of relevant patches, with changes relevant to U-Boot-only stuff sticked together to keep bisectability. Then all changes were grouped together to this patch. Signed-off-by: NSergey Lapin <slapin@ossfans.org> [scottwood@freescale.com: some eccstrength and build fixes] Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 14 12月, 2012 1 次提交
-
-
由 Joe Hershberger 提交于
isspace() and strim() are not in the typical user-mode string.h, so put them in a separate compilation unit so that they can be built into tools that need them independent of the other common string functions. This allows code shared by u-boot and the linux user-mode tools to link. Signed-off-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 12 12月, 2012 1 次提交
-
-
由 Simon Glass 提交于
strncasecmp() is present as strnicmp() but disabled. Make it available and define strcasecmp() also. There is a only a small performance penalty to having strcasecmp() call strncasecmp(), so do this instead of a standalone function, to save code space. Update the prototype in arch-specific headers as needed to avoid warnings. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 27 1月, 2012 1 次提交
-
-
由 Christian Hitz 提交于
[backport from linux commit 02f8c6aee8df3cdc935e9bdd4f2d020306035dbe] This is part of the synchronization with the nand driver to the Linux 3.0 state. Signed-off-by: NChristian Hitz <christian.hitz@aizo.com> Cc: Scott Wood <scottwood@freescale.com> Signed-off-by: NScott Wood <scottwood@freescale.com>
-
- 26 7月, 2011 1 次提交
-
-
由 Matthias Weisser 提交于
In some cases (e.g. bootm with a elf payload which is already at the right position) there is a in place copy of data to the same address. Catching this saves some ms while booting. Signed-off-by: NMatthias Weisser <weisserm@arcor.de>
-
- 13 4月, 2010 1 次提交
-
-
由 Peter Tyser 提交于
Now that the other architecture-specific lib directories have been moved out of the top-level directory there's not much reason to have the '_generic' suffix on the common lib directory. Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
- 19 10月, 2009 2 次提交
-
-
由 Alessandro Rubini 提交于
If the destination is aligned, fill ulong values until possible. Then fill remaining part by byte. Signed-off-by: NAlessandro Rubini <rubini@unipv.it> Acked-by: NAndrea Gallo <andrea.gallo@stericsson.com> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
由 Alessandro Rubini 提交于
If source and destination are aligned, this copies ulong values until possible, trailing part is copied by byte. Thanks for the details to Wolfgang Denk, Mike Frysinger, Peter Tyser, Chris Moore. Signed-off-by: NAlessandro Rubini <rubini@unipv.it> Acked-by: NAndrea Gallo <andrea.gallo@stericsson.com> Acked-by: NMike Frysinger <vapier@gentoo.org>
-
- 21 5月, 2008 1 次提交
-
-
由 Wolfgang Denk 提交于
This commit gets rid of a huge amount of silly white-space issues. Especially, all sequences of SPACEs followed by TAB characters get removed (unless they appear in print statements). Also remove all embedded "vim:" and "vi:" statements which hide indentation problems. Signed-off-by: NWolfgang Denk <wd@denx.de>
-
- 03 5月, 2006 1 次提交
-
-
由 Wolfgang Denk 提交于
-
- 05 10月, 2005 1 次提交
-
-
由 Wolfgang Denk 提交于
Patch by Andrew Dyer, October 10, 2005 Signed-off-by: NAndrew Dyer <amdyer@gmail.com>
-
- 25 9月, 2005 1 次提交
-
-
由 Wolfgang Denk 提交于
Patch by Andrew Dyer, 08 Feb 2005
-
- 14 3月, 2004 1 次提交
-
-
由 wdenk 提交于
Fix problems with GCC 3.3.x which changed handling of global variables explicitly initialized to zero (now in .bss instead of .data as before). * Patch by Leon Kukovec, 02 Mar 2004: add strswab() to fix IDE LBA capacity, firmware and model numbers on little endian machines * Patch by Masami Komiya, 02 Mar 2004: - Remove get_ticks() from NFS code - Add verification of RPC transaction ID * Patch by Pierre Aubert, 02 Mar 2004: cleanup for IDE and USB drivers for MPC5200
-
- 28 6月, 2003 1 次提交
-
-
由 wdenk 提交于
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
-
- 20 11月, 2002 1 次提交
-
-
由 wdenk 提交于
Fixes for x86 port (mostly strings issues) * Patch by Ken Chou, 18 Nov 2002: Fix for natsemi NIC cards (DP83815) * Patch by Pierre Aubert, 19 Nov 2002: fix a bug for the MII configuration, and some warnings
-
- 03 11月, 2002 1 次提交
-
-
由 wdenk 提交于
-