<feed xmlns='http://www.w3.org/2005/Atom'>
<title>teythoon/hurd.git/libps, 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-02-28T09:40:31Z</updated>
<entry>
<title>Fix use-after-free in libps.</title>
<updated>2016-02-28T09:40:31Z</updated>
<author>
<name>Esa Peuha</name>
<email>esa.peuha@gmail.com</email>
</author>
<published>2016-02-27T07:59:13Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=9019d6fc527882b8e09ca210e997b43a7b77c70f'/>
<id>urn:sha1:9019d6fc527882b8e09ca210e997b43a7b77c70f</id>
<content type='text'>
* libps/fmt.c (_fmt_create): Free new_fmt-&gt;src before new_fmt
if reallocating fields fails.
</content>
</entry>
<entry>
<title>Fix ps -o %r infinite loop</title>
<updated>2015-06-05T17:48:32Z</updated>
<author>
<name>Esa Peuha</name>
<email>esa.peuha@gmail.com</email>
</author>
<published>2015-06-05T14:58:28Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=f5bc22b18e3c3042dbf7e4ecc38e046b13a2a992'/>
<id>urn:sha1:f5bc22b18e3c3042dbf7e4ecc38e046b13a2a992</id>
<content type='text'>
* libps/fmt.c (_fmt_create): When nothing at all was recognized, break out
instead of looping.
</content>
</entry>
<entry>
<title>lib*: Fix typos in comments (found by codespell)</title>
<updated>2015-01-03T12:07:30Z</updated>
<author>
<name>Stefan Weil</name>
<email>sw@weilnetz.de</email>
</author>
<published>2015-01-03T09:16:10Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=8f5e94f48e7668e3c5dcaa1cde1b8f591c05bb58'/>
<id>urn:sha1:8f5e94f48e7668e3c5dcaa1cde1b8f591c05bb58</id>
<content type='text'>
Signed-off-by: Stefan Weil &lt;sw@weilnetz.de&gt;
</content>
</entry>
<entry>
<title>Replace `bzero' with `memset'</title>
<updated>2014-12-10T12:45:05Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2014-12-01T22:55:25Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=0a4ada8d40fb687a659161ff7e0d1d0994264402'/>
<id>urn:sha1:0a4ada8d40fb687a659161ff7e0d1d0994264402</id>
<content type='text'>
For reference, this patch was created using the following semantic
patch, and then manually applying the change in all functions
containing nested functions, as those are not supported by Coccinelle.

@@
expression A, B;
@@

- bzero (A, B)
+ memset (A, 0, B)

* auth/auth.c: Replace `bzero' with `memset'.
* boot/boot.c: Likewise.
* defpager/defpager.c: Likewise.
* exec/exec.c: Likewise.  Also, drop `safe_bzero' and just use
`hurd_safe_memset' directly.
* ext2fs/ext2fs.c: Likewise.
* ext2fs/getblk.c: Likewise.
* ext2fs/pager.c: Likewise.
* fatfs/pager.c: Likewise.
* ftpfs/dir.c: Likewise.
* ftpfs/netfs.c: Likewise.
* isofs/inode.c: Likewise.
* isofs/pager.c: Likewise.
* libdiskfs/file-getfh.c: Likewise.
* libdiskfs/file-statfs.c: Likewise.
* libfshelp/fetch-root.c: Likewise.
* libfshelp/start-translator.c: Likewise.
* libftpconn/create.c: Likewise.
* libftpconn/open.c: Likewise.
* libftpconn/unix.c: Likewise.
* libpipe/pipe.c: Likewise.
* libps/procstat.c: Likewise.
* libps/spec.c: Likewise.
* libshouldbeinlibc/cacheq.c: Likewise.
* libshouldbeinlibc/idvec.c: Likewise.
* libshouldbeinlibc/ugids.c: Likewise.
* libstore/argp.c: Likewise.
* libstore/enc.c: Likewise.
* libstore/kids.c: Likewise.
* libthreads/alpha/thread.c: Likewise.
* libtreefs/fsys.c: Likewise.
* libtrivfs/file-statfs.c: Likewise.
* mach-defpager/default_pager.c: Likewise.
* pfinet/glue-include/asm/uaccess.h: Likewise.
* pfinet/io-ops.c: Likewise.
* pfinet/options.c: Likewise.
* pfinet/socket.c: Likewise.
* pfinet/timer-emul.c: Likewise.
* pflocal/io.c: Likewise.
* startup/startup.c: Likewise.
* storeio/storeio.c: Likewise.
* sutils/fstab.c: Likewise.
* usermux/usermux.c: Likewise.
* utils/fakeauth.c: Likewise.
* utils/frobauth.c: Likewise.
* utils/login.c: Likewise.
* utils/x.c: Likewise.
</content>
</entry>
<entry>
<title>Fix proc_getprocinfo calls</title>
<updated>2014-11-02T15:00:03Z</updated>
<author>
<name>Samuel Thibault</name>
<email>samuel.thibault@ens-lyon.org</email>
</author>
<published>2014-11-02T15:00:03Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=610c428cf8c9340d955c79cd2daca3ed8657f2b1'/>
<id>urn:sha1:610c428cf8c9340d955c79cd2daca3ed8657f2b1</id>
<content type='text'>
The deallocation also needs to be fixed.
Also, fetch_procinfo already took care of the conversion.

