diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-19 15:05:54 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-08-19 15:05:54 +0000 |
commit | 1986324e55049475e09f7cf1fc446c94b34aeebc (patch) | |
tree | a1e6b52cde23d110e910ed87cb75b3d4e3d93658 /etc | |
parent | 20cb2f47f3e6e9591ce0a4de095f07a76f8f31c3 (diff) | |
download | ATCD-1986324e55049475e09f7cf1fc446c94b34aeebc.tar.gz |
added guidelines to check for success of an attempted open of an
existing file, and to not release copyrighted, etc., material with ACE/TAO.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ACE-guidelines.html | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/etc/ACE-guidelines.html b/etc/ACE-guidelines.html index 2983cbd659f..8475c98fc90 100644 --- a/etc/ACE-guidelines.html +++ b/etc/ACE-guidelines.html @@ -85,7 +85,8 @@ to Graham for providing the OSE tools!<p> To insert that string at the top of a file: <pre> - perl -pi -e 'if (! $o) {printf "// \$<!-- -->Id\$\n\n";}; $o = 1;' <em>file</em> + perl -pi -e \ + 'if (! $o) {printf "// \$<!-- -->Id\$\n\n";}; $o = 1;' <em>file</em> </pre><p> <li>Comments, especially in header files, must follow the @@ -268,13 +269,15 @@ to Graham for providing the OSE tools!<p> ssize_t n_bytes; // Send multicast of one byte, enough to wake up server. - if ((n_bytes = multicast.send ((char *) &reply_port, sizeof reply_port)) == -1) + if ((n_bytes = multicast.send ((char *) &reply_port, + sizeof reply_port)) == -1) </pre> Write it like this: <pre> - ssize_t n_bytes = multicast.send ((char *) &reply_port, sizeof reply_port) + ssize_t n_bytes = multicast.send ((char *) &reply_port, + sizeof reply_port) // Send multicast of one byte, enough to wake up server. if (n_bytes == -1) @@ -363,6 +366,8 @@ to Graham for providing the OSE tools!<p> and <strong><code>ACE_OS::scanf/fprintf ()</code></strong> for file I/O. Avoid using iostreams because of implementation differences across platforms.<p> + <li>After attempting to open an existing file, always check for success. + Take appropriate action if the open failed.<p> </ul> <li><strong>UNICODE conformity</strong><p> @@ -474,6 +479,18 @@ to Graham for providing the OSE tools!<p> <hr> +<h3><a href="http://www.cs.wustl.edu/~schmidt/ACE-overview.html">Other + ACE</a> and + <a href="http://www.cs.wustl.edu/~schmidt/TAO-overview.html">TAO</a> + Guidelines</h3> +<ul> + <li>Never add copyrighted, confidential, or otherwise restricted + code to the ACE or TAO distributions without written permission + from the owner.<p> +</ul> + + +<hr> <h3><a href="http://www.cs.wustl.edu/~levine/CVS.html">CVS</a> Usage Guidelines</h3> <ul> @@ -511,9 +528,10 @@ to Graham for providing the OSE tools!<p> <h3><a href="http://www.cs.wustl.edu/~schmidt/rules.html">ACE Design Rules</a></h3> + <hr> <!-- hhmts start --> -Last modified: Mon Aug 17 14:51:25 CDT 1998 +Last modified: Wed Aug 19 10:05:15 CDT 1998 <!-- hhmts end --> </body> |