aboutsummaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* DragonFly: fix buildDan Cross2025-07-251-0/+3
| | | | Fix the build for DragonFlyBSD.
* u.h: define __USE_POSIX to make glibc happyerentar2025-07-221-1/+1
| | | | glibc will only expose sigjmp_buf if __USE_POSIX is defined.
* libregexp: allow up to 128 character classes in one regexpIgor Burago2023-03-311-2/+2
|
* Added a paren to fix a warning in u.hcamsn0w2022-07-261-1/+1
|
* lib9p: Remove postmountsrv (#505)Ben Huntsman2021-08-301-1/+0
|
* libthread: simplifyRuss Cox2020-12-302-8/+1
| | | | | | | | Now that everything uses pthreads and pthreadperthread, can delete various conditionals, all the custom context code, and so on. Also update documents. Fixes #355.
* libthread: add threadmaybackgroundRuss Cox2020-12-301-2/+5
| | | | | | | | Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
* draw: use int for Cacheinfo x fieldRuss Cox2020-07-181-1/+1
| | | | | | With very large fonts (72pt or so) I see bad cache glyphs, and this fixes it. Not entirely sure exactly which code is overflowing, but something is.
* libdraw: handle larger number of subfontsRuss Cox2020-05-291-2/+3
|
* devdraw, libdraw: handle keyboard runes > U+FFFFRuss Cox2020-05-181-3/+8
| | | | | | | | | | | Runes in Plan 9 were limited to the 16-bit BMP when I drew up the RPC protocol between graphical programs and devdraw a long time ago. Now that they can be 32-bit, use a 32-bit wire encoding too. A new message number to avoid problems with other clients (like 9fans.net/go). Add keyboard shortcut alt : , for U+1F602, face with tears of joy, to test that it all works.
* build: drop _XOPEN_SOURCE in u.h on AIXRuss Cox2020-05-181-1/+0
|
* lib9: use __builtin_return_address on IBM XL/CBen Huntsman2020-05-181-1/+1
|
* lib9: use opendir/readdir to read directoriesRuss Cox2020-05-171-3/+0
| | | | | | | | | | | | | getdirentries(2) has been deprecated on macOS since 10.5 (ten releases ago). Using it requires disabling 64-bit inodes, but that in turn makes binaries incompatible with some dynamic libraries, most notably ASAN. At some point getdirentries(2) will actually be removed. For both these reasons, switch to opendir/readdir. A little clunky since we have to keep the DIR* hidden away to preserve the int fd interfaces, but it lets us remove a bunch of OS-specific code too.
* lib9: add closeRuss Cox2020-05-171-1/+3
| | | | More preparation for opendir.
* all: fix #includes for AIX, add a few AIX "implementation" filesBen Huntsman2020-05-071-0/+4
|
* all: update build scripts to fix AIX XL/C compatibilityBen Huntsman2020-05-071-2/+2
|
* all: remove Linux 2.4 vs 2.6 detectionRuss Cox2020-01-191-4/+2
| | | | | Linux 2.4 is dead. (The libthread code hasn't worked for Linux 2.4 for a long time.)
* libthread: rm FreeBSD 4 codeRuss Cox2020-01-191-4/+2
| | | | Pretty sure FreeBSD 4 is gone now. :-)
* libdraw: connect to devdraw via $wsysid when setRuss Cox2020-01-131-0/+6
|
* devdraw: move Client into devdraw.h and move global state inRuss Cox2020-01-131-1/+0
|
* lib9: make a p9frexp function wrapping system frexpRuss Cox2020-01-121-1/+3
| | | | | | Under certain conditions it looks like frexp gets #defined to something else on macOS during system headers, which then breaks the declaration in libc.h.
* lib9: remove getcallerpc implementationsRuss Cox2020-01-071-11/+14
| | | | | | | | These make no sense and are not really needed at all. Add a best-effort attempt to get at the gcc/clang macro in lib9.h, but if it fails, no big deal. Fixes #324.
* libdraw: redo default font construction to be hidpi-safeRuss Cox2018-11-162-5/+0
| | | | | | | | | | | | | | | | If $font is not set, the default font is constructed from font data linked into every libdraw binary. That process was different from the usual openfont code, and so it was not hidpi-aware, resulting in very tiny fonts out of the box on hidpi systems, until users set $font. Fix this by using openfont to construct the default font, by recognizing the name *default* when looking for font and subfont file contents. Then all the hidpi scaling applies automatically. As a side effect, the concept of a 'default subfont' is gone, as are display->defaultsubfont, getdefont, and memgetdefont.
* libdraw: add Cursor2, a 32x32 high-res cursorRuss Cox2018-11-155-1/+22
| | | | | | Also add setcursor2, esetcursor2, and draw protocol encoding. Calls to the old setcursor, esetcursor create a 32x32 by pixel doubling when needed.
* 9term, win: work around bsd linker nonsenseRuss Cox2017-01-061-0/+2
| | | | | | Change-Id: Ifcef0636ee1e1fd0f9b06a8d1a99d58fae831318 Reviewed-on: https://plan9port-review.googlesource.com/2780 Reviewed-by: Russ Cox <rsc@swtch.com>
* include: define _DEFAULT_SOURCEDavid du Colombier2016-11-201-0/+1
| | | | | | | | | | | Since glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE macros are deprecated in favor of the _DEFAULT_SOURCE macro. See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes Change-Id: I18dd6a698f3f5aa51d1e45bf53b031bb061e17e8 Reviewed-on: https://plan9port-review.googlesource.com/1500 Reviewed-by: David du Colombier <0intro@gmail.com>
* keyboard.h: add some missing key enums from Plan 9mischief2015-06-031-1/+6
| | | | | | Change-Id: I0d8b94037309b15f839588c6547acaaaf3e2ed4d Reviewed-on: https://plan9port-review.googlesource.com/1151 Reviewed-by: Russ Cox <rsc@google.com>
* libdraw: refine hidpi font selectionRuss Cox2015-02-171-0/+1
| | | | | | Change-Id: Id1e6a2630713024a1925ad1341bb9c846f82e93e Reviewed-on: https://plan9port-review.googlesource.com/1171 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: autoscale fonts when moving between low and high dpi screensRuss Cox2015-02-171-1/+16
| | | | | | Change-Id: I6093955b222db89dfe437fb723593b173d888d01 Reviewed-on: https://plan9port-review.googlesource.com/1170 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: add 2*font syntax for scaled fontsRuss Cox2015-02-171-1/+2
| | | | | | | | An experiment. Change-Id: I40660a211b8372701597d80f7e86917e94cccbaa Reviewed-on: https://plan9port-review.googlesource.com/1161 Reviewed-by: Russ Cox <rsc@swtch.com>
* libdraw: change DefaultDPI to 133Russ Cox2012-11-261-1/+1
| | | | | | | Let's see if that's any better. R=rsc http://codereview.appspot.com/6850103
* libframe: auto scale tick for retinaRuss Cox2012-11-251-2/+2
| | | | | R=rsc http://codereview.appspot.com/6850102
* libdraw: add scalesizeRuss Cox2012-11-251-0/+1
| | | | | R=rsc http://codereview.appspot.com/6855092
* draw.h: add DefaultDPIRuss Cox2012-11-251-1/+2
| | | | | R=rsc http://codereview.appspot.com/6858071
* devdraw, libdraw: add display->dpiRuss Cox2012-11-251-0/+1
| | | | | | | | Fixed at 100 right now, but the plan is to make it accurate and then use it. R=rsc http://codereview.appspot.com/6856091
* libthread: add threadspawndRuss Cox2012-10-221-0/+1
| | | | | R=rsc http://codereview.appspot.com/6742064
* openbsd updates (thanks Pascal Stumpf)Russ Cox2012-07-141-0/+2
| | | | | R=rsc http://codereview.appspot.com/6401049
* lib9/dial: add support for IPv6David du Colombier2012-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The function p9dialparse() returns the host as a sockaddr_storage structure instead of a u32int, to be able to handle both IPv4 and IPv6 addresses. Because the sockaddr_storage structure also handle port numbers and Unix path names, there is no longer need to set them in the calling functions. However, these values are still returned for convenience. The sockaddr_in and sockaddr_un structures have been replaced by sockaddr_storage to handle Unix, IPv4 and IPv6 sockets. Names and addresses are resolved using either gethostbyname() or getaddrinfo() functions. The getaddrinfo() function is documented in RFC2553 and standardized since POSIX.1-2001. It supports both IPv4 and IPv6 addresses. The gethostbyname() function is deprecated since POSIX.1-2008. However, some libc implementations don't handle getaddrinfo() properly, thus we preferred to try gethostbyname() first. I've tried to preserve most of the old code logic to prevent from surprising or unwanted behavior. R=rsc http://codereview.appspot.com/6255068
* libmach, acid, db: 64-bit supportRuss Cox2012-02-192-68/+71
|
* libventi: add functions vtsha1 and vtsha1checkDavid du Colombier2012-01-211-0/+4
| | | | | | | | These functions are equivalent to vtSha1 and vtSha1Check from the old libventi and are particularly used by Fossil. R=rsc http://codereview.appspot.com/5555064
* libventi: add VtEntryNoArchive from liboventi, for use with fossilDavid du Colombier2011-11-081-0/+1
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5298088
* libventi: add functions reconn and redial for use with fossilDavid du Colombier2011-11-081-0/+2
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/5325046
* venti.h: import indentation from plan 9David du Colombier2011-06-131-145/+147
| | | | | | R=rsc CC=plan9port.codebot http://codereview.appspot.com/4571065
* delete 9P2000.uRuss Cox2010-12-072-10/+0
| | | | | | | thanks to Erik Quanstrom R=rsc http://codereview.appspot.com/3469042
* u.h: add int8, uint8Russ Cox2010-07-141-0/+2
| | | | | R=rsc http://codereview.appspot.com/1791044
* make flate crc32 work when ulong is 64 bitsRuss Cox2010-02-072-3/+10
| | | | | | R=, rsc CC= http://codereview.appspot.com/203061
* libc.h: update comment for 32-bit RuneRuss Cox2009-09-131-2/+3
| | | | http://codereview.appspot.com/116097
* lib9: fix dirread/stat mismatch on Snow LeopardRuss Cox2009-09-131-0/+3
| | | | http://codereview.appspot.com/116096
* convert to 4-byte UTF-8 and 32-bit RuneRuss Cox2009-09-112-4/+5
| | | | http://codereview.appspot.com/116075
* libavl: import from Plan 9Russ Cox2009-08-231-0/+27
|