diff options
author | 2016-09-23 09:21:58 +0000 | |
---|---|---|
committer | 2016-09-23 09:21:58 +0000 | |
commit | 25e4f8ab5acd0ef40feec6767a572bebbbe294b3 (patch) | |
tree | 20197c0e46bb6d260f4a310b6d5dd73b8d826f01 /lib/libsqlite3/tsrc | |
parent | remove usr.bin/sqlite3, it has moved back to ports (diff) | |
download | wireguard-openbsd-25e4f8ab5acd0ef40feec6767a572bebbbe294b3.tar.xz wireguard-openbsd-25e4f8ab5acd0ef40feec6767a572bebbbe294b3.zip |
remove lib/libsqlite3, it has moved back to ports
Diffstat (limited to 'lib/libsqlite3/tsrc')
-rw-r--r-- | lib/libsqlite3/tsrc/header_regen | 59 | ||||
-rw-r--r-- | lib/libsqlite3/tsrc/pthread_stub.c | 30 |
2 files changed, 0 insertions, 89 deletions
diff --git a/lib/libsqlite3/tsrc/header_regen b/lib/libsqlite3/tsrc/header_regen deleted file mode 100644 index 5796af07898..00000000000 --- a/lib/libsqlite3/tsrc/header_regen +++ /dev/null @@ -1,59 +0,0 @@ -#! /usr/bin/perl -# Written by Marc Espie 2012, Public Domain -use strict; -use warnings; - -@ARGV == 5 or - die "Usage: $0 version src dest\n"; - -my ($vfname, $src, $dest, $pcin, $pcdest) = @ARGV; -open(my $fh, '<', $vfname) - or die "Can't read $vfname: $!\n"; -my $version = <$fh>; -chomp $version; -my @l = split(/\./, $version); -my $v2 = sprintf("%d%03d%03d", @l); - -open(my $in, '<', $src) - or die "Can't read $src: $!\n"; -open(my $out, '>', $dest) - or die "Can't write to $dest: $!\n"; - -select($out); - -while (<$in>) { - s/\-\-VERS\-\-/$version/; - s/\-\-VERSION\-NUMBER\-\-/$v2/; - s/\-\-SOURCE\-ID\-\-/OpenBSD/; - - if (m/^\#ifdef\s+SQLITE_INT64_TYPE/) { - while(<$in>) { - last if m/^\#endif/; - } - print "typedef int64_t sqlite_int64;\n"; - print "typedef uint64_t sqlite_uint64;\n"; - } else { - print $_; - } - if (m/^\#\s*include\s*\<stdarg\.h\>/) { - print "#include <stdint.h>\n"; - } -} - -my $h = { prefix => '/usr', - exec_prefix => '${prefix}', - libdir => '${exec_prefix}/lib', - includedir => '${prefix}/include', - PACKAGE_VERSION => $version, - LIBS => '' }; - -open(my $in2, '<', $pcin) - or die "Can't read $pcin: $!\n"; - -open(my $out2, '>', $pcdest) - or die "Can't write to $pcdest: $!\n"; -select($out2); -while(<$in2>) { - while (s/\@(.*?)\@/$h->{$1}/g) {} - print; -} diff --git a/lib/libsqlite3/tsrc/pthread_stub.c b/lib/libsqlite3/tsrc/pthread_stub.c deleted file mode 100644 index 2850374b60b..00000000000 --- a/lib/libsqlite3/tsrc/pthread_stub.c +++ /dev/null @@ -1,30 +0,0 @@ -/* stubs for pthreads function, quick and dirty */ -#if SQLITE_THREADSAFE && !defined(SQLITE_TEST) - -#include <pthread.h> - -#define WEAKALIAS(f,g ) extern f __attribute__((__weak__, __alias__(#g))) - -static pthread_t _sqlite_self_stub() -{ - return 0; -} - -static int _sqlite_zero_stub() -{ - return 0; -} - -WEAKALIAS(pthread_t pthread_self(void), _sqlite_self_stub); -WEAKALIAS(int pthread_join(pthread_t, void **), _sqlite_zero_stub); -WEAKALIAS(int pthread_create(pthread_t *, const pthread_attr_t *, void *(*) (void *), void *), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_init(pthread_mutex_t *a, const pthread_mutexattr_t *b), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_destroy(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_lock(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_trylock(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_unlock(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutexattr_init(pthread_mutexattr_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutexattr_settype(pthread_mutexattr_t *a, int b), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutexattr_destroy(pthread_mutexattr_t *a), _sqlite_zero_stub); - -#endif |