aboutsummaryrefslogtreecommitdiff
path: root/Makefile (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove the broken cryptographyRunxi Yu2024-08-121-3/+2
|
* Use _GNU_SOURCE instead of _BSD_SOURCE and _SYSV_SOURCELinus Torvalds2018-07-191-1/+1
| | | | | | | | | uemacs uses a lot of legacy stuff, which causes warnings with newer toolchains. This makes it build reasonably warning-free. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Do some valgrind cleanupLinus Torvalds2018-07-191-3/+2
| | | | | | | | | | | | | | | | | | | | Joerg Scheurich reported that there's a buffer overflow in readin() for long path component names. He's not wrong. When fixing that, and then checking there's nothing else obviously wrong with valgrind, I also noticed it complains about overlapping strcpy(). So add a hacky version of strscpy(), which (a) handles overlapping, and (b) has the proper strscpy() semantics. Just say no to strncpy and strlcpy, both of which are terminally broken interfaces. And stop stripping the binary. The time when the size of the uemacs binary was a big deal is long past, and it made valgrind harder. Reported-by: Joerg Scheurich <mufti11@web.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Don't use 'char' for number of linesLinus Torvalds2014-12-081-1/+1
| | | | | | | | | Heh. My new UHD monitor makes it easy to have more than 127 lines of text. I guess the 'char' could be an unsigned char, but quite frankly, trying to save a couple of bytes per open editor window seems a bit excessive these days. So just make it 'int'. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Split up the utf8 helper functions into a file of their ownLinus Torvalds2012-07-101-3/+5
| | | | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Make uemacs build on FreeBSD.Naohiro Aota2012-05-261-0/+3
| | | | | | | See <https://bugs.gentoo.org/show_bug.cgi?id=387135>. Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* Respect LDFLAGS when linking.Ulrich Müller2011-08-221-1/+1
| | | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: input.c: Fix mkstemp warning.Thiago Farina2010-12-141-2/+4
| | | | | | | | | | | | | | | | Fix the following warning: input.c: In function ‘getstring’: input.c:590: warning: ignoring return value of ‘mkstemp’, declared with attribute warn_unused_result This add usage.c module for die function. This also add wrapper.c module for the xmkstemp that is wrapper function around the original mkstemp function. Both module codes was largelly based on git, linux and sparse codes. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs/version.c: Add version function to output the version string information.Thiago Farina2010-09-071-3/+3
| | | | | Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Clean up program executablePekka Enberg2010-08-291-5/+7
| | | | | | | This patch fixes Makefile 'clean' target to clean up program executable 'em'. Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Fix out-of-box build on Mac OS XPekka Enberg2010-08-281-2/+8
| | | | | | | | | This patch fixes out-of-box build on Mac OS X by using "uname -s" to detect the underlying OS and fixing up defines accordingly. Cc: Yong Luk Stanley Elijah Goh <stan@t0xt.com> Signed-off-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: Compiles on Mac OS X.Yong Luk Stanley Elijah Goh2010-08-241-0/+1
| | | | | | | | | | | | Compiles on Mac OS X 10.6.4. setmode() is renamed to setemode() to avoid conflict with OS X's unistd.h's setmode(). Modify Makefile to enable the appropriate DEFINES to compile on Mac OS X. Signed-off-by: Yong Luk Stanley Elijah Goh <stan@t0xt.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: enable -Wstrict-prototypesPekka Enberg2010-02-271-1/+2
| | | | | | | | | This patch enables the GCC '-Wstrict-prototypes' switch and fixes up broken prototypes. Cc: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* uemacs: rename 'makefile' to 'Makefile'Pekka Enberg2010-02-271-0/+145
I keep typoing 'Makefile' instead of 'makefile'. I guess it's hard-wired to the brain by now so just rename the damn thing. Cc: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>