159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris/*
259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * Copyright (C) 2013 The Android Open Source Project
359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * All rights reserved.
459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *
559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * Redistribution and use in source and binary forms, with or without
659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * modification, are permitted provided that the following conditions
759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * are met:
859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *  * Redistributions of source code must retain the above copyright
959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *    notice, this list of conditions and the following disclaimer.
1059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *  * Redistributions in binary form must reproduce the above copyright
1159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *    notice, this list of conditions and the following disclaimer in
1259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *    the documentation and/or other materials provided with the
1359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *    distribution.
1459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris *
1559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
1859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
1959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
2059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
2159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
2259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
2359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris * SUCH DAMAGE.
2759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris */
2859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
2959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#ifndef _LIBC_EVENTS_H
3059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define _LIBC_EVENTS_H
3159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
3259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
3359a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris// This is going to be included in assembler code so only allow #define
3459a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris// values instead of defining an enum.
3559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
3659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_MEMCPY_BUFFER_OVERFLOW   80100
3759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_STRCAT_BUFFER_OVERFLOW   80105
3859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_MEMMOVE_BUFFER_OVERFLOW  80110
3959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_STRNCAT_BUFFER_OVERFLOW  80115
4059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_STRNCPY_BUFFER_OVERFLOW  80120
4159a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_MEMSET_BUFFER_OVERFLOW   80125
4259a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_STRCPY_BUFFER_OVERFLOW   80130
43950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris#define BIONIC_EVENT_STPCPY_BUFFER_OVERFLOW   80135
44950a58e24d1019eb9d814dbb16f111a6b61e3f23Christopher Ferris#define BIONIC_EVENT_STPNCPY_BUFFER_OVERFLOW  80140
4559a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
4659a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_RESOLVER_OLD_RESPONSE    80300
4759a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_RESOLVER_WRONG_SERVER    80305
4859a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#define BIONIC_EVENT_RESOLVER_WRONG_QUERY     80310
4959a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris
5059a13c122ebc4191583b67c846a95d690dcda5cfChristopher Ferris#endif // _LIBC_EVENTS_H
51