uboot/include/errno.h
<<
>>
Prefs
   1/*
   2 * Copyright (C) 2014 Samsung Electronics
   3 * Przemyslaw Marczak <p.marczak@samsung.com>
   4 *
   5 * SPDX-License-Identifier:     GPL-2.0+
   6 */
   7#ifndef _ERRNO_H
   8#define _ERRNO_H
   9
  10#include <linux/errno.h>
  11
  12extern int errno;
  13
  14#define __set_errno(val) do { errno = val; } while (0)
  15
  16#ifdef CONFIG_ERRNO_STR
  17const char *errno_str(int errno);
  18#else
  19static inline const char *errno_str(int errno)
  20{
  21        return 0;
  22}
  23#endif
  24#endif /* _ERRNO_H */
  25