xserver/hw/xfree86/os-support
Enrico Weigelt, metux IT consult d8e6511b1b xfree86: use calloc() instead of malloc()
Using calloc() instead of malloc() as preventive measure, so there
never can be any hidden bugs or leaks due uninitialized memory.

The extra cost of using this compiler intrinsic should be practically
impossible to measure - in many cases a good compiler can even deduce
if certain areas really don't need to be zero'd (because they're written
to right after allocation) and create more efficient machine code.

The code pathes in question are pretty cold anyways, so it's probably
not worth even thinking about potential extra runtime costs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 16:49:57 +02:00
..
bsd xfree86: os-support: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00:00
bus xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
hurd xfree86: os-support: move xf86OSInitVidMem() to xf86_os_support.h 2024-04-18 00:40:39 +00:00
linux No longer leak FDs on VT switch. 2025-02-08 17:38:20 +02:00
misc xfree86: drop unused xf86SetReallySlowBcopy() 2024-04-17 01:54:28 +00:00
shared xfree86: xf86Option: unexport xf86MarkOptionUsedByName() 2025-06-12 16:23:28 +02:00
solaris xfree86: os-support: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00:00
stub xfree86: os-support: move xf86OSInitVidMem() to xf86_os_support.h 2024-04-18 00:40:39 +00:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
meson.build xfree86: os-support: fix FTBS when no recent enough libdrm found 2025-02-28 16:15:32 +00:00
xf86_OSlib.h xfree86: os-support: unexport DEV_MEM defines 2025-02-06 16:22:42 +00:00
xf86_OSproc.h xfree86: os-support: move xf86FatalError macro out of public header 2024-04-18 00:40:39 +00:00
xf86_os_support.h include: move out private definitions from hotplug.h 2025-02-06 16:24:00 +01:00