Commit Graph

123 Commits

Author SHA1 Message Date
Rémi Duraffort c40c90cf6f tsearch functions: check for the presence of search.h and replace tdestroy.
If search.h is present but not tdestroy: implement it based on others t* functions
If search.h and tdestroy are not present: implement every t* functions.
2010-12-07 14:37:16 +01:00
Rémi Duraffort 8b02394e5e t* remove the dependence to cdefs.h 2010-12-06 19:12:28 +01:00
Rémi Duraffort 1d69914ece tdestroy: fix compilation for system that does have search.h but not tdestroy. 2010-12-06 17:51:54 +01:00
Rémi Duraffort c489a903fa Implement tsearch functions for systems that does not know about it. 2010-12-06 17:45:29 +01:00
Rémi Denis-Courmont 61bbf16ff4 Fix typo 2010-08-29 05:57:47 +03:00
Rémi Denis-Courmont f7d33ffa57 Make sure libcompat is never empty 2010-08-01 13:00:56 +03:00
Rémi Denis-Courmont ef4f0e4d7a Replacement for getdelim and getline - fixes #3503 2010-04-08 18:50:02 +03:00
Rémi Denis-Courmont d663d29a58 Also provide erand48 and jrand48, they come almost for free 2010-03-06 11:31:34 +02:00
Rémi Denis-Courmont df9356f54b nrand48: small fixes 2010-03-06 09:50:53 +02:00
Rémi Denis-Courmont 6268a229b1 nrand48 replacement
This is the POSIX linear congruential pseudo-random generator with
48-bits of state. It is non-secure/reproducible and thread-safe.
rand() is not thread-safe and *ahem* must not be used in VLC code.
rand_r() is thread-safe but obsoleted in POSIX.2008.

For secure random numbers, use the slower vlc_rand_bytes().
vlc_rand_bytes() can also be used to generate the seed if you are short
on idea for a 48-bits pseudo-random value.
2010-03-06 00:03:27 +02:00
Rémi Denis-Courmont 812f6667c9 Revert "compat: implement tdestroy (GNU extension not available on OpenBSD)."
This reverts commit 714d615571.

Conflicts:

	compat/tdestroy.c
	include/vlc_fixups.h
2010-01-06 14:23:10 +02:00
Rémi Duraffort 4f2f56a58c Source files must not be executable. 2009-11-24 22:17:37 +01:00
Rémi Denis-Courmont b1efb935f0 Latin-1 -> UTF-8 2009-11-24 23:06:43 +02:00
Rémi Duraffort 136ebd846f tdestroy: fix encoding. 2009-11-24 22:05:11 +01:00
Rémi Duraffort 714d615571 compat: implement tdestroy (GNU extension not available on OpenBSD). 2009-11-24 21:58:57 +01:00
Clement Chesnin aa6665a322 Add strtok_r() replacement
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2009-11-21 12:44:37 +02:00
Pierre Ynard f22b0d94f8 WinCE: add replacement getpid() function
And remove #ifdefs from code
2009-08-27 11:14:10 +02:00
Pierre Ynard be531987f6 WinCE: add replacement getcwd() function
As WinCE doesn't support working directories, this function is
basically empty, and merely returns an error.
2009-05-21 00:11:37 +02:00
Laurent Aimar e8689aeac0 Implemented replacement for swab. 2009-04-12 15:33:19 +02:00
Rémi Denis-Courmont 4385b3b040 Fix strcasestr replacement 2009-04-11 20:59:13 +03:00
Rémi Denis-Courmont 8186391531 Move remaining replacement to static import library 2009-04-10 22:17:13 +03:00
Rémi Denis-Courmont 003bdf4a18 Mention which standard replacements follow 2009-04-10 22:12:30 +03:00
Rémi Denis-Courmont e1a78b744b Start moving replacement functions to a static import library 2009-04-10 20:14:10 +03:00