mirror of
https://github.com/troglobit/libite.git
synced 2026-10-14 10:19:31 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20d8d40285 | ||
|
|
4dc24f37e3 | ||
|
|
11f8846f63 | ||
|
|
41778fb3ce | ||
|
|
59d1f0d60c | ||
|
|
afc4289326 | ||
|
|
67267659f7 | ||
|
|
188509d811 | ||
|
|
c10cd67266 | ||
|
|
82db75cac6 | ||
|
|
51970ff86e | ||
|
|
d6fa3cde96 | ||
|
|
9d50de3ec7 | ||
|
|
2aed5a6b3f |
No files matched your search
+2
-10
@@ -1,16 +1,8 @@
|
|||||||
*~
|
*~
|
||||||
*.d
|
|
||||||
*.o
|
|
||||||
*.so
|
|
||||||
*.so.*
|
|
||||||
*.a
|
|
||||||
.deps
|
|
||||||
.libs
|
|
||||||
ID
|
ID
|
||||||
GPATH
|
GPATH
|
||||||
GRTAGS
|
GRTAGS
|
||||||
GTAGS
|
GTAGS
|
||||||
tmp/
|
|
||||||
compile
|
compile
|
||||||
config.*
|
config.*
|
||||||
configure
|
configure
|
||||||
@@ -25,5 +17,5 @@ Makefile.in
|
|||||||
aclocal.m4
|
aclocal.m4
|
||||||
ar-lib
|
ar-lib
|
||||||
autom4te.cache
|
autom4te.cache
|
||||||
libite*
|
test-driver
|
||||||
test-driver
|
libite.pc
|
||||||
+21
-1
@@ -3,6 +3,24 @@ Change Log
|
|||||||
|
|
||||||
All notable changes to the project are documented in this file.
|
All notable changes to the project are documented in this file.
|
||||||
|
|
||||||
|
[v2.1.2][] - 2020-02-22
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Fix Debian package upgrade from libite -> libite5
|
||||||
|
|
||||||
|
|
||||||
|
[v2.1.1][] - 2020-02-22
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
- Add test/example for `printhdr()`
|
||||||
|
- Update copyright years
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- chomp: Check for beginning of string while removing \n's
|
||||||
|
|
||||||
|
|
||||||
[v2.1.0][] - 2019-08-26
|
[v2.1.0][] - 2019-08-26
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
@@ -339,7 +357,9 @@ problems this may cause!
|
|||||||
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/v2.1.0...HEAD
|
[UNRELEASED]: https://github.com/troglobit/libite/compare/v2.1.2...HEAD
|
||||||
|
[v2.1.2]: https://github.com/troglobit/libite/compare/v2.1.1...v2.1.2
|
||||||
|
[v2.1.1]: https://github.com/troglobit/libite/compare/v2.1.0...v2.1.1
|
||||||
[v2.1.0]: https://github.com/troglobit/libite/compare/v2.0.2...v2.1.0
|
[v2.1.0]: https://github.com/troglobit/libite/compare/v2.0.2...v2.1.0
|
||||||
[v2.0.2]: https://github.com/troglobit/libite/compare/v2.0.1...v2.0.2
|
[v2.0.2]: https://github.com/troglobit/libite/compare/v2.0.1...v2.0.2
|
||||||
[v2.0.1]: https://github.com/troglobit/libite/compare/v2.0.0...v2.0.1
|
[v2.0.1]: https://github.com/troglobit/libite/compare/v2.0.0...v2.0.1
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
Much of the code in libite (-lite) is written by Claudio Matsuoka for Finit
|
|
||||||
and released under the MIT/X11 license. Joachim Nilsson later improved on
|
|
||||||
the Finit code base and included pieces of software released under the ISC
|
|
||||||
and BSD licenses. See each respective file for license details.
|
|
||||||
|
|
||||||
Copyright (c) 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
|
Copyright (c) 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
|
||||||
Copyright (c) 2008-2016 Joachim Nilsson <troglobit@gmail.com>
|
Copyright (c) 2008-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -23,3 +18,9 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
Note: Much of the code in libite (-lite) is written by Claudio Matsuoka
|
||||||
|
for Finit and released under the MIT/X11 license. Joachim Nilsson
|
||||||
|
later improved on the Finit code base and included pieces of
|
||||||
|
software released under the ISC and BSD licenses. See each
|
||||||
|
respective file for license details.
|
||||||
+31
-25
@@ -6,39 +6,45 @@ pkgconfigdir = $(libdir)/pkgconfig
|
|||||||
pkgconfig_DATA = libite.pc
|
pkgconfig_DATA = libite.pc
|
||||||
SUBDIRS = src tests
|
SUBDIRS = src tests
|
||||||
|
|
||||||
## Generate .deb package
|
|
||||||
package:
|
|
||||||
@dpkg-buildpackage -uc -us -B
|
|
||||||
|
|
||||||
## Generate MD5 checksum file
|
## Generate MD5 checksum file
|
||||||
MD5 = md5sum
|
MD5 = md5sum
|
||||||
md5-dist:
|
md5-dist:
|
||||||
@for file in $(DIST_ARCHIVES); do \
|
@for file in $(DIST_ARCHIVES); do \
|
||||||
$(MD5) $$file > $$file.md5; \
|
$(MD5) $$file > ../$$file.md5; \
|
||||||
done
|
done
|
||||||
|
|
||||||
## Check if tagged in git
|
## Check if tagged in git
|
||||||
release-hook:
|
release-hook:
|
||||||
if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \
|
@if [ ! `git tag | grep $(PACKAGE_VERSION)` ]; then \
|
||||||
echo; \
|
echo; \
|
||||||
printf "\033[1m\033[41mCannot find release tag $(PACKAGE_VERSION)\033[0m\n"; \
|
printf "\e[1m\e[41mCannot find release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
||||||
printf "\033[1m\033[5mDo release anyway?\033[0m "; read yorn; \
|
printf "\e[1m\e[5mDo release anyway?\e[0m "; read yorn; \
|
||||||
if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then \
|
if [ "$$yorn" != "y" -a "$$yorn" != "Y" ]; then \
|
||||||
printf "OK, aborting release.\n"; \
|
printf "OK, aborting release.\n"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
echo; \
|
echo; \
|
||||||
else \
|
else \
|
||||||
echo; \
|
echo; \
|
||||||
printf "\033[1m\033[42mFound GIT release tag $(PACKAGE_VERSION)\033[0m\n"; \
|
printf "\e[1m\e[42mFound GIT release tag $(PACKAGE_VERSION)\e[0m\n"; \
|
||||||
printf "\033[1m\033[44m>>Remember to push tags!\033[0m\n"; \
|
printf "\e[1m\e[44m>>Remember to push tags!\e[0m\n"; \
|
||||||
echo; \
|
echo; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# lintian --profile debian -i -I --show-overrides ../$PKG.changes
|
||||||
|
package build-deb:
|
||||||
|
@dpkg-buildpackage -uc -us -B
|
||||||
|
|
||||||
## Target to run when building a release
|
## Target to run when building a release
|
||||||
release: distcheck release-hook md5-dist
|
release: release-hook distcheck package md5-dist
|
||||||
@for file in $(DIST_ARCHIVES); do \
|
@mv $(DIST_ARCHIVES) ../
|
||||||
printf "$$file \tDistribution tarball\n"; \
|
@echo
|
||||||
printf "$$file.md5\t"; cat $$file.md5 | cut -f1 -d' '; \
|
@echo "Resulting release files:"
|
||||||
mv $$file* ../; \
|
@echo "================================================================="
|
||||||
|
@for file in $(DIST_ARCHIVES); do \
|
||||||
|
printf "%-32s Distribution tarball\n" $$file; \
|
||||||
|
printf "%-32s " $$file.md5; cat ../$$file.md5 | cut -f1 -d' '; \
|
||||||
|
done
|
||||||
|
@for file in `cd ..; ls $(PACKAGE)*_$(VERSION)*`; do \
|
||||||
|
printf "%-32s Debian/Ubuntu package\n" $$file; \
|
||||||
done
|
done
|
||||||
+3
-1
@@ -1,4 +1,5 @@
|
|||||||
AC_INIT(libite, 2.1.0, https://github.com/troglobit/libite/issues)
|
AC_INIT(libite, 2.1.2, https://github.com/troglobit/libite/issues)
|
||||||
|
AC_CONFIG_AUX_DIR(aux)
|
||||||
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])
|
||||||
|
|
||||||
@@ -8,6 +9,7 @@ AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile libite.pc])
|
|||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
AC_PROG_INSTALL
|
||||||
AM_PROG_AR
|
AM_PROG_AR
|
||||||
LT_INIT
|
LT_INIT
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -1,6 +1,9 @@
|
|||||||
|
*.log
|
||||||
|
*.substvars
|
||||||
|
.debhelper/*
|
||||||
tmp/*
|
tmp/*
|
||||||
libuev/*
|
libite5/*
|
||||||
libuev*
|
libite-dev/*
|
||||||
autoreconf*
|
autoreconf*
|
||||||
debhelper*
|
debhelper*
|
||||||
files
|
files
|
||||||
|
|||||||
Vendored
+17
@@ -1,3 +1,20 @@
|
|||||||
|
libite (2.1.2) stable; urgency=high
|
||||||
|
|
||||||
|
* Fix upgrade of base package, new library name to match SONAME
|
||||||
|
breaks upgrade from libite_2.0.x.deb to libite5_2.1.x.deb
|
||||||
|
|
||||||
|
-- Joachim Nilsson <troglobit@gmail.com> Sat, 22 Feb 2020 15:04:27 +0100
|
||||||
|
|
||||||
|
libite (2.1.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* Fix to chomp(), ensure stopping before beginning of string
|
||||||
|
* Added example of printhdr()
|
||||||
|
* Update copyright years
|
||||||
|
* Add missing libite5.symbols file, found by lintian
|
||||||
|
* Fix package short description, found by linitian
|
||||||
|
|
||||||
|
-- Joachim Nilsson <troglobit@gmail.com> Sat, 22 Feb 2020 13:52:24 +0100
|
||||||
|
|
||||||
libite (2.1.0) unstable; urgency=medium
|
libite (2.1.0) unstable; urgency=medium
|
||||||
|
|
||||||
* New functions; strmatch(), strnmatch(), yorn(), telnet expect APIs
|
* New functions; strmatch(), strnmatch(), yorn(), telnet expect APIs
|
||||||
|
|||||||
Vendored
+11
-8
@@ -1,8 +1,8 @@
|
|||||||
Source: libite
|
Source: libite
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Joachim Nilsson <troglobit@gmail.com>
|
Maintainer: Joachim Nilsson <troglobit@gmail.com>
|
||||||
Build-Depends: dpkg-dev (>= 1.14.9), debhelper (>= 10)
|
Build-Depends: debhelper (>= 10)
|
||||||
Standards-Version: 4.1.0
|
Standards-Version: 4.3.0
|
||||||
Section: libs
|
Section: libs
|
||||||
Homepage: https://github.com/troglobit/libite/
|
Homepage: https://github.com/troglobit/libite/
|
||||||
Vcs-Git: https://github.com/troglobit/libite.git
|
Vcs-Git: https://github.com/troglobit/libite.git
|
||||||
@@ -16,14 +16,14 @@ Depends: ${misc:Depends}, libite5 (= ${binary:Version})
|
|||||||
Description: static library, header files, and docs for libite
|
Description: static library, header files, and docs for libite
|
||||||
Static library, header files, and documentation for libite.
|
Static library, header files, and documentation for libite.
|
||||||
.
|
.
|
||||||
Libite is a lightweight library of frog DNA. It can be used to fill the
|
Libite is a lightweight library of frog DNA. It can be used to fill
|
||||||
gaps in any dinosaur project. It holds useful functions and macros
|
the gaps in any dinosaur project. It holds useful functions and macros
|
||||||
developed by both Finit and the OpenBSD project. Most notably the
|
developed by both Finit and the OpenBSD project. Most notably the
|
||||||
string functions: strlcpy(3), strlcat(3) and the highly useful *BSD
|
string functions: strlcpy(3), strlcat(3) and the highly useful *BSD
|
||||||
sys/queue.h and sys/tree.h API's.
|
sys/queue.h and sys/tree.h API's.
|
||||||
.
|
.
|
||||||
Libite is the frog DNA missing in GNU libc. However, -lite does not aim
|
Libite is the frog DNA missing in GNU libc. However, -lite does not
|
||||||
to become another GLIB! One noticeable gap in GLIBC is the missing
|
aim to become another GLIB! One noticeable gap in GLIBC is the missing
|
||||||
_SAFE macros in the BSD sys/queue.h API — highly recommended when
|
_SAFE macros in the BSD sys/queue.h API — highly recommended when
|
||||||
traversing lists to delete/free nodes.
|
traversing lists to delete/free nodes.
|
||||||
.
|
.
|
||||||
@@ -32,9 +32,12 @@ Description: static library, header files, and docs for libite
|
|||||||
liberal and can be used freely in proprietary software if needed.
|
liberal and can be used freely in proprietary software if needed.
|
||||||
|
|
||||||
Package: libite5
|
Package: libite5
|
||||||
|
Replaces: libite
|
||||||
|
Conflicts: libite
|
||||||
|
Provides: libite
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${misc:Depends}, ${shlibs:Depends}
|
Depends: ${misc:Depends}, ${shlibs:Depends}
|
||||||
Description: That missing frog DNA you've been looking for.
|
Description: That missing frog DNA you've been looking for
|
||||||
Libite, or -lite, is a lightweight library of frog DNA. It can be used
|
Libite, or -lite, is a lightweight library of frog DNA. It can be used
|
||||||
to fill the gaps in any dinosaur project. It holds useful functions
|
to fill the gaps in any dinosaur project. It holds useful functions
|
||||||
and macros developed by both Finit and the OpenBSD project. Most
|
and macros developed by both Finit and the OpenBSD project. Most
|
||||||
|
|||||||
Vendored
+14
-14
@@ -4,7 +4,7 @@ Source: https.//github.com/troglobit/libite/
|
|||||||
Files: *
|
Files: *
|
||||||
Copyright:
|
Copyright:
|
||||||
2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
|
2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
|
||||||
2008-2016 Joachim Nilsson <troglobit@gmail.com>
|
2008-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: MIT
|
License: MIT
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -25,19 +25,19 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
Files: chomp.c
|
Files: chomp.c
|
||||||
Copyright: 2014-2015 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2014-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: conio.h
|
Files: conio.h
|
||||||
Copyright: 2009-2013 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: dir.c
|
Files: dir.c
|
||||||
Copyright: 2008-2016 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2008-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: lfile.c
|
Files: lfile.c
|
||||||
Copyright: 2015-2016 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2015-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: pidfile.c
|
Files: pidfile.c
|
||||||
@@ -53,7 +53,7 @@ Copyright: 2008 Otto Moerbeek <otto@drijf.net>
|
|||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: rsync.c
|
Files: rsync.c
|
||||||
Copyright: 2011, 2012 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2011-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: strdupa.h strndupa.h
|
Files: strdupa.h strndupa.h
|
||||||
@@ -65,11 +65,11 @@ Copyright: 1998, 2015 Todd C. Miller <Todd.Miller@courtesan.com>
|
|||||||
License: MIT
|
License: MIT
|
||||||
|
|
||||||
Files: strmatch.c
|
Files: strmatch.c
|
||||||
Copyright: 2009-2018 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: strnlen.c
|
Files: strnlen.c
|
||||||
Copyright: 2016 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2016-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: strtonum.c
|
Files: strtonum.c
|
||||||
@@ -77,19 +77,19 @@ Copyright: 2004 Ted Unangst and Todd Miller
|
|||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: telnet.c
|
Files: telnet.c
|
||||||
Copyright: 2010, 2013, 2019 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2010-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: tempfile.c
|
Files: tempfile.c
|
||||||
Copyright: 2015-2016 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2015-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: tree.c
|
Files: tree.h
|
||||||
Copyright: 2015 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2002 Niels Provos <provos@citi.umich.edu>
|
||||||
License: ISC
|
License: BSD-2-clause
|
||||||
|
|
||||||
Files: yorn.c
|
Files: yorn.c
|
||||||
Copyright: 2009 Joachim Nilsson <troglobit@gmail.com>
|
Copyright: 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
License: ISC
|
License: ISC
|
||||||
|
|
||||||
Files: tests/*.c
|
Files: tests/*.c
|
||||||
|
|||||||
Vendored
+45
@@ -0,0 +1,45 @@
|
|||||||
|
libite.so.5 libite5 #MINVER#
|
||||||
|
* Build-Depends-Package: libite-dev
|
||||||
|
__pidfile_name@Base 2.0.0
|
||||||
|
__pidfile_path@Base 2.0.0
|
||||||
|
chomp@Base 2.0.0
|
||||||
|
copyfile@Base 2.0.0
|
||||||
|
dir@Base 2.0.0
|
||||||
|
fcopyfile@Base 2.0.0
|
||||||
|
fexist@Base 2.0.0
|
||||||
|
fgetint@Base 2.0.0
|
||||||
|
fisdir@Base 2.0.0
|
||||||
|
fparseln@Base 2.0.0
|
||||||
|
fsendfile@Base 2.0.0
|
||||||
|
ifconfig@Base 2.0.0
|
||||||
|
initscr@Base 2.0.0
|
||||||
|
lfclose@Base 2.0.0
|
||||||
|
lfgetint@Base 2.0.0
|
||||||
|
lfgetkey@Base 2.0.0
|
||||||
|
lfopen@Base 2.0.0
|
||||||
|
lftok@Base 2.0.0
|
||||||
|
makepath@Base 2.0.0
|
||||||
|
mkpath@Base 2.0.0
|
||||||
|
movefile@Base 2.0.0
|
||||||
|
pidfile@Base 2.0.0
|
||||||
|
pidfile_poll@Base 2.0.0
|
||||||
|
pidfile_read@Base 2.0.0
|
||||||
|
pidfile_signal@Base 2.1.0
|
||||||
|
progress@Base 2.0.0
|
||||||
|
progress_simple@Base 2.0.0
|
||||||
|
reallocarray@Base 2.0.0
|
||||||
|
rsync@Base 2.0.0
|
||||||
|
sdbuf@Base 2.0.0
|
||||||
|
strlcat@Base 2.0.0
|
||||||
|
strlcpy@Base 2.0.0
|
||||||
|
strmatch@Base 2.1.0
|
||||||
|
strnmatch@Base 2.1.0
|
||||||
|
strtonum@Base 2.1.0
|
||||||
|
telnet_close@Base 2.1.0
|
||||||
|
telnet_expect@Base 2.1.0
|
||||||
|
telnet_open@Base 2.1.0
|
||||||
|
telnet_session@Base 2.1.0
|
||||||
|
tempfile@Base 2.0.0
|
||||||
|
which@Base 2.0.0
|
||||||
|
whichp@Base 2.0.0
|
||||||
|
yorn@Base 2.1.0
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
*.la
|
||||||
|
.libs/*
|
||||||
|
libite_la*
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/* Perl inspired chomp() implementation.
|
/* Perl inspired chomp() implementation.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014-2015 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2014-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
* @str: String to chomp
|
* @str: String to chomp
|
||||||
*
|
*
|
||||||
* This function is like Perl chomp, but it's set to chop of all
|
* This function is like Perl chomp, but it's set to chop of all
|
||||||
* trailing newlines.
|
* trailing newlines. Useful in combination with fgets().
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* If @str is a valid pointer this function returns @str, otherwise
|
* If @str is a valid pointer this function returns @str, otherwise
|
||||||
@@ -39,7 +39,7 @@ char *chomp(char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
p = str + strlen(str) - 1;
|
p = str + strlen(str) - 1;
|
||||||
while (*p == '\n')
|
while (p >= str && *p == '\n')
|
||||||
*p-- = 0;
|
*p-- = 0;
|
||||||
|
|
||||||
return str;
|
return str;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* A conio.h like implementation for VTANSI displays.
|
/* A conio.h like implementation for VTANSI displays.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009-2017 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* A conio.h like implementation for VTANSI displays.
|
/* A conio.h like implementation for VTANSI displays.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009-2017 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* Functions for operating on files in directories.
|
/* Functions for operating on files in directories.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2008-2016 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2008-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
/* Fastinit (finit) ifconfig() implementation.
|
/* Fastinit (finit) ifconfig() implementation.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2008 Claudio Matsuoka <http://helllabs.org/finit/>
|
* Copyright (c) 2008-2010 Claudio Matsuoka <http://helllabs.org/finit/>
|
||||||
* Copyright (C) 2009-2014 Joachim Nilsson <joachim.nilsson@westermo.se>
|
* Copyright (C) 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Parse UNIX /etc configuration files like /etc/protocols and /etc/services
|
/* Parse UNIX /etc configuration files like /etc/protocols and /etc/services
|
||||||
*
|
*
|
||||||
* Copyright (c) 2015-2016 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2015-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
/* Collection of frog DNA
|
/* Collection of frog DNA
|
||||||
*
|
*
|
||||||
* Copyright (c) 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
|
* Copyright (c) 2008-2010 Claudio Matsuoka <cmatsuoka@gmail.com>
|
||||||
* Copyright (c) 2008-2016 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2008-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Functions for dealing with PID files (client side)
|
/* Functions for dealing with PID files (client side)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009-2015 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Simple termios based progress bar
|
/* Simple termios based progress bar
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012-2015 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2012-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Micro "rsync" implementation.
|
/* Micro "rsync" implementation.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011, 2012 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2011-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Collection of frog DNA
|
/* Collection of frog DNA
|
||||||
*
|
*
|
||||||
* Copyright (c) 2008-2016 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2008-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Simple string matcher function, finds partial matches.
|
/* Simple string matcher function, finds partial matches.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009-2018 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* strnlen.h - Re-implementation of GLIBC strnlen()
|
/* strnlen.h - Re-implementation of GLIBC strnlen()
|
||||||
*
|
*
|
||||||
* Copyright (c) 2016 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2016-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Poor mans telnet expect in C.
|
/* Poor mans telnet expect in C.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2010, 2013, 2019 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2010-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* A secure tmpfile() replacement.
|
/* A secure tmpfile() replacement.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2015-2016 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2015-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* C implementation of UNIX which(1)
|
/* C implementation of UNIX which(1)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2017 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2017-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Safe yes-or-no with prompt
|
/* Safe yes-or-no with prompt
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009 Joachim Nilsson <troglobit@gmail.com>
|
* Copyright (c) 2009-2020 Joachim Nilsson <troglobit@gmail.com>
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for any
|
* Permission to use, copy, modify, and/or distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
*.o
|
||||||
*.log
|
*.log
|
||||||
*.trs
|
*.trs
|
||||||
chomp
|
chomp
|
||||||
@@ -9,6 +10,7 @@ fsendfile
|
|||||||
lfile
|
lfile
|
||||||
makepath
|
makepath
|
||||||
pidfile
|
pidfile
|
||||||
|
printhdr
|
||||||
progress
|
progress
|
||||||
rsync
|
rsync
|
||||||
str
|
str
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ TESTS += fsendfile
|
|||||||
TESTS += lfile
|
TESTS += lfile
|
||||||
TESTS += makepath
|
TESTS += makepath
|
||||||
TESTS += pidfile
|
TESTS += pidfile
|
||||||
|
TESTS += printhdr
|
||||||
TESTS += progress
|
TESTS += progress
|
||||||
TESTS += rsync
|
TESTS += rsync
|
||||||
TESTS += str
|
TESTS += str
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#include <stdlib.h> /* atexit() */
|
||||||
|
#include <unistd.h> /* usleep() */
|
||||||
|
|
||||||
|
#include "check.h"
|
||||||
|
|
||||||
|
#define SCREEN_WIDTH 80
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
FILE *fp = stderr;
|
||||||
|
char buf[SCREEN_WIDTH];
|
||||||
|
|
||||||
|
printhdr(fp, "", 0, UNDERSCORE);
|
||||||
|
printhdr(fp, "Neighbor Table", 0, 0);
|
||||||
|
snprintf(buf, sizeof(buf), "%-15s %-15s %7s %-5s%10s %6s",
|
||||||
|
"Neighbor", "Interface", "Version", "Flags", "Uptime", "Expire");
|
||||||
|
printhdr(fp, buf, 0, REVERSE);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user