Russ Cox
e9cbe46fe6
lib9: skip buggy S_ISCHR check in disksize on OpenBSD
...
The portable code is already checking S_ISCHR anyway.
2024-06-15 22:15:06 -04:00
Russ Cox
3a62e56307
lib9: do not fetch disk size for character devices
...
Real disk devices should be block devices anyway.
One user reported the disksize check causing a
system reboot during vac of a tree with an "interesting"
device.
Fixes #103 .
2020-01-13 19:30:02 -05:00
Dan Cross
fa325e9b42
Trivial changes: whitespace and modes.
...
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.
Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
Russ Cox
efe48aa670
lib9: add <sys/dkio.h> for OpenBSD
...
R=, rsc
CC=
http://codereview.appspot.com/1762045
2010-07-11 10:08:41 -07:00
Russ Cox
1961ee8223
lib9: do not include st_dev in qid.path
...
http://codereview.appspot.com/123050
2009-09-24 21:21:27 -04:00
Russ Cox
427abd1ebd
lib9: fix Apple disksize prototype
2008-07-09 14:17:30 -04:00
Russ Cox
dd9d5927a1
lib9: declare n in OpenBSD disksize (Eric Grosse)
2008-07-05 10:01:43 -04:00
Russ Cox
9a939d5f19
lib9: do not try to hide symlinks as much
2008-07-04 16:24:54 -04:00
Russ Cox
4712e22300
lib9: use symlink size, not target size, in dirstat
2008-07-04 02:54:06 -04:00
Russ Cox
2c82cd6f52
lib9: clean up disk size code, add Apple (Anthony Sorace)
2008-07-03 17:45:17 -04:00
Russ Cox
83ab7d8896
merge
2007-11-27 15:39:06 -05:00
rsc
9752950804
new media size from Lou Kamenov
2007-05-15 13:10:51 +00:00
rsc
43f16cfa92
again
2007-05-11 00:20:51 +00:00
rsc
69bdb78dec
use device names for FreeBSD (Lou Kamenov)
2007-05-11 00:16:40 +00:00
rsc
63fcc2bc3c
avoid pw library
2006-06-12 17:21:10 +00:00
rsc
a98755e0bf
add da for fbsd 5
2006-01-07 17:34:36 +00:00
rsc
3d484b0d1a
set qid.vers (Erik Quanstrom)
2005-12-29 21:41:54 +00:00
rsc
a3e9d8935f
Fix overflow in old Linux file size.
2005-08-10 17:16:38 +00:00
rsc
fe8c925e8a
OpenBSD, thanks to Tim Wiess
2005-07-21 18:29:04 +00:00
rsc
98660df250
better symlink
2005-02-21 14:25:12 +00:00
rsc
2acd6fa6ff
expose unix mode bits
2005-02-08 20:17:02 +00:00
rsc
0a22905232
start adding DM bits
2005-02-08 20:08:28 +00:00
rsc
ceecb31310
satisfy valgrind
2004-06-09 14:13:49 +00:00
rsc
76e6aca867
old linux
2004-05-15 23:16:38 +00:00
rsc
631fe87f4c
minor bug fixes
2004-05-14 20:08:02 +00:00
rsc
3d72637f9b
Don't be stupid.
2004-04-26 19:28:28 +00:00
rsc
7317e77da3
display correct size of block devices for linux.
...
that was surprisingly easy.
2004-04-25 22:24:56 +00:00
rsc
6f6553dfb7
Cache last uid, gid to make translation faster.
2004-04-08 19:31:21 +00:00
rsc
669250d159
Various fixes.
...
B - fixed usage, DISPLAY :0 vs :0.0
9term - fixed various terminal things
rc - notice traps in Read
_p9dir - only run disk code for disks
dirread - getdirentries on FreeBSD and Linux
are different w.r.t. meaning of off.
notify - set up so signals interrupt system calls
bprint - use bfmt.
2003-12-03 22:50:48 +00:00
rsc
64bcfff3a1
More tweaks on Linux and Solaris.
2003-11-25 02:11:11 +00:00
rsc
478ee9636f
Make things build on FreeBSD again.
2003-11-23 20:04:53 +00:00
rsc
1c253ceb58
Annoying changes to work on Sun boxes.
2003-11-23 19:49:17 +00:00
rsc
fd04aacee1
Various additions and fixes.
2003-11-23 18:12:54 +00:00