Commit Graph

494 Commits

Author SHA1 Message Date
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
52dab5df0c Fix a warning in #ifdef RARP_DEBUG. PR kern/20314 2008-04-05 05:15:33 +00:00
christos
19d181b7f5 add bcopy and bzero for loadfile for now. Should get rid of it. 2008-03-25 23:12:31 +00:00
christos
9ebe85fa97 remove stray comment 2008-03-25 22:55:25 +00:00
christos
8f0af7be4b fix typo 2008-03-25 22:54:54 +00:00
christos
e1b834bdd8 - use mem* instead of b* routines, and kill the b* routines.
- use the mem* routines from libc.
XXX: There will be some lossage, but I am fixing it.
2008-03-25 21:23:50 +00:00
rtr
16ebb0dc79 when the char being searched for is not found strchr() must return NULL
not a pointer to the terminating '\0'. the only time we return a pointer
to the terminating '\0' is when the char being searched for is '\0'.

fixes problem observed booting -current install
http://mail-index.netbsd.org/current-users/2008/03/20/msg001445.html
2008-03-21 10:24:13 +00:00
dsl
2bb9a33a0f Add a strchr() - for dosfs in particular.
The i386 asm version in src/common is rather larger than this one.
2008-03-14 22:27:32 +00:00
dsl
2694fcbd4b Add a local strcasecmp() instead of pulling the bloat from libkern. 2008-03-14 22:21:53 +00:00
tsutsui
5d07958fe3 Fix typo in comment. 2008-02-25 15:33:20 +00:00
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
tsutsui
e5434d17a5 ANSIfy. 2007-12-29 17:54:41 +00:00
perry
970ad9314d Remove __attribute__((__noreturn__)) from things already marked __dead
Found by the department of redundancy department.
2007-12-24 15:46:45 +00:00
tsutsui
2dc9b9cb28 ufs_ls.c doesn't belong to lfs. 2007-12-08 16:00:25 +00:00
isaki
48e1704028 Use standard error code (EIO) instead of standalone error code
(ESHORT).  Because loadfile_*() is used with or without
_STANDALONE, therefore, don't use error code in "saerrno.h".
Pointed out by and discussed with he@.
2007-12-03 09:51:30 +00:00
tsutsui
0a953ce07e - also pass correct size on dealloc() of in-memory superblock data
- also call dealloc() for group descriptor blocks
2007-12-02 06:47:43 +00:00
tsutsui
8d7676534f Allocate correct size for in-memory data struct m_ext2fs
(which is larger than SBSIZE).
2007-12-02 06:12:35 +00:00
tsutsui
48db0a5603 - fix description about index structure of an inode to match ext2fs_dinode
- put more byteswap ops on reading block numbers in indirect blocks
  (XXX: untested on big endian machines)
2007-12-02 05:23:40 +00:00
tsutsui
db898c555a unsigned -> unsigned int 2007-12-02 04:59:24 +00:00
tsutsui
d8fc666005 - build ext2fs.c
- put SRCS per each file system.
2007-12-01 18:11:02 +00:00
tsutsui
28712e0756 Add ext2fs support for libsa.
Mostly based on ufs.c, and some ext2fs specific stuff is pulled from
sys/ufs/ext2fs/ext2fs_bswap.c and sys/ufs/ext2fs/ext2fs_vfsops.c.

