Commit Graph

26 Commits

Author SHA1 Message Date
David du Colombier
f58b31b7fb include: fix sign extension in GBIT64
It fixes the "negative i/o offset" error that happens
when doing i/o on files larger than 2 GB.
2016-02-29 21:17:57 +01:00
Giacomo Tesio
19a5046403 all: fix warnings
cpu.c:587:4: warning: ‘n’ may be used uninitialized in this function
cpu.c:659:3: warning: dereferencing type-punned pointer will break strict-aliasing rules
cpu.c:659:3: warning: dereferencing type-punned pointer will break strict-aliasing rules
kern/devaudio.c:238:25: warning: variable ‘in’ set but not used
kern/devaudio.c:240:8: warning: variable ‘a’ set but not used
kern/sysproc.c:14:11: warning: cast to pointer from integer of different size
libc/nsec.c:56:12: warning: implicit declaration of function ‘libstrtoll’
libc/runestrchr.c:16:2: warning: suggest parentheses around assignment used as truth value
libmemdraw/draw.c:2209:4: warning: dereferencing type-punned pointer will break strict-aliasing rules
libmemdraw/draw.c:2224:4: warning: dereferencing type-punned pointer will break strict-aliasing rules
libmemdraw/draw.c:2455:4: warning: dereferencing type-punned pointer will break strict-aliasing rules
libmemdraw/draw.c:2481:4: warning: dereferencing type-punned pointer will break strict-aliasing rules
2016-01-09 15:52:31 +01:00
David du Colombier
965baf3dce gui-win32: define Kdel in keyboard.h (thanks hiro) 2015-11-20 09:44:14 +01:00
David du Colombier
445b6293d6 include: define _DEFAULT_SOURCE
_BSD_SOURCE and _SVID_SOURCE are deprecated
in favor of _DEFAULT_SOURCE.
2015-10-16 20:47:49 +02:00
David du Colombier
3dbe2c359f libc: import 21-bit runes from Plan 9
R=rsc
https://codereview.appspot.com/9035046
2013-06-21 23:08:33 +02:00
David du Colombier
23a48c7cfe devip: add support for IPv6
Addresses are now stored as uchar[16] instead
of ulong, with enough room for IPv6.

Generic IP functions have been removed from
devip.c and replaced by libip, imported from
Plan 9.

Names and addresses are resolved using either
gethostbyname() or getaddrinfo() functions.

On Windows, IPv6 name resolution is not enabled,
because mingw32 doesn't provide inet_ntop().

R=rsc
http://codereview.appspot.com/6408044
2012-08-03 21:30:17 +02:00
Russ Cox
5df8776caf lib.h: add #define for strtoll (Steve Simon) 2009-03-13 16:11:55 +00:00
Russ Cox
4f14409f56 add make CONF=pthread for modern systems 2008-12-09 07:05:09 +00:00
Russ Cox
972518cb05 windows fixes 2007-12-31 17:23:36 +00:00
Russ Cox
f94cf32519 add openbsd 2007-09-28 12:58:54 +00:00
Russ Cox
7f51f90cb3 various fixes 2007-06-22 22:06:34 +00:00
Russ Cox
c50e30b59e Updates for 386 OS X, add native OS X graphics from Paul Lalonde 2007-01-09 22:17:21 +00:00
Russ Cox
416371c2d3 oops 2007-01-09 22:16:38 +00:00
Russ Cox
1125f094ce #%*&*@#(@ sun 2006-05-21 17:02:05 +00:00
Russ Cox
5797fdc0c0 amd64 fixes 2006-05-21 16:32:29 +00:00
Russ Cox
7e5c23755e fix audio for mac; add devtls 2006-04-04 11:38:40 +00:00
Russ Cox
5572ebf9ed fixes 2006-01-17 13:55:02 +00:00
Russ Cox
230e492a8a more irix-inspired fixes 2005-12-29 23:41:14 +00:00
Russ Cox
176f1fa82e add icon 2005-12-29 22:40:50 +00:00
Russ Cox
ee5fc884bd fixes 2005-11-08 01:35:49 +00:00
Russ Cox
494adeed0b silence gcc warnings 2005-11-07 17:21:23 +00:00
Russ Cox
1c8b499228 silence all gcc warnings 2005-11-07 17:13:41 +00:00
Russ Cox
ab73f2bbf5 Add real factotum. 2005-11-04 15:36:40 +00:00
Russ Cox
e4f9a4578a windows 2005-11-02 15:20:27 +00:00
Russ Cox
5d6ebf7a53 Merge in Windows port using mingw and make. 2005-10-31 15:30:23 +00:00
Russ Cox
934846f35c a 2005-08-08 12:50:13 +00:00