Changeset 34120f10 in mainline for uspace/lib/c/generic
- Timestamp:
- 2023-10-27T19:38:31Z (2 years ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63ed840
- Parents:
- c89ae25 (diff), 694ca3d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c/generic
- Files:
-
- 2 deleted
- 6 edited
-
adt/odict.c (deleted)
-
io/asprintf.c (modified) (1 diff)
-
io/kio.c (modified) (1 diff)
-
io/printf.c (modified) (1 diff)
-
io/vprintf.c (modified) (1 diff)
-
io/vsnprintf.c (modified) (1 diff)
-
malloc.c (modified) (3 diffs)
-
str_error.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/asprintf.c
rc89ae25 r34120f10 39 39 #include <stddef.h> 40 40 #include <str.h> 41 #include < io/printf_core.h>41 #include <printf_core.h> 42 42 43 43 static int asprintf_str_write(const char *str, size_t count, void *unused) -
uspace/lib/c/generic/io/kio.c
rc89ae25 r34120f10 42 42 #include <abi/kio.h> 43 43 #include <io/kio.h> 44 #include < io/printf_core.h>44 #include <printf_core.h> 45 45 #include <macros.h> 46 46 #include <libarch/config.h> -
uspace/lib/c/generic/io/printf.c
rc89ae25 r34120f10 33 33 */ 34 34 35 #include < io/printf_core.h>35 #include <printf_core.h> 36 36 #include <stdio.h> 37 37 -
uspace/lib/c/generic/io/vprintf.c
rc89ae25 r34120f10 35 35 #include <stdarg.h> 36 36 #include <stdio.h> 37 #include < io/printf_core.h>37 #include <printf_core.h> 38 38 #include <fibril_synch.h> 39 39 #include <async.h> -
uspace/lib/c/generic/io/vsnprintf.c
rc89ae25 r34120f10 36 36 #include <stdio.h> 37 37 #include <str.h> 38 #include < io/printf_core.h>38 #include <printf_core.h> 39 39 #include <errno.h> 40 40 -
uspace/lib/c/generic/malloc.c
rc89ae25 r34120f10 34 34 */ 35 35 36 #include < malloc.h>36 #include <stdlib.h> 37 37 #include <stdalign.h> 38 38 #include <stdbool.h> … … 47 47 #include <stdlib.h> 48 48 #include <adt/gcdlcm.h> 49 #include <malloc.h> 49 50 50 51 #include "private/malloc.h" … … 773 774 } 774 775 775 /** Allocate memory by number of elements776 *777 * @param nmemb Number of members to allocate.778 * @param size Size of one member in bytes.779 *780 * @return Allocated memory or NULL.781 *782 */783 void *calloc(const size_t nmemb, const size_t size)784 {785 // FIXME: Check for overflow786 787 void *block = malloc(nmemb * size);788 if (block == NULL)789 return NULL;790 791 memset(block, 0, nmemb * size);792 return block;793 }794 795 776 /** Allocate memory 796 777 *
Note:
See TracChangeset
for help on using the changeset viewer.
