errno.h 626 Bytes
Newer Older
gejun's avatar
gejun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
// bthread - A M:N threading library to make applications more concurrent.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved

// Author: Ge,Jun (gejun@baidu.com)
// Date: Wed Jul 30 11:47:19 CST 2014

#ifndef BAIDU_BTHREAD_ERRNO_H
#define BAIDU_BTHREAD_ERRNO_H

#include <errno.h>                    // errno
#include "base/errno.h"               // berror(), DEFINE_BTHREAD_ERRNO

__BEGIN_DECLS

extern int *bthread_errno_location();

#ifdef errno
#undef errno
#define errno *bthread_errno_location()
#endif

// List errno used throughout bthread
extern const int ESTOP;

__END_DECLS

#endif  //BAIDU_BTHREAD_ERRNO_H