-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* luaposix-git-1.rockspec: Move from here... * luaposix-36.1-1.rockspec: ...to here. (_MOD_REV): Bump to 36.1. * NEWS.md: Strip placeholder header. * README.md: Bump badge branches to release-v36.1. * .gitignore: Remove /doc, *.html and luaposix-*.rockspec. * doc/examples/abstract-ns-client.lua.html, doc/examples/abstract-ns-server.lua.html, doc/examples/dir.lua.html, doc/examples/dup2.lua.html, doc/examples/fork.lua.html, doc/examples/fork2.lua.html, doc/examples/getopt.lua.html, doc/examples/glob.lua.html, doc/examples/limit.lua.html, doc/examples/lock.lua.html, doc/examples/netlink-uevent.lua.html, doc/examples/packet-socket.lua.html, doc/examples/ping.lua.html, doc/examples/poll.lua.html, doc/examples/rt_sched.lua.html, doc/examples/signal.lua.html, doc/examples/socket.lua.html, doc/examples/termios.lua.html, doc/examples/tree.lua.html, doc/index.html, doc/ldoc.css, doc/modules/posix.ctype.html, doc/modules/posix.dirent.html, doc/modules/posix.errno.html, doc/modules/posix.fcntl.html, doc/modules/posix.fnmatch.html, doc/modules/posix.glob.html, doc/modules/posix.grp.html, doc/modules/posix.html, doc/modules/posix.libgen.html, doc/modules/posix.poll.html, doc/modules/posix.pwd.html, doc/modules/posix.sched.html, doc/modules/posix.signal.html, doc/modules/posix.stdio.html, doc/modules/posix.stdlib.html, doc/modules/posix.sys.msg.html, doc/modules/posix.sys.resource.html, doc/modules/posix.sys.socket.html, doc/modules/posix.sys.stat.html, doc/modules/posix.sys.statvfs.html, doc/modules/posix.sys.time.html, doc/modules/posix.sys.times.html, doc/modules/posix.sys.utsname.html, doc/modules/posix.sys.wait.html, doc/modules/posix.syslog.html, doc/modules/posix.termio.html, doc/modules/posix.time.html, doc/modules/posix.unistd.html, doc/modules/posix.utime.html: Check in for release version. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
- Loading branch information
Showing
54 changed files
with
18,038 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
*~ | ||
*.o | ||
*.so | ||
*.html | ||
*.rockspec | ||
*.src.rock | ||
/ChangeLog | ||
/COPYING | ||
/doc | ||
/Makefile | ||
/build-aux/config.ld | ||
/lib/posix/version.lua | ||
/luaposix-*.rockspec | ||
!/luaposix-git-*.rockspec | ||
/luaposix-*.tar.gz | ||
/TAGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<head> | ||
<title>luaposix 36.1 Reference</title> | ||
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> | ||
</head> | ||
<body> | ||
|
||
<div id="container"> | ||
|
||
<div id="product"> | ||
<div id="product_logo"></div> | ||
<div id="product_name"><big><b></b></big></div> | ||
<div id="product_description"></div> | ||
</div> <!-- id="product" --> | ||
|
||
|
||
<div id="main"> | ||
|
||
|
||
<!-- Menu --> | ||
|
||
<div id="navigation"> | ||
<br/> | ||
<h1>luaposix 36.1</h1> | ||
|
||
<ul> | ||
<li><a href="../index.html">Index</a></li> | ||
</ul> | ||
|
||
|
||
|
||
<h2>Examples</h2> | ||
<ul class="nowrap"> | ||
<li><strong>abstract-ns-client.lua</strong></li> | ||
<li><a href="../examples/abstract-ns-server.lua.html">abstract-ns-server.lua</a></li> | ||
<li><a href="../examples/dir.lua.html">dir.lua</a></li> | ||
<li><a href="../examples/dup2.lua.html">dup2.lua</a></li> | ||
<li><a href="../examples/fork.lua.html">fork.lua</a></li> | ||
<li><a href="../examples/fork2.lua.html">fork2.lua</a></li> | ||
<li><a href="../examples/getopt.lua.html">getopt.lua</a></li> | ||
<li><a href="../examples/glob.lua.html">glob.lua</a></li> | ||
<li><a href="../examples/limit.lua.html">limit.lua</a></li> | ||
<li><a href="../examples/lock.lua.html">lock.lua</a></li> | ||
<li><a href="../examples/netlink-uevent.lua.html">netlink-uevent.lua</a></li> | ||
<li><a href="../examples/packet-socket.lua.html">packet-socket.lua</a></li> | ||
<li><a href="../examples/ping.lua.html">ping.lua</a></li> | ||
<li><a href="../examples/poll.lua.html">poll.lua</a></li> | ||
<li><a href="../examples/rt_sched.lua.html">rt_sched.lua</a></li> | ||
<li><a href="../examples/signal.lua.html">signal.lua</a></li> | ||
<li><a href="../examples/socket.lua.html">socket.lua</a></li> | ||
<li><a href="../examples/termios.lua.html">termios.lua</a></li> | ||
<li><a href="../examples/tree.lua.html">tree.lua</a></li> | ||
</ul> | ||
<h2>Modules</h2> | ||
<ul class="nowrap"> | ||
<li><a href="../modules/posix.html">posix</a></li> | ||
<li><a href="../modules/posix.ctype.html">posix.ctype</a></li> | ||
<li><a href="../modules/posix.dirent.html">posix.dirent</a></li> | ||
<li><a href="../modules/posix.errno.html">posix.errno</a></li> | ||
<li><a href="../modules/posix.fcntl.html">posix.fcntl</a></li> | ||
<li><a href="../modules/posix.fnmatch.html">posix.fnmatch</a></li> | ||
<li><a href="../modules/posix.glob.html">posix.glob</a></li> | ||
<li><a href="../modules/posix.grp.html">posix.grp</a></li> | ||
<li><a href="../modules/posix.libgen.html">posix.libgen</a></li> | ||
<li><a href="../modules/posix.poll.html">posix.poll</a></li> | ||
<li><a href="../modules/posix.pwd.html">posix.pwd</a></li> | ||
<li><a href="../modules/posix.sched.html">posix.sched</a></li> | ||
<li><a href="../modules/posix.signal.html">posix.signal</a></li> | ||
<li><a href="../modules/posix.stdio.html">posix.stdio</a></li> | ||
<li><a href="../modules/posix.stdlib.html">posix.stdlib</a></li> | ||
<li><a href="../modules/posix.sys.msg.html">posix.sys.msg</a></li> | ||
<li><a href="../modules/posix.sys.resource.html">posix.sys.resource</a></li> | ||
<li><a href="../modules/posix.sys.socket.html">posix.sys.socket</a></li> | ||
<li><a href="../modules/posix.sys.stat.html">posix.sys.stat</a></li> | ||
<li><a href="../modules/posix.sys.statvfs.html">posix.sys.statvfs</a></li> | ||
<li><a href="../modules/posix.sys.time.html">posix.sys.time</a></li> | ||
<li><a href="../modules/posix.sys.times.html">posix.sys.times</a></li> | ||
<li><a href="../modules/posix.sys.utsname.html">posix.sys.utsname</a></li> | ||
<li><a href="../modules/posix.sys.wait.html">posix.sys.wait</a></li> | ||
<li><a href="../modules/posix.syslog.html">posix.syslog</a></li> | ||
<li><a href="../modules/posix.termio.html">posix.termio</a></li> | ||
<li><a href="../modules/posix.time.html">posix.time</a></li> | ||
<li><a href="../modules/posix.unistd.html">posix.unistd</a></li> | ||
<li><a href="../modules/posix.utime.html">posix.utime</a></li> | ||
</ul> | ||
|
||
</div> | ||
|
||
<div id="content"> | ||
|
||
<h2>abstract-ns-client.lua</h2> | ||
<pre> | ||
#!/usr/bin/env lua | ||
|
||
<span class="keyword">local</span> M = <span class="global">require</span> <span class="string">'posix.sys.socket'</span> | ||
|
||
|
||
<span class="keyword">local</span> dgram = arg[<span class="number">1</span>] <span class="keyword">or</span> <span class="string">'test data'</span> | ||
|
||
<span class="comment">-- Create an AF_UNIX datagram socket | ||
</span><span class="keyword">local</span> s, errmsg = M.socket(M.AF_UNIX, M.SOCK_DGRAM, <span class="number">0</span>) | ||
<span class="global">assert</span>(s ~= <span class="keyword">nil</span>, errmsg) | ||
|
||
<span class="comment">-- Sendto the abtract AF_UNIX name 'mysocket' | ||
</span><span class="keyword">local</span> rc, errmsg = M.sendto(s, dgram, {family=M.AF_UNIX, path=<span class="string">'\0mysocket'</span>}) | ||
<span class="global">assert</span>(rc ~= <span class="keyword">nil</span>, errmsg)</pre> | ||
|
||
|
||
</div> <!-- id="content" --> | ||
</div> <!-- id="main" --> | ||
<div id="about"> | ||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> | ||
<i style="float:right;">Last updated 2023-01-31 15:49:12 </i> | ||
</div> <!-- id="about" --> | ||
</div> <!-- id="container" --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<head> | ||
<title>luaposix 36.1 Reference</title> | ||
<link rel="stylesheet" href="../ldoc.css" type="text/css" /> | ||
</head> | ||
<body> | ||
|
||
<div id="container"> | ||
|
||
<div id="product"> | ||
<div id="product_logo"></div> | ||
<div id="product_name"><big><b></b></big></div> | ||
<div id="product_description"></div> | ||
</div> <!-- id="product" --> | ||
|
||
|
||
<div id="main"> | ||
|
||
|
||
<!-- Menu --> | ||
|
||
<div id="navigation"> | ||
<br/> | ||
<h1>luaposix 36.1</h1> | ||
|
||
<ul> | ||
<li><a href="../index.html">Index</a></li> | ||
</ul> | ||
|
||
|
||
|
||
<h2>Examples</h2> | ||
<ul class="nowrap"> | ||
<li><a href="../examples/abstract-ns-client.lua.html">abstract-ns-client.lua</a></li> | ||
<li><strong>abstract-ns-server.lua</strong></li> | ||
<li><a href="../examples/dir.lua.html">dir.lua</a></li> | ||
<li><a href="../examples/dup2.lua.html">dup2.lua</a></li> | ||
<li><a href="../examples/fork.lua.html">fork.lua</a></li> | ||
<li><a href="../examples/fork2.lua.html">fork2.lua</a></li> | ||
<li><a href="../examples/getopt.lua.html">getopt.lua</a></li> | ||
<li><a href="../examples/glob.lua.html">glob.lua</a></li> | ||
<li><a href="../examples/limit.lua.html">limit.lua</a></li> | ||
<li><a href="../examples/lock.lua.html">lock.lua</a></li> | ||
<li><a href="../examples/netlink-uevent.lua.html">netlink-uevent.lua</a></li> | ||
<li><a href="../examples/packet-socket.lua.html">packet-socket.lua</a></li> | ||
<li><a href="../examples/ping.lua.html">ping.lua</a></li> | ||
<li><a href="../examples/poll.lua.html">poll.lua</a></li> | ||
<li><a href="../examples/rt_sched.lua.html">rt_sched.lua</a></li> | ||
<li><a href="../examples/signal.lua.html">signal.lua</a></li> | ||
<li><a href="../examples/socket.lua.html">socket.lua</a></li> | ||
<li><a href="../examples/termios.lua.html">termios.lua</a></li> | ||
<li><a href="../examples/tree.lua.html">tree.lua</a></li> | ||
</ul> | ||
<h2>Modules</h2> | ||
<ul class="nowrap"> | ||
<li><a href="../modules/posix.html">posix</a></li> | ||
<li><a href="../modules/posix.ctype.html">posix.ctype</a></li> | ||
<li><a href="../modules/posix.dirent.html">posix.dirent</a></li> | ||
<li><a href="../modules/posix.errno.html">posix.errno</a></li> | ||
<li><a href="../modules/posix.fcntl.html">posix.fcntl</a></li> | ||
<li><a href="../modules/posix.fnmatch.html">posix.fnmatch</a></li> | ||
<li><a href="../modules/posix.glob.html">posix.glob</a></li> | ||
<li><a href="../modules/posix.grp.html">posix.grp</a></li> | ||
<li><a href="../modules/posix.libgen.html">posix.libgen</a></li> | ||
<li><a href="../modules/posix.poll.html">posix.poll</a></li> | ||
<li><a href="../modules/posix.pwd.html">posix.pwd</a></li> | ||
<li><a href="../modules/posix.sched.html">posix.sched</a></li> | ||
<li><a href="../modules/posix.signal.html">posix.signal</a></li> | ||
<li><a href="../modules/posix.stdio.html">posix.stdio</a></li> | ||
<li><a href="../modules/posix.stdlib.html">posix.stdlib</a></li> | ||
<li><a href="../modules/posix.sys.msg.html">posix.sys.msg</a></li> | ||
<li><a href="../modules/posix.sys.resource.html">posix.sys.resource</a></li> | ||
<li><a href="../modules/posix.sys.socket.html">posix.sys.socket</a></li> | ||
<li><a href="../modules/posix.sys.stat.html">posix.sys.stat</a></li> | ||
<li><a href="../modules/posix.sys.statvfs.html">posix.sys.statvfs</a></li> | ||
<li><a href="../modules/posix.sys.time.html">posix.sys.time</a></li> | ||
<li><a href="../modules/posix.sys.times.html">posix.sys.times</a></li> | ||
<li><a href="../modules/posix.sys.utsname.html">posix.sys.utsname</a></li> | ||
<li><a href="../modules/posix.sys.wait.html">posix.sys.wait</a></li> | ||
<li><a href="../modules/posix.syslog.html">posix.syslog</a></li> | ||
<li><a href="../modules/posix.termio.html">posix.termio</a></li> | ||
<li><a href="../modules/posix.time.html">posix.time</a></li> | ||
<li><a href="../modules/posix.unistd.html">posix.unistd</a></li> | ||
<li><a href="../modules/posix.utime.html">posix.utime</a></li> | ||
</ul> | ||
|
||
</div> | ||
|
||
<div id="content"> | ||
|
||
<h2>abstract-ns-server.lua</h2> | ||
<pre> | ||
#!/usr/bin/env lua | ||
|
||
<span class="keyword">local</span> M = <span class="global">require</span> <span class="string">'posix.sys.socket'</span> | ||
|
||
|
||
<span class="comment">-- Create an AF_UNIX datagram socket | ||
</span><span class="keyword">local</span> s, errmsg = M.socket(M.AF_UNIX, M.SOCK_DGRAM, <span class="number">0</span>) | ||
<span class="global">assert</span>(s ~ = <span class="keyword">nil</span>, errmsg) | ||
|
||
<span class="comment">-- Bind to the abtract AF_UNIX name 'mysocket' | ||
</span><span class="keyword">local</span> rc, errmsg = M.bind(s, {family=M.AF_UNIX, path=<span class="string">'\0mysocket'</span>}) | ||
<span class="global">assert</span>(rc = = <span class="number">0</span>, errmsg) | ||
|
||
<span class="comment">-- Receive datagrams on the socket and print out the contents | ||
</span><span class="keyword">local</span> dgram | ||
<span class="keyword">while</span> <span class="keyword">true</span> <span class="keyword">do</span> | ||
dgram, errmsg = M.recv(s, <span class="number">1024</span>) | ||
<span class="global">assert</span>(dgram ~ = <span class="keyword">nil</span>, errmsg) | ||
<span class="global">print</span>(<span class="string">'Got packet: ['</span> .. <span class="global">tostring</span>(dgram) .. <span class="string">']'</span>) | ||
<span class="keyword">end</span></pre> | ||
|
||
|
||
</div> <!-- id="content" --> | ||
</div> <!-- id="main" --> | ||
<div id="about"> | ||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> | ||
<i style="float:right;">Last updated 2023-01-31 15:49:12 </i> | ||
</div> <!-- id="about" --> | ||
</div> <!-- id="container" --> | ||
</body> | ||
</html> |
Oops, something went wrong.