Browse Source

Revert r355760, r355759

And remove the inline/deprecated attribute use entirely in stdlib.h, from
r355747.  The intent was to provide a buildable API transitionary period, but
clearly that was counter-productive.

Reported by:	delphij, imp, others
freebsd/current/master
cem 5 months ago
parent
commit
5b3e917aa9
3 changed files with 1 additions and 14 deletions
  1. +0
    -6
      include/stdlib.h
  2. +1
    -0
      sys/compat/linuxkpi/common/include/linux/compiler.h
  3. +0
    -8
      sys/sys/cdefs.h

+ 0
- 6
include/stdlib.h View File

@@ -314,12 +314,6 @@ long long
strtonum(const char *, long long, long long, const char **);

/* Deprecated interfaces, to be removed. */
static inline void
__deprecated("sranddev to be removed in FreeBSD 13")
sranddev(void)
{
}

__int64_t
strtoq(const char *, char **, int);
__uint64_t

+ 1
- 0
sys/compat/linuxkpi/common/include/linux/compiler.h View File

@@ -50,6 +50,7 @@
#define __cond_lock(x,c) (c)
#define __bitwise
#define __devinitdata
#define __deprecated
#define __init
#define __initconst
#define __devinit

+ 0
- 8
sys/sys/cdefs.h View File

@@ -468,14 +468,6 @@
#define __hidden
#endif

#if __GNUC_PREREQ__(4, 5) || defined(__clang__)
#define __deprecated(m) __attribute__((__deprecated__(m)))
#elif defined(__GNUC__)
#define __deprecated(m) __attribute__((__deprecated__))
#else
#define __deprecated(m)
#endif

/*
* We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
* require it.

Loading…
Cancel
Save