nginx/src/os/unix/ngx_errno.h


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGX_ERRNO_H_INCLUDED_
#define _NGX_ERRNO_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>


ngx_err_t;

#define NGX_EPERM
#define NGX_ENOENT
#define NGX_ENOPATH
#define NGX_ESRCH
#define NGX_EINTR
#define NGX_ECHILD
#define NGX_ENOMEM
#define NGX_EACCES
#define NGX_EBUSY
#define NGX_EEXIST
#define NGX_EEXIST_FILE
#define NGX_EXDEV
#define NGX_ENOTDIR
#define NGX_EISDIR
#define NGX_EINVAL
#define NGX_ENFILE
#define NGX_EMFILE
#define NGX_ENOSPC
#define NGX_EPIPE
#define NGX_EINPROGRESS
#define NGX_ENOPROTOOPT
#define NGX_EOPNOTSUPP
#define NGX_EADDRINUSE
#define NGX_ECONNABORTED
#define NGX_ECONNRESET
#define NGX_ENOTCONN
#define NGX_ETIMEDOUT
#define NGX_ECONNREFUSED
#define NGX_ENAMETOOLONG
#define NGX_ENETDOWN
#define NGX_ENETUNREACH
#define NGX_EHOSTDOWN
#define NGX_EHOSTUNREACH
#define NGX_ENOSYS
#define NGX_ECANCELED
#define NGX_EILSEQ
#define NGX_ENOMOREFILES
#define NGX_ELOOP
#define NGX_EBADF
#define NGX_EMSGSIZE

#if (NGX_HAVE_OPENAT)
#define NGX_EMLINK
#endif

#if (__hpux__)
#define NGX_EAGAIN
#else
#define NGX_EAGAIN
#endif


#define ngx_errno
#define ngx_socket_errno
#define ngx_set_errno(err)
#define ngx_set_socket_errno(err)


u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
ngx_int_t ngx_strerror_init(void);


#endif /* _NGX_ERRNO_H_INCLUDED_ */