XXX1: Should we share ufs.c with #ifdef LIBSA_EXT2FS as ffs and lfs do?
XXX2: Maybe we should share ext2fs_bswap.c with kernel.
2007-12-01 18:06:22 +00:00
tsutsui
c3af9178e9 Use "uint" rather than "unsigned" without a type. 2007-12-01 17:44:16 +00:00
isaki
1c038e6834 style, indent, and ANSI-fy. 2007-11-24 13:20:53 +00:00
isaki
33469b0e28 loadfile_*() must set errno when it returns -1. 2007-11-23 04:32:14 +00:00
isaki
3a7a8e72de x68k's floppy is 8*2 sect/cyl, not 18*2 sect/cyl. 2007-11-11 13:23:07 +00:00
tsutsui
fe9146d494 Add an extern decl of try_bootp variable here since MD sources could set it. 2007-10-27 12:21:17 +00:00
tsutsui
03f68714d2 Include "bootp.h" for a function declaration of bootp(). 2007-10-27 12:19:41 +00:00
martin
db90818494 Make a few debug outputs only happen when debugging. 2007-10-01 13:15:06 +00:00
martin
aa444a36a0 When compiled with COMPAT_SOLARIS_UFS, always calculate fs_qbmask and
fs_qfmask on the fly. This allows libsa to read newer Solaris ufs
filesystems (which have a slightly incompatible superblock).
Suggested by Antti Kantee when discussing PR kern/37000.
2007-09-29 21:36:56 +00:00
martin
cf9773f5c0 It is "data_start" not "data" - pointed out by Tom Spindler 2007-06-06 07:56:39 +00:00
martin
933b671bfa Add a MARK_DATA marker containing the effective VA of the first loaded
data segment.
2007-06-05 08:48:49 +00:00
he
fdcc1ff67a We need char* for pointer arithmetic. 2007-03-05 14:49:04 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
uwe
e918be7b93 Add missing newlines to debug messages. 2007-02-25 04:46:32 +00:00
yamt
ce9d4b0004 remove nqnfs from comments. from Arnaud Lacombe.
(no functional changes.)
2006-12-29 13:05:48 +00:00
chs
088fbfd7aa in fdloadfile(), fail if we can't read the entire exec header. 2006-12-09 22:11:36 +00:00
dogcow
437f8cc149 make bootxx_msdos fit in 8k again; thanks, __internal_memset_, for spilling
registers all over the place.
2006-12-02 00:38:22 +00:00
mrg
696ab05f50 add (char *) cast to quieten GCC. 2006-05-20 19:40:46 +00:00
mrg
abeaa4f60d apply -Wno-pointer-sign with GCC4. 2006-05-12 03:29:11 +00:00
mrg
22406ced78 ssize_t -> size_t to match variable and functions. 2006-05-11 01:13:44 +00:00
cherry
c988ba8700 Pass by reference to MD_LOADSEG(). Thanks to Matt Thomas for pointing this out. 2006-04-06 09:25:58 +00:00
cherry
3627104dbe Encapsulated the MD test: phdr[i].p_type & PT_LOPROC out of MI code,
and into MD_LOADSEG() as suggested by Christos.
2006-04-03 15:45:36 +00:00
cherry
50756fb219 Allows processor ABI specific ELF segment loads.
If the macro MD_LOADSEG defined in
machine/loadfile_machdep.h evaluates to 1, the machine
specific segment is loaded.

See: http://mail-index.netbsd.org/tech-kern/2005/12/30/0003.html
2006-04-03 14:08:41 +00:00
uwe
fe55d8a997 /* fall through */ -> /* FALLTHROUGH */ 2006-01-27 02:28:36 +00:00
uwe
b04e9bed57 Support 'z' (size_t) and 't' (ptrdiff_t) specifiers.
XXX: ptrdiff_t is only ever defined in <stddef.h> and is defined
unconditionally, without the ifndef dance.  Until we have an expert
opinion, abuse intptr_t for the 't' size check.
2006-01-27 01:53:13 +00:00
uwe
090e596149 Don't omit int arguments in the K&R style function definitions. 2006-01-27 01:11:27 +00:00
christos
e72f06abb2 Add the source directory of zlib in the include paths so that cread.c can
find zlib.h which is needed from <lib/libz/libz.h>.
2006-01-26 14:05:49 +00:00
uwe
ba7d6bc890 Sync alloc/dealloc prototypes with unsigned int -> size_t change. 2006-01-25 22:44:37 +00:00
christos
6645a4f37b free -> dealloc 2006-01-25 18:27:23 +00:00
christos
8c98cc0872 - Add attributes to printf functions
- Fix attributes to noreturn functions
- free -> dealloc
- unsigned -> size_t for alloc, dealloc
2006-01-25 18:26:59 +00:00