Changeset a57dfa0 in rtems-libbsd


Ignore:
Timestamp:
07/15/15 07:57:45 (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
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.