History log of /pciutils/lib/sysdep.h (Results 1 – 16 of 16)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v3.14.0, v3.13.0, v3.12.0, v3.11.1, v3.11.0, v3.10.0, v3.9.0, v3.8.0, v3.7.0, v3.6.4, v3.6.3, v3.6.2, v3.6.1
# 987b8567 01-Jul-2018 Zoltán Mizsei <[email protected]>

Build fix on Haiku.


# 225dd4ba 24-May-2023 Pali Rohár <[email protected]>

windows: Add strtoull defines for msvc


# 5b52ae79 22-Jan-2024 Agg242 <[email protected]>

New back-end for AmigaOS on PowerPC


# 61829219 18-Jun-2023 Martin Mares <[email protected]>

Update license comments and added SPDX license identifiers

Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL

Update license comments and added SPDX license identifiers

Previously, the only information about the specific version of GPL
was present in the README and individual source files mentioned only
GPL alone.

Let us update all copyright comments to explicitly say "GPL v2+"
and also include the machine readable SPDX license identifier.

show more ...


# 77702981 26-Dec-2021 Pali Rohár <[email protected]>

libpci: For PCI_OS_WINDOWS define strncasecmp as alias for _strnicmp

CRTDLL, MSVCRT and UCRT runtimes provides strncasecmp()-like functionality
in _strnicmp() function. As opposite of strcasecmp() f

libpci: For PCI_OS_WINDOWS define strncasecmp as alias for _strnicmp

CRTDLL, MSVCRT and UCRT runtimes provides strncasecmp()-like functionality
in _strnicmp() function. As opposite of strcasecmp() for which there are
_stricmp() and _strcmpi() variants, for strncasecmp() there is only
_strnicmp() function.

Without this change linking final setpci.exe executable undef MSVC fails.

show more ...


# 4e6fd387 26-Dec-2021 Pali Rohár <[email protected]>

libpci: For MSVC < 19.00 define snprintf outside of endian section

snprintf() macro is not endian specific and therefore should be declared
outside of the endian section.

This also fixes snprintf()

libpci: For MSVC < 19.00 define snprintf outside of endian section

snprintf() macro is not endian specific and therefore should be declared
outside of the endian section.

This also fixes snprintf() function for new MinGW-w64 toolchains where
snprintf() is defined as wrapper around _snprintf() which do not return
negative value on overflow. libpci would call MinGW-w64 patched snprintf()
function and not broken system function _snprintf().

show more ...


# 50088835 26-Dec-2021 Pali Rohár <[email protected]>

libpci: For MSVC < 19.00 define vsnprintf as alias for _vsnprintf

MSVC prior version 19.00 do not have vsnprintf() function, only
_vsnprintf().


# 959db7be 26-Dec-2021 Pali Rohár <[email protected]>

lib: Fix definition of strcasecmp() for PCI_OS_WINDOWS

UCRT, MSVCRT and CRTDLL runtime libraries provides only _strcmpi()
function and not strcmpi().

MinGW32 has static libraries libcoldname.a and

lib: Fix definition of strcasecmp() for PCI_OS_WINDOWS

UCRT, MSVCRT and CRTDLL runtime libraries provides only _strcmpi()
function and not strcmpi().

MinGW32 has static libraries libcoldname.a and libmoldname.a which provides
strcmpi() function (as link-time redirect to _strcmpi()). libcoldname.a is
automatically linked when compiling for CRTDLL runtime and libmoldname.a
for MSVCRT runtime.

MinGW-w64 has only libmoldname.a library with strcmpi() function and it is
linked to final executable only when compiling for MSVCRT runtime.
when linking with MSVCRT.

To prevent dependency on particular linking configuration and MinGW
toolchain, use set strcasecmp() as alias to _strcmpi() function which is
provided by any runtime library.

show more ...


# 76d47191 22-Jan-2020 Martin Mares <[email protected]>

Fixed buffer overflows in ls-tree.c

As reported in GitHub issue #24, tree dumping mode can smash the stack
if the hierarchy of buses is too deep.

Increased line buffer size to 1024 and switched to

Fixed buffer overflows in ls-tree.c

As reported in GitHub issue #24, tree dumping mode can smash the stack
if the hierarchy of buses is too deep.

Increased line buffer size to 1024 and switched to use of snprintf
everywhere, so that in the worst case, the line is truncated.

As snprintf can be problematic on obscure platforms, I wrapped it
in tree_printf(), so that we can add #ifdefs should problems arise.

show more ...


Revision tags: v3.6.0
# 83fd885b 18-Mar-2018 Martin Mares <[email protected]>

Sylixos port

Contributed by YuJian Gong.


# 5c5ce192 29-Dec-2017 Rudolf Marek <[email protected]>

pciutils: Add the support for a DOS/DJGPP environment

Here is bit a blast from the past. The flashrom still supports the DOS/DJGPP environment, which requires
pciutils to be compiled with DJGPP. I o

pciutils: Add the support for a DOS/DJGPP environment

Here is bit a blast from the past. The flashrom still supports the DOS/DJGPP environment, which requires
pciutils to be compiled with DJGPP. I originally developed this patch in 2010,
and I respun it for latest pciutils.

* Add DJGPP as an OS target
* Stop if endianess macros are not defined
* Introduce new intel_io_lock/unclock function to synchronize
I/O operations.

There is a small issue left that "lspci" and "lspci.exe" are created. The ".exe" variants
are not installed and also not cleaned. No idea if you want to fix that or not.

Signed-off-by: Rudolf Marek <[email protected]>

Compiled with:

make ZLIB=no DNS=no HOST=i386-djgpp-djgpp CROSS_COMPILE=i586-pc-msdosdjgpp- \
PREFIX=/ DESTDIR=$PWD/../libpci-libgetopt \
STRIP="--strip-program=i586-pc-msdosdjgpp-strip -s" install install-lib

If you put to C:\share\pci.ids file, the lspci.exe will also display the human readable output.

show more ...


Revision tags: v3.5.6, v3.5.5, v3.5.4, v3.5.3, v3.5.2, v3.5.1, v3.5.0, v3.4.1, v3.4.0, v3.3.1, v3.3.0
# 033a6ecb 01-Nov-2014 Martin Mares <[email protected]>

Fix endianity detection on Solaris

Patch by Philip Brown.


Revision tags: v3.2.1, v3.2.0, v3.1.10, v3.1.9, v3.1.8, v3.1.7, v3.1.6, v3.1.5, v3.1.4, v3.1.3, v3.1.2, v3.1.1, v3.1.0, v3.1-alpha3, v3.1-alpha2, v3.1-alpha1, v3.0.3, v3.0.2, v3.0.1, v3.0.0
# 1ac3a99d 06-Feb-2007 Martin Mares <[email protected]>

Get rid of bzero().


# f31412d1 13-Aug-2004 Martin Mares <[email protected]>

Unexport byte, word.

git-archimport-id: [email protected]/pciutils--main--2.2--patch-63


# ee7d8384 13-Aug-2004 Martin Mares <[email protected]>

Added more parts of the Windows port.

git-archimport-id: [email protected]/pciutils--main--2.2--patch-61


# 489233b4 13-Aug-2004 Martin Mares <[email protected]>

Include file splits and namespace cleanups.

git-archimport-id: [email protected]/pciutils--main--2.2--patch-60