<feed xmlns='http://www.w3.org/2005/Atom'>
<title>teythoon/hurd.git/include, branch master</title>
<subtitle>Personal Hurd development repository</subtitle>
<id>https://darnassus.sceen.net/cgit/teythoon/hurd.git/atom?h=master</id>
<link rel='self' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/'/>
<updated>2016-05-23T09:29:42Z</updated>
<entry>
<title>Make &lt;sys/procfs.h&gt; self-contained again</title>
<updated>2016-05-23T09:29:42Z</updated>
<author>
<name>Thomas Schwinge</name>
<email>thomas@codesourcery.com</email>
</author>
<published>2016-05-23T09:23:57Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=305e83c42624c8cf84452d5d0fa7669e2af6f997'/>
<id>urn:sha1:305e83c42624c8cf84452d5d0fa7669e2af6f997</id>
<content type='text'>
Commit e914bfc3d6e5ddf6f8c5e93a4334873a48a24ddf made &lt;sys/procfs.h&gt;
Autoconf/configure tests change as follows:

    checking sys/procfs.h usability... [-yes-]{+no+}
    checking sys/procfs.h presence... yes
    {+configure: WARNING: sys/procfs.h: present but cannot be compiled+}
    {+configure: WARNING: sys/procfs.h:     check for missing prerequisite headers?+}
    {+configure: WARNING: sys/procfs.h: see the Autoconf documentation+}
    {+configure: WARNING: sys/procfs.h:     section "Present But Cannot Be Compiled"+}
    {+configure: WARNING: sys/procfs.h: proceeding with the compiler's result+}
    checking for sys/procfs.h...[-yes-]{+no+}
    [-checking for prstatus_t in sys/procfs.h... no-]
    [-checking for prstatus32_t in sys/procfs.h... no-]
    [-checking for prstatus_t.pr_who in sys/procfs.h... no-]
    [-checking for prstatus32_t.pr_who in sys/procfs.h... no-]
    [-checking for pstatus_t in sys/procfs.h... yes-]
    [-checking for pxstatus_t in sys/procfs.h... no-]
    [-checking for pstatus32_t in sys/procfs.h... no-]
    [-checking for prpsinfo_t in sys/procfs.h... no-]
    [-checking for prpsinfo_t.pr_pid in sys/procfs.h... no-]
    [-checking for prpsinfo32_t in sys/procfs.h... no-]
    [-checking for prpsinfo32_t.pr_pid in sys/procfs.h... no-]
    [-checking for psinfo_t in sys/procfs.h... yes-]
    [-checking for psinfo_t.pr_pid in sys/procfs.h... yes-]
    [-checking for psinfo32_t in sys/procfs.h... no-]
    [-checking for psinfo32_t.pr_pid in sys/procfs.h... no-]
    [-checking for lwpstatus_t in sys/procfs.h... yes-]
    [-checking for lwpxstatus_t in sys/procfs.h... no-]
    [-checking for lwpstatus_t.pr_context in sys/procfs.h... no-]
    [-checking for lwpstatus_t.pr_reg in sys/procfs.h... yes-]
    [-checking for lwpstatus_t.pr_fpreg in sys/procfs.h... yes-]
    [-checking for win32_pstatus_t in sys/procfs.h... no-]

That is because of:

    $ echo '#include &lt;sys/procfs.h&gt;' | gcc -x c - -o /dev/null -S
    In file included from &lt;stdin&gt;:1:0:
    /usr/include/sys/procfs.h:66:3: error: unknown type name ‘vm_address_t’
       vm_address_t pr_argv;  /* Original argument vector address.  */
       ^
    /usr/include/sys/procfs.h:67:3: error: unknown type name ‘vm_address_t’
       vm_address_t pr_envp;  /* Original environment vector address.  */
       ^

* include/sys/procfs.h: Include &lt;mach/std_types.h&gt; to make file self-contained
again.
</content>
</entry>
<entry>
<title>fix compiler warnings in hurd/procfs</title>
<updated>2015-12-29T22:18:19Z</updated>
<author>
<name>Flavio Cruz</name>
<email>flaviocruz@gmail.com</email>
</author>
<published>2015-12-29T22:11:26Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=e914bfc3d6e5ddf6f8c5e93a4334873a48a24ddf'/>
<id>urn:sha1:e914bfc3d6e5ddf6f8c5e93a4334873a48a24ddf</id>
<content type='text'>
procfs: Fix compiler warnings.

* include/sys/procfs.h: Change uintptr_t to vm_address_t.
* procfs/process.c: Fix format strings.
* procfs/rootdir.c: Add missing casts.
</content>
</entry>
<entry>
<title>include: don't install nonexistent refcount.h</title>
<updated>2014-12-09T01:00:51Z</updated>
<author>
<name>David Michael</name>
<email>fedora.dm0@gmail.com</email>
</author>
<published>2014-12-08T04:21:16Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=6d9b349c4054b5998eea421823f97fb801ff8d75'/>
<id>urn:sha1:6d9b349c4054b5998eea421823f97fb801ff8d75</id>
<content type='text'>
* include/Makefile (installhdrs): Remove refcount.h.
</content>
</entry>
<entry>
<title>libshouldbeinlibc: move the reference counting primitives here</title>
<updated>2014-12-01T10:28:15Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2014-11-23T18:09:51Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=0d3b80f04a1caee51b9995c9626838f85295bb06'/>
<id>urn:sha1:0d3b80f04a1caee51b9995c9626838f85295bb06</id>
<content type='text'>
Declare all functions `extern inline' instead of `static inline'.
This allows us to use them in functions declared as `extern inline'.

* libshouldbeinlibc/refcount.h: Move here, and declare all functions
`extern inline'.
* libshouldbeinlibc/refcount.c: And define the functions here.
* libshouldbeinlibc/Makefile: Add `refcount.{c,h}'.
</content>
</entry>
<entry>
<title>Add proc_set_init_task, make runsystem pid 1</title>
<updated>2014-11-21T04:48:19Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2013-09-18T13:59:31Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=8d16db0cc28b2d911aee918d5c3582ad29ddfeed'/>
<id>urn:sha1:8d16db0cc28b2d911aee918d5c3582ad29ddfeed</id>
<content type='text'>
* hurd/process.defs (proc_set_init_task): New procedure.
* hurd/process_reply.defs (proc_set_init_task): Likewise.
* hurd/process_request.defs (proc_set_init_task): Likewise.
* include/pids.h: Add HURD_PID_INIT as 1, adjust others accordingly.
* init/init.c (start_child): Register the child task.
* proc/proc.h (init_proc): New variable.
(create_startup_proc): Rename to create_init_proc.
* proc/main.c (main): Create placeholder proc object for pid 1.
* proc/mgt.c: Use init_proc instead of startup_proc, as the former is
the new root of the process tree.
(create_startup_proc): Rename to create_init_proc.
(S_proc_set_init_task): New function.
* doc/hurd.texi (Server Bootstrap): Update accordingly.
* procfs/main.c: Do not hard-code kernel pid, use pids.h instead.
</content>
</entry>
<entry>
<title>include: detect use-after-free errors using the reference counts</title>
<updated>2014-08-31T17:06:56Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2014-06-20T12:27:59Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=5f1011ac0ad676d1e7eaba14d1384180e98fb93e'/>
<id>urn:sha1:5f1011ac0ad676d1e7eaba14d1384180e98fb93e</id>
<content type='text'>
* include/refcount.h (refcount_init): There must be at least one
reference at initialization time.
(refcounts_init): Likewise.
(refcount_unsafe_ref): New function retaining the previous
functionality of refcount_ref.  It is occasionally useful to raise the
reference count again after it dropped to zero.
(refcounts_unsafe_ref): Likewise.
(refcounts_unsafe_weak_ref): Likewise.
(refcount_ref): Detect use-after-free errors.
(refcounts_ref): Likewise.
(refcounts_ref_weak): Likewise.
* libtrivfs/protid-clean.c (trivfs_clean_protid): Use refcount_unsafe_ref.
</content>
</entry>
<entry>
<title>include: use unsigned literal in combination with binary not</title>
<updated>2014-06-06T09:58:22Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2014-06-06T08:20:47Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=027bc17eca80bd379663e645aa9a7c59573bf0de'/>
<id>urn:sha1:027bc17eca80bd379663e645aa9a7c59573bf0de</id>
<content type='text'>
* include/refcount.h (refcounts_promote): Use ~0U.
(refcounts_demote): Likewise.
</content>
</entry>
<entry>
<title>include: install refcount.h</title>
<updated>2014-05-22T18:08:32Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2014-05-22T18:04:33Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=b793108b09138edf0a963d9e3107eb400ee27011'/>
<id>urn:sha1:b793108b09138edf0a963d9e3107eb400ee27011</id>
<content type='text'>
* include/Makefile (installhdrs): Add refcount.h.
</content>
</entry>
<entry>
<title>include: add lock-less reference counting primitives</title>
<updated>2014-05-22T05:53:38Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2014-05-06T17:52:04Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=e30e04d4f5cef2af6400847b5e102b5877372f27'/>
<id>urn:sha1:e30e04d4f5cef2af6400847b5e102b5877372f27</id>
<content type='text'>
* include/refcount.h: New file.
</content>
</entry>
<entry>
<title>include: make /hurd/proc PID 3</title>
<updated>2013-09-21T14:01:49Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2013-09-16T10:20:26Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=f73b0c1a45a7c73fcc034f7fd34ae906dd51b4ad'/>
<id>urn:sha1:f73b0c1a45a7c73fcc034f7fd34ae906dd51b4ad</id>
<content type='text'>
Using PID 0 is problematic for various reasons. Make /hurd/proc run as
PID 3 instead.

* include/pids.h: Make /hurd/proc PID 3.
</content>
</entry>
</feed>
