~mirabilos/klibc/master

« back to all changes in this revision

Viewing changes to usr/klibc/brk.c

  • Committer: Ben Hutchings
  • Date: 2024-10-02 00:07:27 UTC
  • Revision ID: git-v1:60d3d584e0ed7c09f544b753f764e493b940a6a8
[klibc] Remove unused no-MMU support

There is some conditional logic to handle no-MMU architectures, but no
such architectures are defined.  We are now having to override the
automatic detection for each new architecture because it only
checks for fork() and not clone().

Since this is currently unused and therefore untested, it's probably
broken.  Remove it.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#include <sys/types.h>
8
8
#include "malloc.h"
9
9
 
10
 
#if !_KLIBC_NO_MMU              /* uClinux doesn't have brk() */
11
 
 
12
10
char *__current_brk;
13
11
 
14
12
/*
25
23
        __current_brk = new_brk;
26
24
        return 0;
27
25
}
28
 
 
29
 
#endif