Changeset b84c04e in rtems-libbsd


Ignore:
Timestamp:
Nov 6, 2013, 8:11:47 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 68e79b6d187fe09b0a6f3f1d22c69b4121a3f76e, freebsd-9.3, 33bfaee89aa71d2252eb48d6b9a9ec17183faced
Children:
c4c34f3
Parents:
d48955b
git-author:
Sebastian Huber <sebastian.huber@…> (11/06/13 08:11:47)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/11/13 09:08:05)
Message:

Move content to <machine/rtems-bsd-user-space.h>

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • freebsd/lib/libc/db/db/db.c

    rd48955b rb84c04e  
    5252
    5353#define DB_FLAGS        (DB_LOCK | DB_SHMEM | DB_TXN)
    54 #ifdef __rtems__
    55 /* FIXME: Add lock capabilities to RTEMS file system */
    56 #define O_EXLOCK 0
    57 #define O_SHLOCK 0
    58 /* FIXME: Add no symlink follow capabilities to RTEMS file system */
    59 #define O_NOFOLLOW 0
    60 #endif /* __rtems__ */
    6154#define USE_OPEN_FLAGS                                                  \
    6255        (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK |        \
  • freebsd/sbin/dhclient/dhclient.c

    rd48955b rb84c04e  
    385385
    386386        if (path_dhclient_pidfile == NULL) {
    387 #ifdef __rtems__
    388 #define _PATH_VARRUN "/var/run"
    389 #endif /* __rtems__ */
    390387                asprintf(&path_dhclient_pidfile,
    391388                    "%sdhclient.%s.pid", _PATH_VARRUN, *argv);
     
    465462        privfd = pipe_fd[1];
    466463
    467 #ifdef __rtems__
    468 /* FIXME: Add O_EXLOCK capabilities to RTEMS file system */
    469 #define O_EXLOCK 0
    470 #endif /* __rtems__ */
    471464        if ((fd = open(path_dhclient_db, O_RDONLY|O_EXLOCK|O_CREAT, 0)) == -1)
    472465                error("can't open and lock %s: %m", path_dhclient_db);
  • rtemsbsd/include/machine/rtems-bsd-user-space.h

    rd48955b rb84c04e  
    4141#define _RTEMS_BSD_MACHINE_RTEMS_BSD_USER_SPACE_H_
    4242
     43#include <sys/cdefs.h>
     44
     45#include <stdio.h>
     46
     47/* FIXME: Add lock capabilities to RTEMS file system */
     48#define O_EXLOCK 0
     49#define O_SHLOCK 0
     50
     51/* FIXME: Add no symlink follow capabilities to RTEMS file system */
     52#define O_NOFOLLOW 0
     53
     54#define _PATH_VARRUN "/var/run"
     55
     56__BEGIN_DECLS
     57
     58/* FIXME: Add to Newlib */
     59long long strtonum(const char *numstr, long long minval, long long maxval,
     60    const char **errstrp);
     61
     62/* FIXME: Add to Newlib */
     63char *fgetln(FILE *fp, size_t *lenp);
     64
     65__END_DECLS
     66
    4367#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_USER_SPACE_H_ */
Note: See TracChangeset for help on using the changeset viewer.