freebsd-dev/sys/netsmb
Marcel Moolenaar e51fe8759d Rewrite the code that uses the try/catch paradigm implemented by
goto and abstracted by the itry, ithrow and icatch macros (among
others). The problem with this code is that it doesn't compile on
ia64. The compiler is sufficiently confused that it inserts a call
to __ia64_save_stack_nonlock(). This is a magic function that saves
enough of the stack to allow for non-local gotos, such as would be
the case for nested functions. Since it's not a compiler defined
function, it needs a runtime implementation. This we have not in a
standalone compilation as is the kernel.

There's no indication that the compiler is not confused on other
platforms. It's likely that saving the stack in those cases is
trivial enough that the compiler doesn't need to off-load the
complexity to a runtime function.

The code is believed to be correctly translated, but has not been
tested. The overall structure remained the same, except that it's
made explicit. The macros that implement the try/catch construct
have been removed to avoid reintroduction of their use. It's not
a good idea.

In general the rewritten code is slightly more optimal in that it
doesn't need as much stack space and generally is smaller in size.

Found by: LINT
2003-08-23 21:43:33 +00:00
..
netbios.h Finish driving a stake through the heart of netns and the associated 2003-03-05 19:24:24 +00:00
smb_conn.c Rewrite the code that uses the try/catch paradigm implemented by 2003-08-23 21:43:33 +00:00
smb_conn.h Reserve space for the trailing null byte in the srvname member of 2003-07-27 11:36:00 +00:00
smb_crypt.c Use __FBSDID(). 2003-06-11 05:37:42 +00:00
smb_dev.c Add a f_vnode field to struct file. 2003-06-22 08:41:43 +00:00
smb_dev.h This file also depends on sys/types.h and sys/ioccom.h. 2001-04-13 10:50:48 +00:00
smb_iod.c Rewrite the code that uses the try/catch paradigm implemented by 2003-08-23 21:43:33 +00:00
smb_rq.c Use __FBSDID(). 2003-06-11 05:37:42 +00:00
smb_rq.h Spelling fixes. 2001-12-31 19:29:43 +00:00
smb_smb.c Use __FBSDID(). 2003-06-11 05:37:42 +00:00
smb_subr.c Use __FBSDID(). 2003-06-11 05:37:42 +00:00
smb_subr.h Rewrite the code that uses the try/catch paradigm implemented by 2003-08-23 21:43:33 +00:00
smb_tran.h Reserve a transport parameter name and number for Darwin. 2002-09-16 10:57:13 +00:00
smb_trantcp.c Use __FBSDID(). 2003-06-11 05:37:42 +00:00
smb_trantcp.h Increase send/receive queue to accomodate large readx/writex requests. 2002-09-18 07:38:10 +00:00
smb_usr.c size_t != int. Make this compile on 64 bit platforms (eg: amd64). 2003-07-24 01:59:18 +00:00
smb.h Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00