Drop suid privileges after opening the channel

1. Drop suid privileges after opening the channel.
2. Move opening the channel as early as possible (once all of the
   channel related options have been parsed / extracted).
3. Remove unnecessary chown calls now that permissions have been
   revoked.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fix object and program directory for VS2010

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Replace ioctl calls with channel functions

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Add missing header
Remove references to non existing header files
Remove lastbuildstate files

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Merge remote-tracking branch 'origin/master' into drop_suid

Conflicts:
	plc/Makefile

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Add new pad flag

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Implement new auto pad function for small frames

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Add hex file with really too small frame

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Merge remote-tracking branch 'origin/master' into monotonic_timer

Conflicts:
	VisualStudioNET/ampboot/ampboot.vcxproj.filters
	VisualStudioNET/amphost/amphost.vcxproj.filters
	VisualStudioNET/amprate/amprate.vcxproj.filters
	VisualStudioNET/ampstat/ampstat.vcxproj.filters
	VisualStudioNET/amptest/amptest.vcxproj.filters
	VisualStudioNET/amptone/amptone.vcxproj.filters
	VisualStudioNET/amptool/amptool.vcxproj
	VisualStudioNET/amptool/amptool.vcxproj.filters
	VisualStudioNET/ampwait/ampwait.vcxproj.filters
	VisualStudioNET/efbu/efbu.vcxproj.filters
	VisualStudioNET/int64host/int64host.vcxproj.filters
	VisualStudioNET/int6k/int6k.vcxproj
	VisualStudioNET/int6k/int6k.vcxproj.filters
	VisualStudioNET/int6kboot/int6kboot.vcxproj.filters
	VisualStudioNET/int6klog/int6klog.vcxproj.filters
	VisualStudioNET/int6kmod/int6kmod.vcxproj.filters
	VisualStudioNET/int6krate/int6krate.vcxproj.filters
	VisualStudioNET/int6krule/int6krule.vcxproj.filters
	VisualStudioNET/int6kstat/int6kstat.vcxproj.filters
	VisualStudioNET/int6ktest/int6ktest.vcproj
	VisualStudioNET/int6ktest/int6ktest.vcxproj.filters
	VisualStudioNET/int6ktone/int6ktone.vcxproj.filters
	VisualStudioNET/int6kwait/int6kwait.vcxproj.filters
	VisualStudioNET/mdustats/mdustats.vcxproj.filters
	VisualStudioNET/plcID/plcID.vcxproj
	VisualStudioNET/plcID/plcID.vcxproj.filters
	VisualStudioNET/plcboot/plcboot.vcxproj.filters
	VisualStudioNET/plcfwd/plcfwd.vcxproj.filters
	VisualStudioNET/plcget/plcget.vcxproj.filters
	VisualStudioNET/plchost/plchost.vcxproj.filters
	VisualStudioNET/plcotst/plcotst.vcxproj.filters
	VisualStudioNET/plcrate/plcrate.vcxproj.filters
	VisualStudioNET/plcrule/plcrule.vcxproj.filters
	VisualStudioNET/plcset/plcset.vcxproj.filters
	VisualStudioNET/plcstat/plcstat.vcxproj.filters
	VisualStudioNET/plctest/plctest.vcxproj.filters
	VisualStudioNET/plctone/plctone.vcxproj.filters
	VisualStudioNET/plctool/plctool.vcxproj
	VisualStudioNET/plctool/plctool.vcxproj.filters
	VisualStudioNET/plcwait/plcwait.vcxproj.filters
	VisualStudioNET/sada/sada.vcxproj.filters
	ether/Makefile
	ether/efbu.c
	iso15118/Makefile
	plc/Makefile
	plc/ampwait.c
	plc/int6kwait.c
	plc/plcwait.c
	slac/Makefile

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>