* exec/elfcore.c (dump_core): Fix procinfoCnt taken from
proc_getprocinfo.
* utils/login.c (check_owned): Likewise.
* libps/procstat.c (merge_procinfo): Remove conversion between bytes and
int, already handled by fetch_procinfo.
</content>
</entry>
<entry>
<title>Fix proc_getprocinfo calls</title>
<updated>2014-11-02T11:37:29Z</updated>
<author>
<name>Samuel Thibault</name>
<email>samuel.thibault@ens-lyon.org</email>
</author>
<published>2014-11-02T11:29:27Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=673603dae49fd06de782780a38e2914ed8cd8777'/>
<id>urn:sha1:673603dae49fd06de782780a38e2914ed8cd8777</id>
<content type='text'>
The procinfoCnt argument is the number of elements of the procinfo_t array,
not its size in bytes.

* exec/elfcore.c (dump_core): Fix procinfoCnt given to proc_getprocinfo.
* libps/procstat.c (merge_procinfo): Likewise.
* utils/login.c (check_owned): Likewise.
</content>
</entry>
<entry>
<title>libps: fix task/thread times fetching</title>
<updated>2014-01-16T22:59:00Z</updated>
<author>
<name>Richard Braun</name>
<email>rbraun@sceen.net</email>
</author>
<published>2014-01-16T22:59:00Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=9bebcd38f42da289a3eaf9f473a9529f8d3c4664'/>
<id>urn:sha1:9bebcd38f42da289a3eaf9f473a9529f8d3c4664</id>
<content type='text'>
Introduce PSTAT_TIMES to force the retrieval of both PSTAT_TASK_BASIC
and PSTAT_THREAD_BASIC. Task basic info contain the user and system
times of terminated threads which the code wrongly assumes is always
present along with process info.

* libps/procstat.c (add_preconditions): Set both PSTAT_TASK_BASIC and
PSTAT_THREAD_BASIC as preconditions for PSTAT_TIMES.
(summarize_thread_basic_info): Add terminated threads times only if
task basic info are available.
(set_procinfo_flags): Provide summarize_thread_basic_info with flags of
available info.
(proc_stat_set_flags): Set PSTAT_TIMES as available if it was needed and
any of PSTAT_TASK_BASIC or PSTAT_THREAD_BASIC could be fetched.
* libps/ps.h (PSTAT_TIMES): New macro.
* libps/spec.c (ps_get_usr_time): Indicate the getter needs PSTAT_TIMES
instead of PSTAT_THREAD_BASIC.
(ps_sys_time_getter): Likewise.
(ps_tot_time_getter): Likewise.
</content>
</entry>
<entry>
<title>libps: fix process user and system times</title>
<updated>2013-12-30T14:08:29Z</updated>
<author>
<name>Richard Braun</name>
<email>rbraun@sceen.net</email>
</author>
<published>2013-12-30T14:08:29Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=19689c97a05e0a10691b671c4c37ca0bf51bdd2b'/>
<id>urn:sha1:19689c97a05e0a10691b671c4c37ca0bf51bdd2b</id>
<content type='text'>
Include the run time of terminated threads in the user and system times
of processes.
</content>
</entry>
<entry>
<title>libps: fix the length computation in fprint_frac_value</title>
<updated>2013-11-21T09:27:28Z</updated>
<author>
<name>Justus Winter</name>
<email>4winter@informatik.uni-hamburg.de</email>
</author>
<published>2013-11-20T10:35:14Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=edd9912ffb4a44068aae2ec21f0449d3d53616a3'/>
<id>urn:sha1:edd9912ffb4a44068aae2ec21f0449d3d53616a3</id>
<content type='text'>
Found using the Clang Static Analyzer.

* libps/spec.c (fprint_frac_value): Fix computation of value_len.
</content>
</entry>
<entry>
<title>Fix gcc warning:</title>
<updated>2013-09-21T10:47:16Z</updated>
<author>
<name>Samuel Thibault</name>
<email>samuel.thibault@ens-lyon.org</email>
</author>
<published>2013-09-21T10:47:16Z</published>
<link rel='alternate' type='text/html' href='https://darnassus.sceen.net/cgit/teythoon/hurd.git/commit/?id=a42e96e845840ff40c9c19b042743091cae0ca49'/>
<id>urn:sha1:a42e96e845840ff40c9c19b042743091cae0ca49</id>
<content type='text'>
* libps/write.c (noise_write): Make `t` parameter a char * instead of
unsigned char *.
</content>
</entry>
</feed>
