summaryrefslogtreecommitdiff
path: root/usr.bin/sort/sort.c
AgeCommit message (Expand)Author
2017-01-10refactor includes, add <sys/stat.h>christos
2016-06-01Sort options and their descriptions. Sync usage more with man page.wiz
2016-06-01Add the posix -C option (-c but quieter). Fix -R to work properly whenkre
2011-09-16Use __deadjoerg
2010-12-18Add an 'l' style for sorting that sorts by the string length of the field.christos
2010-06-05fixit() needs to know the getopt options list to do its thing correctly.dholland
2010-02-05Don't touch past the end of allocated region. It results segmentationenami
2009-11-06Retire __SCCSID. It has only archeological value now. Also retire lintjoerg
2009-09-26Move all the fopen() calls out of the record read routines into the callers.dsl
2009-09-10Save length of key instead of relying of the weight of the record sep.dsl
2009-09-05Include a local copy of the sradixsort() code from libc.dsl
2009-08-22Put radixsort() and sradixsort() the correct way around.dsl
2009-08-22Rework the way sort generates sort keys:dsl
2009-08-20Delete more unwanted/unused cruft.dsl
2009-08-18The code that attempted to sort large files by sorting each chunk by thedsl
2009-08-15Ansify.dsl
2009-04-13Fix WARNS=4 issues (-Wcast-qual -Wsign-compare)lukem
2008-11-08Make -R accept numeric arguments so one can say -R '\0' to be used inchristos
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2006-10-23when using -o into file which already exists, copy the permissionsjdolecek
2006-10-23replace access(2) + /dev/ prefix check with lstat(2) and S_ISCHR()/S_ISBLK()jdolecek
2006-10-23use F_OK instead of 0 for second parameter of access(2)jdolecek
2004-07-23Sync usage with man page. From Kouichirou Hiratsuka in PR 26278.wiz
2004-03-14remove double initialisation of SINGL_FLD & SEP_FLAGheas
2004-02-17ftpos pointer was not updated when fldtab was reallocated; drop completelyjdolecek
2004-02-17fldtab[] needs to have one extra element - this marks end of arrayjdolecek
2004-02-17use safer realloc idiomitojun
2004-02-17initialize fldtabitojun
2004-02-15remove compile-time limit on number of -k options, allocate necessaryjdolecek
2003-08-07add TNF copyrightjdolecek
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2002-12-24g/c many_files(), toojdolecek
2002-12-24bump 'soft' limit for number of files to hard limit on startup; wejdolecek
2002-12-24move fltab outside main and make it static, eliminate two memset()sjdolecek
2002-11-27Remove the statically initialized "sigaction" structure completely becausetron
2002-11-27Add braces in a statically initialized "sigaction" structure to fix atron
2001-05-14disable the code which maxes nofiles limit, it should not be normallyjdolecek
2001-04-30XXXross
2001-02-22- use MAXPATHLEN (1024) instead of _POSIX_PATH_MAX (255) for the temporarychristos
2001-02-21Fix problem when using sort >> foochristos
2001-02-19full -T supportjdolecek
2001-02-19resurrect old ftmp() - it supports alternative directory for temporaryjdolecek
2001-02-07use -R instead of -w, since that's what OpenBSD is using and there is no reasonjdolecek
2001-02-07Since -T is used to select directory for temporary files in other sortjdolecek
2001-02-07use errx(), not err() within section for '-t' flagjdolecek
2001-01-13And make usage() test for NULL explicitly..soren
2001-01-13usage() expects a NULL when there is no specific error message.soren
2001-01-13save couple of cycles and bytes by static initialization of sigaction actjdolecek
2001-01-12alltable[], itable[], dtable[] were moved to init.c, g/c from sort.[ch]jdolecek