thr_exit.c (4e3f7b6ede53e15c4423d42f0cb5bce693a14246) | thr_exit.c (7d9d7ca2ed3e3d630e63482c41f2d26194129c2c) |
---|---|
1/* 2 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37#include <stdio.h> 38#include <stdlib.h> 39#include <string.h> 40#include <pthread.h> 41#include "thr_private.h" 42 43__weak_reference(_pthread_exit, pthread_exit); 44 | 1/* 2 * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37#include <stdio.h> 38#include <stdlib.h> 39#include <string.h> 40#include <pthread.h> 41#include "thr_private.h" 42 43__weak_reference(_pthread_exit, pthread_exit); 44 |
45/* thr_exit() */ 46extern int _thr_exit(void); 47 |
|
45void 46_thread_exit(char *fname, int lineno, char *string) 47{ 48 char s[256]; 49 50 /* Prepare an error message string: */ 51 snprintf(s, sizeof(s), 52 "Fatal error '%s' at line %d in file %s (errno = %d)\n", --- 135 unchanged lines hidden --- | 48void 49_thread_exit(char *fname, int lineno, char *string) 50{ 51 char s[256]; 52 53 /* Prepare an error message string: */ 54 snprintf(s, sizeof(s), 55 "Fatal error '%s' at line %d in file %s (errno = %d)\n", --- 135 unchanged lines hidden --- |