faq.using.chmod faq.programming.adjusting-heap

This commit is contained in:
Joshua Daniel Franklin 2006-04-05 04:09:55 +00:00
parent 8ca521afe9
commit 6804a9d4e1
3 changed files with 19 additions and 19 deletions

View File

@ -1,3 +1,10 @@
2006-04-04 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* faq-programming.xml (faq.programming.adjusting-heap):
Clarify argument parameter sizes.
* faq-using.xml (faq.using.chmod):
Improve chmod FAQ.
2006-03-18 Christopher Faylor <cgf@timesys.com>
* cygwinenv.sgml: Rename fork_retry to proc_retry since it has turned

View File

@ -516,10 +516,10 @@ incompatibilities. Please send us patches if you do this work!
<para>If you need to change the maximum amount of memory available to Cygwin, see
<ulink url="http://cygwin.com/cygwin-ug-net/setup-maxmem.html">http://cygwin.com/cygwin-ug-net/setup-maxmem.html</ulink>. Otherwise,
just pass heap/stack linker arguments to gcc. To create foo.exe with
a heap size of 1024 and a stack size of 4096, you would invoke
a heap size of 200MB and a stack size of 8MB, you would invoke
gcc as:
</para>
<para><literal>gcc -Wl,--heap,1024,--stack,4096 -o foo foo.c</literal>
<para><literal>gcc -Wl,--heap,200000000,--stack,8000000 -o foo foo.c</literal>
</para>
</answer></qandaentry>

View File

@ -282,24 +282,17 @@ must create the whatis database. Just run the command
<question><para>Why doesn't chmod work?</para></question>
<answer>
<para><literal>ntsec</literal> will allow UNIX permissions in Windows NT on NTFS file
systems. This is on by default (a recent change).
<para>The most common case is that your <literal>/etc/passwd</literal>
or <literal>/etc/group</literal> files are not properly set up. If
<literal>ls -l</literal> shows a group of <literal>mkpasswd</literal>
or <literal>mkgroup</literal>, you need to run one or both of those
commands.
</para>
<para><literal>ntea</literal> works on NTFS <emphasis>and</emphasis> FAT but it creates a huge,
<emphasis role='bold'>undeletable</emphasis> file on FAT filesystems.
</para>
<para>(The <literal>ntsec</literal> and <literal>ntea</literal> settings are values for the
<literal>CYGWIN</literal> environment variable. See the Cygwin User's Guide at
<ulink url="http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html">http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html</ulink> for more
information on this variable and its settings.)
</para>
<para>There is no solution at all for Windows 9x.
</para>
<para>If you have an application that requires a certain permission mode on a
file, you may be able to work around this requirement by modifying the
application's source code. For a hint, based on work done by Corinna
Vinschen for OpenSSH, see this message from the cygwin mailing list:
<ulink url="http://cygwin.com/ml/cygwin/2000-11/msg01176.html">http://cygwin.com/ml/cygwin/2000-11/msg01176.html</ulink>.
<para>For other cases, understand that Cygwin attempts to show UNIX
permissions based on the security features of Windows, so the Windows
ACLs are likely the source of your problem. See the Cygwin User's
Guide at <ulink url="http://cygwin.com/cygwin-ug-net/ntsec.html" />
for more information on how Cygwin maps Windows permissions.
</para>
</answer></qandaentry>