Changeset a57dfa0 in rtems-libbsd for libbsd.txt


Ignore:
Timestamp:
Jul 15, 2015, 7:57:45 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
6201756
Parents:
c6e5395
Message:

libbsd.txt: Clarify rules to modify FreeBSD code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libbsd.txt

    rc6e5395 ra57dfa0  
    435435=== Rules for Modifying FreeBSD Source
    436436
    437 Only add lines.  Subtract code by added `#ifndef __rtems__`.  This makes
    438 merging easier in the future.  For example:
     437Only add lines.  If your patch contains lines starting with a '-', then this is
     438wrong.  Subtract code by added `#ifndef __rtems__`.  This makes merging easier
     439in the future.  For example:
    439440
    440441-------------------------------------------------------------------------------
     
    480481
    481482Add nothing (even blank lines) before or after the `__rtems__` guards.  Always
    482 include a `__rtems__` in the guards to make searches easy.
     483include a `__rtems__` in the guards to make searches easy, so use
     484
     485* `#ifndef __rtems__`,
     486* `#ifdef __rtems__`,
     487* `#else /* __rtems__ */`, and
     488* `#endif /* __rtems__ */`.
     489
     490For new code use
     491http://www.freebsd.org/cgi/man.cgi?query=style&apropos=0&sektion=9&manpath=FreeBSD+9.2-RELEASE&arch=default&format=html[STYLE(9)].
     492Do not format original FreeBSD code.
    483493
    484494== BSD Library Source
Note: See TracChangeset for help on using the changeset viewer.