mg-openbsd-port.html - www.codemadness.org - www.codemadness.org saait content files
 (HTM) git clone git://git.codemadness.org/www.codemadness.org
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       mg-openbsd-port.html (3114B)
       ---
            1 <!DOCTYPE html>
            2 <html dir="ltr" lang="en">
            3 <head>
            4         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            5         <meta http-equiv="Content-Language" content="en" />
            6         <meta name="viewport" content="width=device-width" />
            7         <meta name="keywords" content="mg, openbsd, port" />
            8         <meta name="description" content="mg: port of OpenBSD mg version to Linux" />
            9         <meta name="author" content="hiltjo" />
           10         <title>mg: port of OpenBSD mg version to Linux - Codemadness</title>
           11         <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
           12         <link rel="stylesheet" href="print.css" type="text/css" media="print" />
           13         <link rel="alternate" href="atom.xml" type="application/atom+xml" title="Codemadness Atom Feed" />
           14         <link rel="icon" href="/favicon.png" type="image/png" />
           15         <!-- This site is created using saait: https://git.codemadness.org/saait/file/README.html -->
           16 </head>
           17 <body>
           18         <nav id="menuwrap">
           19                 <table id="menu" width="100%" border="0">
           20                 <tr>
           21                         <td id="links" align="left">
           22                                 <a href="index.html">Blog</a> |
           23                                 <a href="/git/" title="Git repository with some of my projects">Git</a> |
           24                                 <a href="/releases/">Releases</a> |
           25                                 <a href="gopher://codemadness.org">Gopherhole</a>
           26                         </td>
           27                         <td id="links-contact" align="right">
           28                                 <span class="hidden"> | </span>
           29                                 <a href="atom.xml">Atom feed</a> |
           30                                 <a href="pgp.asc">PGP</a> |
           31                                 <a href="mailto:hiltjo@AT@codemadness.DOT.org" title="Mail me">Mail</a>
           32                         </td>
           33                 </tr>
           34                 </table>
           35         </nav>
           36         <hr class="hidden" />
           37         <main id="mainwrap">
           38                 <div id="main">
           39                         <article>
           40 <header>
           41         <h1><a href="">mg: port of OpenBSD mg version to Linux</a></h1>
           42         <p><strong>Last modification on </strong> <time datetime="2014-11-23">2014-11-23</time></p>
           43 </header>
           44 
           45 <p>
           46 <strong>
           47 NOTE: this fork is out-dated and is not maintained currently!<br/>
           48 Please use the portable mg:
           49 <a href="https://homepage.boetes.org/software/mg/">https://homepage.boetes.org/software/mg/</a>
           50 </strong>
           51 </p>
           52 
           53 
           54 <p>
           55         This is the port of the mg editor (OpenBSD version) to Linux. It should
           56         be possible to compile it with atleast musl libc and glibc.
           57 </p>
           58 
           59 
           60 <h2 id="clone"><a href="#clone">Clone</a></h2>
           61 <pre><code>git clone git://git.codemadness.org/mg</code></pre>
           62 
           63 
           64 <h2 id="changes"><a href="#changes">Changes vs upstream</a></h2>
           65 <p>
           66         I tried to keep the changes minimal to make it easy to synchronize with
           67         upstream changes and to not introduce new bugs. However there were some
           68         changes that needed to be made because of differences between OpenBSD and
           69         Linux and these are:
           70 </p>
           71 <ul>
           72         <li>Add OpenBSD libc / libutil functions: strtonum, reallocarray, strlcpy, strlcat,
           73             fparseln, arc4random(hack)</li>
           74         <li>Timespec changes: for struct stat</li>
           75         <li>Ignore REG_STARTEND for compatibility with Musl. At the time of writing it
           76             doesn't support the REG_STARTEND flag for regexec() (non-POSIX).
           77             NOTE: there are differences in glibc's REG_STARTEND implementation compared to
           78             OpenBSD aswell. So expect it to behave a bit differently.</li>
           79         <li>Convenience: suckless.org-style config.mk and Makefile.</li>
           80 </ul>
           81 
           82                         </article>
           83                 </div>
           84         </main>
           85 </body>
           86 </html>