mirror of
https://github.com/troglobit/libite.git
synced 2026-10-14 10:19:31 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b4cd7b20b | ||
|
|
8e379ca358 | ||
|
|
12241dcdfe | ||
|
|
0ce1b3bf44 | ||
|
|
38ff0af61a | ||
|
|
00737a5b74 | ||
|
|
1b8b164ed4 | ||
|
|
9f279c0fec | ||
|
|
4d7e6d4f78 |
No files matched your search
+7
-1
@@ -4,7 +4,13 @@ language: c
|
|||||||
|
|
||||||
# Some of the autotests may use sudo, so use non-dockerized build atm.
|
# Some of the autotests may use sudo, so use non-dockerized build atm.
|
||||||
# http://stackoverflow.com/questions/26299552/travis-sudo-is-disabled
|
# http://stackoverflow.com/questions/26299552/travis-sudo-is-disabled
|
||||||
sudo: true
|
#sudo: true
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
# Test build with both GCC and Clang (LLVM)
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
|
||||||
# - make test
|
# - make test
|
||||||
script:
|
script:
|
||||||
|
|||||||
+16
-1
@@ -3,6 +3,20 @@ Change Log
|
|||||||
|
|
||||||
All notable changes to the project are documented in this file.
|
All notable changes to the project are documented in this file.
|
||||||
|
|
||||||
|
|
||||||
|
[v1.4.4][] - 2016-02-23
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
- Add `ibite.pc.in` for `pkg-config` support.
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Fix issue #3: `tempfile()` fails with bad `O_TMPFILE` on some embedded
|
||||||
|
targets, in particular PowerPC. On systems with older GLIBC but with
|
||||||
|
a sufficiently new kernel `O_TMPFILE` is missing and the local libite
|
||||||
|
definition was wrong, hard coded for x86. Fixed by Johan Askerin.
|
||||||
|
|
||||||
|
|
||||||
[v1.4.3][] - 2016-02-02
|
[v1.4.3][] - 2016-02-02
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
@@ -111,7 +125,8 @@ All notable changes to the project are documented in this file.
|
|||||||
Initial extraction of frog DNA from [Finit][]. See [README][] for API details.
|
Initial extraction of frog DNA from [Finit][]. See [README][] for API details.
|
||||||
|
|
||||||
|
|
||||||
[UNRELEASED]: https://github.com/troglobit/libite/compare/v1.4.3...HEAD
|
[UNRELEASED]: https://github.com/troglobit/libite/compare/v1.4.4...HEAD
|
||||||
|
[v1.4.4]: https://github.com/troglobit/libite/compare/v1.4.3...v1.4.4
|
||||||
[v1.4.3]: https://github.com/troglobit/libite/compare/v1.4.2...v1.4.3
|
[v1.4.3]: https://github.com/troglobit/libite/compare/v1.4.2...v1.4.3
|
||||||
[v1.4.2]: https://github.com/troglobit/libite/compare/v1.4.1...v1.4.2
|
[v1.4.2]: https://github.com/troglobit/libite/compare/v1.4.1...v1.4.2
|
||||||
[v1.4.1]: https://github.com/troglobit/libite/compare/v1.4.0...v1.4.1
|
[v1.4.1]: https://github.com/troglobit/libite/compare/v1.4.0...v1.4.1
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ libite_la_CPPFLAGS = -D_GNU_SOURCE
|
|||||||
libite_la_CFLAGS = -W -Wall -Wextra
|
libite_la_CFLAGS = -W -Wall -Wextra
|
||||||
libite_la_LDFLAGS = $(AM_LDFLAGS) -version-info 2:1:0
|
libite_la_LDFLAGS = $(AM_LDFLAGS) -version-info 2:1:0
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = libite.pc
|
||||||
doc_DATA = README.md LICENSE
|
doc_DATA = README.md LICENSE
|
||||||
EXTRA_DIST = README.md LICENSE ChangeLog.md
|
EXTRA_DIST = README.md LICENSE ChangeLog.md
|
||||||
|
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ developed by both [Finit][1] and the [OpenBSD][2] project. Most notably
|
|||||||
the string functions: [strlcpy(3)][3], [strlcat(3)][3] and the highly
|
the string functions: [strlcpy(3)][3], [strlcat(3)][3] and the highly
|
||||||
useful *BSD [sys/queue.h][4] and [sys/tree.h][7] API's.
|
useful *BSD [sys/queue.h][4] and [sys/tree.h][7] API's.
|
||||||
|
|
||||||
Libite aims to fill in the gaps missing in GLIBC/EGLIBC. (It does not
|
Libite is the frog DNA missing in GNU libc. However, -lite does not aim
|
||||||
aimo to become another [GLIB][5] though.) One such gap in GLIBC is the
|
to become another [GLIB][5]! One noticeable gap in GLIBC is the missing
|
||||||
missing `_SAFE` macros in `sys/queue.h` — highly recommended when
|
`_SAFE` macros in tje BSD `sys/queue.h` API — highly recommended
|
||||||
traversing lists to delete/free nodes.
|
when traversing lists to delete/free nodes.
|
||||||
|
|
||||||
The code is open sourced under a mix of the [MIT/X11 license][MIT], the
|
The code is open sourced under a mix of the [MIT/X11 license][MIT], the
|
||||||
[ISC license][ISC] used by OpenBSD, and [BSD licenses][BSD], all of them
|
[ISC license][ISC] used by OpenBSD, and [BSD licenses][BSD], all of them
|
||||||
@@ -22,6 +22,25 @@ For an introduction to why Libite happened, and how you can use it, see
|
|||||||
[this blog post][6].
|
[this blog post][6].
|
||||||
|
|
||||||
|
|
||||||
|
Using -lite
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Libite is by default installed as a library and a set of include files.
|
||||||
|
To prevent clashing with include files of the same name -lite employs a
|
||||||
|
include file namespace `lite/`, which is recommended to use in your
|
||||||
|
applications:
|
||||||
|
|
||||||
|
#include <lite/lite.h>
|
||||||
|
#include <lite/conio.h>
|
||||||
|
#include <lite/queue.h>
|
||||||
|
#include <lite/tree.h>
|
||||||
|
|
||||||
|
The output from the `pkg-config` tool holds no surprises:
|
||||||
|
|
||||||
|
$ pkg-config --libs --static --cflags libite
|
||||||
|
-I/usr/local/include -L/usr/local/lib -lite @LTLIBINTL@
|
||||||
|
|
||||||
|
|
||||||
Helper Macros
|
Helper Macros
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
# Use v2.61 for backwards compat with Ubuntu 12.04 LTS
|
# Use v2.61 for backwards compat with Ubuntu 12.04 LTS
|
||||||
AC_PREREQ([2.61])
|
AC_PREREQ([2.61])
|
||||||
AC_INIT(libite, 1.4.3, https://github.com/troglobit/libite/issues)
|
AC_INIT(libite, 1.4.4, https://github.com/troglobit/libite/issues)
|
||||||
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
|
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
|
||||||
AM_SILENT_RULES([yes])
|
AM_SILENT_RULES([yes])
|
||||||
|
|
||||||
AC_CONFIG_SRCDIR(lite.h)
|
AC_CONFIG_SRCDIR(lite.h)
|
||||||
AM_CONFIG_HEADER(config.h)
|
AM_CONFIG_HEADER(config.h)
|
||||||
AC_CONFIG_FILES([Makefile])
|
AC_CONFIG_FILES([Makefile libite.pc])
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@
|
||||||
|
|
||||||
|
Name: @PACKAGE@
|
||||||
|
Description: Frog DNA, basically
|
||||||
|
Version: @VERSION@
|
||||||
|
Requires:
|
||||||
|
Libs: -L${libdir} -lite
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|
||||||
+2
-1
@@ -24,7 +24,8 @@
|
|||||||
|
|
||||||
#ifndef O_TMPFILE /* Too old GLIBC or kernel */
|
#ifndef O_TMPFILE /* Too old GLIBC or kernel */
|
||||||
#warning O_TMPFILE missing on your system, tempfile() may not work!
|
#warning O_TMPFILE missing on your system, tempfile() may not work!
|
||||||
#define O_TMPFILE 020200000 /* Define and let it fail at runtime */
|
#define __O_TMPFILE 020000000
|
||||||
|
#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) /* Define and let it fail at runtime */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user