<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/win32, branch realpath</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=realpath</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=realpath'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2018-06-09T08:51:46+00:00</updated>
<entry>
<title>realpath: implement realpath(3) and enable realpath(1)</title>
<updated>2018-06-09T08:51:46+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-06-09T08:51:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=83f299376147a26436bc668ebcf0966a05010951'/>
<id>urn:sha1:83f299376147a26436bc668ebcf0966a05010951</id>
<content type='text'>
The implementation of realpath(3) is based on code by Stuart Dootson
(studoot on GitHub).
</content>
</entry>
<entry>
<title>win32: remove some code from procps_scan</title>
<updated>2018-04-10T19:28:39+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-10T19:28:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=942f872781630147d3f05e08ee3998679e7e892e'/>
<id>urn:sha1:942f872781630147d3f05e08ee3998679e7e892e</id>
<content type='text'>
Now that we're calling memset to clear data for each process it's
no longer necessary to zero the process times by hand.
</content>
</entry>
<entry>
<title>win32: don't leak pipe data structures</title>
<updated>2018-04-07T15:07:26+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-07T15:07:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5b725727b90f1e5b4dbf1c304cfe3fa534767f15'/>
<id>urn:sha1:5b725727b90f1e5b4dbf1c304cfe3fa534767f15</id>
<content type='text'>
popen uses an array of pipe_data structures to record information
that's later used by pclose.  pclose releases the structure after
use.

The lower-level pipe function mingw_popen_fd was also using this
array of structures but didn't provide any way to release them.

Avoid this leak by letting mingw_popen_fd use a local structure
instead.
</content>
</entry>
<entry>
<title>ps: indicate forkshell processes in listing</title>
<updated>2018-04-05T19:41:06+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-05T19:41:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=eda6f28c793db7d5a61ec4d8d801dfcb6def17b7'/>
<id>urn:sha1:eda6f28c793db7d5a61ec4d8d801dfcb6def17b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>win32: exclude termios code</title>
<updated>2018-04-05T19:31:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-05T19:31:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f7c592f6d832602a628008d598a3aa130d89de4d'/>
<id>urn:sha1:f7c592f6d832602a628008d598a3aa130d89de4d</id>
<content type='text'>
The code to manipulate terminal settings serves no purpose in WIN32.
Use conditional compilation to exclude much of it.
</content>
</entry>
<entry>
<title>win32: ensure timeout works in read_key</title>
<updated>2018-04-05T14:11:07+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-05T14:11:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=91ee3425d1d39a86eb0a3460d9f14e57c24e0b83'/>
<id>urn:sha1:91ee3425d1d39a86eb0a3460d9f14e57c24e0b83</id>
<content type='text'>
Move the wait for timeout into the while loop of read_key.  Otherwise
the timeout won't be checked after any event that doesn't result in
a value being returned.
</content>
</entry>
<entry>
<title>ps: obtain applet names from other BusyBox processes</title>
<updated>2018-04-04T18:55:09+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-04T18:55:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=33a914da6bba61e27aee82675276bf1dccc52966'/>
<id>urn:sha1:33a914da6bba61e27aee82675276bf1dccc52966</id>
<content type='text'>
Remove the code which passed applet names to child processes using
environment variables.  This only allowed ps to display names for
its ancestors.

Instead attempt to read applet names from the memory of unrelated
processes.

The Microsoft documentation alone wasn't enough to figure out how
to do this.  Additional hints from:

  https://stackoverflow.com/questions/4298331/exe-or-dll-image-base-address
  https://stackoverflow.com/questions/14467229/get-base-address-of-process
</content>
</entry>
<entry>
<title>win32: improvements to get_terminal_width_height</title>
<updated>2018-04-03T11:29:01+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-03T10:13:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=32f8569a99b948e810266608dd6e3bf9de611df5'/>
<id>urn:sha1:32f8569a99b948e810266608dd6e3bf9de611df5</id>
<content type='text'>
- move winansi_get_terminal_width_height from winansi.c to ioctl.c,
  the only caller;
- check both stdout and stderr for a connection to a console;
- omit unnecessary code in get_terminal_width_height (because the
  WIN32 implementation ignores the file descriptor).
</content>
</entry>
<entry>
<title>win32: simplify isatty replacement</title>
<updated>2018-04-03T11:29:01+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-04-03T09:41:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=4d8668e4b6bac0d7902dd677d540c700817b094b'/>
<id>urn:sha1:4d8668e4b6bac0d7902dd677d540c700817b094b</id>
<content type='text'>
Don't treat input and output file descriptors differently: if we
aren't connected to a console GetConsoleMode will fail for either.
</content>
</entry>
<entry>
<title>win32: return correct exit status from waitpid</title>
<updated>2018-03-29T15:24:27+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-03-29T15:24:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=aaddde61e3009973f6e6de08ae42e1bb9accd3eb'/>
<id>urn:sha1:aaddde61e3009973f6e6de08ae42e1bb9accd3eb</id>
<content type='text'>
The exit status from _cwait wasn't being correctly returned.  This
resulted, for example, in the exit status of xargs being incorrect.
Running this:

   $ ls | xargs ls

in a directory containing filenames with spaces should cause 'ls' to
fail and 'xargs' to return an exit status of 123.
</content>
</entry>
</feed>
