Changeset f3ffa87 in rtems-libbsd


Ignore:
Timestamp:
Oct 30, 2013, 10:18:03 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
4868713
Parents:
3718816
git-author:
Sebastian Huber <sebastian.huber@…> (10/30/13 10:18:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:53)
Message:

Avoid use of "maxfiles" and "maxfilesperproc"

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/uipc_socket.c

    r3718816 rf3ffa87  
    224224                if (newmaxsockets > maxsockets) {
    225225                        maxsockets = newmaxsockets;
     226#ifndef __rtems__
    226227                        if (maxsockets > ((maxfiles / 4) * 3)) {
    227228                                maxfiles = (maxsockets * 5) / 4;
    228229                                maxfilesperproc = (maxfiles * 9) / 10;
    229230                        }
     231#endif /* __rtems__ */
    230232                        EVENTHANDLER_INVOKE(maxsockets_change);
    231233                } else
     
    248250
    249251        TUNABLE_INT_FETCH("kern.ipc.maxsockets", &maxsockets);
     252#ifndef __rtems__
    250253        maxsockets = imax(maxsockets, imax(maxfiles, nmbclusters));
     254#else /* __rtems__ */
     255        maxsockets = imax(maxsockets, nmbclusters);
     256#endif /* __rtems__ */
    251257}
    252258SYSINIT(param, SI_SUB_TUNABLES, SI_ORDER_ANY, init_maxsockets, NULL);
  • rtemsbsd/rtems/rtems-bsd-support.c

    r3718816 rf3ffa87  
    5252int     ngroups_max = NGROUPS_MAX; /* XXX */
    5353
    54 int     maxfiles = 7;                  /* XXX sys. wide open files limit */
    55 int     maxfilesperproc = 27;          /* XXX per-proc open files limit */
    5654uintptr_t dpcpu_off[MAXCPU];
    5755
Note: See TracChangeset for help on using the changeset viewer.