summaryrefslogtreecommitdiff
path: root/usr.bin/sort/sort.c
AgeCommit message (Expand)Author
2015-04-05The -b flag should only apply when key fields are specified.Todd C. Miller
2015-04-05Do not permute command line arguments but still support theTodd C. Miller
2015-04-03Only one input file is allowed with the -c/-C flags.Todd C. Miller
2015-04-03The combination of -c and -o is not specified by POSIX. In fact, the callTobias Stoeckmann
2015-04-03If -S has been supplied multiple times, only take last one into account.Tobias Stoeckmann
2015-04-02Prevent integer overflow when parsing -S argument as percentage.Tobias Stoeckmann
2015-04-02Global variable free_memory is only used in sort.c's set_hw_params,Tobias Stoeckmann
2015-04-02Fixed whitespace issues.Tobias Stoeckmann
2015-04-02No need to strdup environment variable or command line arguments here.Tobias Stoeckmann
2015-04-02Add signal name instead of array index (which is not the signal number)Tobias Stoeckmann
2015-04-02Don't install signal handlers for SIGQUIT, SIGVTALRM, SIGPROF.Todd C. Miller
2015-04-01Check for overflow when handling buffer size suffixes.Todd C. Miller
2015-04-01Just use sort_reallocarray() everywhere.Todd C. Miller
2015-04-01Remove some unneeded NULL checks that don't really help anything.Todd C. Miller
2015-04-01Use exit value 2 for mutually exclusive option errors.Todd C. Miller
2015-04-01Fix typo in revision 1.55Todd C. Miller
2015-04-01Fix last instance of malloc(n * sizeof(char)) idiom.Todd C. Miller
2015-04-01The argument to --sort is not optional so no need to check for NULL optarg.Todd C. Miller
2015-04-01No need for if (x) free(x) style checks, this is not K&R.Todd C. Miller
2015-04-01No need for an else clause after a continue, it just makes theTodd C. Miller
2015-04-01Style nits, remove whitespace at the start of a function.Todd C. Miller
2015-04-01If strtoul() fails to parse the argument to -k, just pass theTodd C. Miller
2015-04-01Use memcpy() not strncpy() when dynamically allocating and copyingTodd C. Miller
2015-04-01Pass size of sopts buffer in to parse_pos_obs() for a length check andTodd C. Miller
2015-04-01Better range checking for "sort -S" memory size.Todd C. Miller
2015-04-01Use strtonum() to parse argument to --batch-size and document theTodd C. Miller
2015-03-31Ignore TMPDIR environment variable if setuid or setgid.Todd C. Miller
2015-03-31There's no good reason to make -m and -c mutually exclusive.Todd C. Miller
2015-03-31Add missing call to atexit() to clean up temp files on error.Todd C. Miller
2015-03-30Use _exit() from signal handler so we don't call atexit handlers orTodd C. Miller
2015-03-30Do not install signal handlers for SIGABRT, SIGBUS or SIGSEGV. AlsoTodd C. Miller
2015-03-20Use the hw.usermem sysctl to determine the amount user (non-kernel)Todd C. Miller
2015-03-20Remove custom getdelim(3) and fix a small memory leak. From Andre Smagin.Todd C. Miller
2015-03-19update the note in STANDARDS about which options are extensions; also add -mJason McIntyre
2015-03-19first run through this page. mainly getting SYNOPSIS and usage() orderlyJason McIntyre
2015-03-17Initial import of FreeBSD sort.Todd C. Miller
2014-10-26Add parentheses to suppress compiler warning.Brad Smith
2014-10-11Userland reallocarray() audit.Doug Hogan
2013-11-13repair buffer resizing "undershoot", and some minor issues withTheo de Raadt
2012-10-30fdopen(3) return a FILE * not an int, so compare against NULL.Gleydson Soares
2009-12-22implement -C (silent -c), required by POSIX.1-2008;Ingo Schwarze
2009-10-28Don't catch a signal if we inherited it as ignored. Instigated byPhilip Guenthe
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-08-22sort usage();Jason McIntyre
2007-08-21Add a -s option to make the radix sort be a stable sort. Based onTodd C. Miller
2007-03-13Use separate buffers in fsort.c and msort.c. Fixes a problem withTodd C. Miller
2007-03-11some bug (in sort? or compiler) gets hit too late in the release cycle.Theo de Raadt
2007-03-07Use separate buffers in fsort.c and msort.c. Fixes a problem withTodd C. Miller
2006-10-29Remove useless code that can cause a SEGV if a buffer is realloc()ed.Todd C. Miller
2006-10-28revert previous change; causes segfault when called fromChristian Weisgerber