-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a version of qsort that provides a thunk to the comparison function. Update manual pages.
- Loading branch information
Showing
6 changed files
with
158 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* This file is in the public domain. Written by Garrett A. Wollman, | ||
* 2002-09-07. | ||
* | ||
* $FreeBSD$ | ||
*/ | ||
|
||
#include <stdlib.h> | ||
#include <unistd.h> | ||
|
||
/* | ||
* ISO C99 added this function to provide for Standard C applications | ||
* which needed something like POSIX _exit(). A new interface was created | ||
* in case it turned out that _exit() was insufficient to meet the | ||
* requirements of ISO C. (That's probably not the case, but here | ||
* is where you would put the extra code if it were.) | ||
*/ | ||
void | ||
_Exit(int code) | ||
{ | ||
_exit(code); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* This file is in the public domain. Originally written by Garrett | ||
* A. Wollman. | ||
* | ||
* $FreeBSD$ | ||
*/ | ||
#define I_AM_QSORT_R | ||
#include "qsort.c" |