summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio
AgeCommit message (Collapse)Author
2015-01-08Rework LuCI build systemJo-Philipp Wich
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2012-10-29merge branch changes into trunkJo-Philipp Wich
2012-08-29[PATCH] nixio HAS_SHADOW test link errorJo-Philipp Wich
The nixio library can mistakenly build without shadow password support due to the compile-time test failing. Because the test for HAS_SHADOW in the nixio Makefile uses the default CC flags, the test may attempt to cross-compile with different VFP abi than libc does and will therefore not link. Passing CCFLAGS on the command line builds the test correctly and will enable HAS_SHADOW if available.
2012-08-27libs/nixio: add missing parameter to alarm resetJo-Philipp Wich
2012-08-27libs/nixio: cancel pending alarm after successfully returning from getnameinfo()Jo-Philipp Wich
2012-08-27libs/nixio: implement optional timeout for getnameinfo() on LinuxJo-Philipp Wich
2012-03-13libs/nixio: reorder linker commandline args to fix build on Ubuntu 11.xJo-Philipp Wich
2012-03-13libs/nixio: disable TLS implementation by default, fixes host builds on ↵Jo-Philipp Wich
Ubuntu 11.x
2011-12-16[PATCH] Abstract address UNIX sockets not binding properly (by ↵Jo-Philipp Wich
capnbry@gmail.com, #366) In #274, I stated abstract namespace and autobound abstract namespace datagram UNIX domain sockets work perfectly with nixio. However, I may have jumped the gun on that conclusion. Turns out they work perfectly for only one concurrent connection. The problem is that when binding to an abstract address socket, which begins with a NULL byte, nixio strncpy's the name into the sockaddr_un structure, which effectively copies nothing. It then binds to an address of 180 NULLs, which is completely legal, but obviously you run into problems when a second client tries to bind to the same address. The rules are as follows ( http://linux.die.net/man/7/unix) for the names: * If the name is blank, bind() should pass that the addrlen of sizeof(sa_family_t) and Linux will autobind a name that begins with null and is followed by 5 digits. * If the first character of the name is non-null, the name is a pathname and is null-terminated. addrlen should be sizeof(sockaddr_un), but the length can also be the pathname len + sizeof(sa_family_t) as the value will be null-terminated by the kernel unix socket driver * If the first character is null, the address is abstract and the value should not be null-terminated and addrlen is pathname + sizeof(sa_family_t) The attached patch fixes bind/connect/sendto by shortening the addrlen passed to be pathname len + sizeof(sa_family_t), which generates the correct socket names for all 3 cases above. It also fixes the address returned by recvfrom, which currently returns a blank string for any abstract address socket (as they begin with a null).
2011-11-20libs/nixio: link with libcrypto when using OpenSSL as digest backendJo-Philipp Wich
2011-10-24libs/nixio: remove forgotten stamp fileJo-Philipp Wich
2011-08-12libs/nixio: add missing file in previous commit, revert unrelated changeJo-Philipp Wich
2011-08-12libs/nixio: implement getproto(), getprotobyname() and getprotobynumber()Jo-Philipp Wich
2011-08-11libs/nixio: allow building without shadow password supportJo-Philipp Wich
2011-08-11libs/nixio: fix possible issue with nonblocking bind()Jo-Philipp Wich
2011-07-17libs/nixio: Fix recvfrom() return values for unnamed unix sockets, patch by ↵Jo-Philipp Wich
capnbry@gmail.com (#274)
2011-01-13libs/nixio: fix sendto(), implement support for unix domain sockets (#140)Jo-Philipp Wich
2010-06-10nixio: Add set_verify_locations for TLSSteven Barth
2010-05-23nixio: Add nixio.gettimeofday() per user requestSteven Barth
2010-04-05libs/nixio: save uhttpd certs as wellJo-Philipp Wich
2010-03-28nixio: Fix interface data for layer 3+ interfacesSteven Barth
2010-03-27libs/nixio: make TLS support optionalJo-Philipp Wich
2009-12-29libs/nixio: fix uninitialized variable warning on Darwin in splice.cJo-Philipp Wich
2009-12-28libs/nixio: properly cast len argument for OS X sendfile()Jo-Philipp Wich
2009-12-28libs/nixio: fix compile on OS XJo-Philipp Wich
2009-11-28nixio: Improve number handling with non-double Lua setupsSteven Barth
2009-11-01nixio: Device stats are unsinged from kernel and likely to overflow so use ↵Steven Barth
pushnumber instead of pushinteger.
2009-10-31System loads are floatsSteven Barth
2009-10-26Build fixesSteven Barth
2009-10-26nixio: store stats and other number information as integer, which works ↵Felix Fietkau
better when lua number support is downgraded from double to float
2009-08-27libs/nixio: protect splice calls with ifdef SPLICE_F_MOVE, fixes compile ↵Jo-Philipp Wich
error with openwrt trunk x86/glibc
2009-07-29Kill abandoned filesSteven Barth
2009-07-27Code styleSteven Barth
2009-07-26libs/nixio: d'oh ... import tostring() as wellJo-Philipp Wich
2009-07-26libs/nixio: convert data to string in writeall(), this is required for ↵Jo-Philipp Wich
numeric and udata arguments
2009-07-19libs/nixio: don't close stdin, stdout or stderr during garbage collectionJo-Philipp Wich
2009-07-18libs/nixio: allow calls to nixio.util.consume() with no iterator givenJo-Philipp Wich
2009-07-18libs/nixio: add destination table argument to nixio.util.consume()Jo-Philipp Wich
2009-07-14nixio:Steven Barth
Add Rockspec Add bswap to nixio.bit Fix nixio.bit documentation
2009-07-11Fix getifaddrs() for BSDSteven Barth
2009-07-11nixio: Mark axTLS as discouraged, fix changelogSteven Barth
2009-07-11nixio: Update documentation to prepare 0.3 releaseSteven Barth
2009-07-11nixio: Fix accidental closing of file descriptors after dup with twoSteven Barth
parameters resulting in strange behaviour when spawning processes
2009-06-30libs/nixio: add sysupgrade hook to include /etc/nixio/ (generated certs) ↵Jo-Philipp Wich
into saved file list
2009-06-21nixio: Resolve namespace clashesSteven Barth
2009-06-15libs/nixio: wrap $(CC) in quotes, command could break if ccache is used ↵Jo-Philipp Wich
(CC:=ccache mips-openwrt-linux-uclibc-gcc)
2009-06-15Redefine splice() flags for crappy uclibc versionsSteven Barth
2009-06-10Some sendfile() under Linux 2.4 is brokenSteven Barth
2009-06-07Revert "adjust axtls level"Steven Barth
This reverts commit b123c99304822a1f1502d00df4915e2707940df3.
2009-06-07adjust axtls levelSteven Barth