plan9fox/sys/src/games/doom
cinap_lenrek ac88ce4f7f make bind(2) error handling consistent
The mount() and bind() syscalls return -1 on error,
and the mountid sequence number on success.

The manpage states that the mountid sequence number
is a positive integer, but the kernels implementation
currently uses a unsigned 32-bit integer and does not
guarantee that the mountid will not become negative.

Most code just cares about the error, so test for
the -1 error value only.
2020-05-02 17:32:01 +02:00
..
am_map.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
am_map.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_englsh.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_event.h games/doom: 2011-06-02 06:47:50 +00:00
d_french.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_items.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_items.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_main.c doom: fix music for patch wads 2018-10-21 00:11:39 +02:00
d_main.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_net.c games/doom: fix mips 2015-04-17 22:19:23 +02:00
d_net.h games/doom: fix mips 2015-04-17 22:19:23 +02:00
d_player.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_textur.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_think.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
d_ticcmd.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
doomdata.h doom: fix alignment issues for arm 2014-09-04 23:02:37 +02:00
doomdef.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
doomdef.h games/doom: fix gamma correction and key translation (thanks qu7uux) 2015-08-16 22:09:46 +02:00
doomstat.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
doomstat.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
doomtype.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
dstrings.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
dstrings.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
f_finale.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
f_finale.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
f_wipe.c doom: fix alignment issues for arm 2014-09-04 23:02:37 +02:00
f_wipe.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
g_game.c games/doom: fix array offsets for respawn angle (thanks qu7uux) 2015-08-16 22:12:11 +02:00
g_game.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
hu_lib.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
hu_lib.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
hu_stuff.c games/doom: 2011-06-02 06:47:50 +00:00
hu_stuff.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
i_main.c games/doom: 2011-06-02 06:47:50 +00:00
i_net.c games/doom: dont pretend we are in a netgame, fix save/load 2011-05-27 17:02:01 +00:00
i_net.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
i_sound.c make bind(2) error handling consistent 2020-05-02 17:32:01 +02:00
i_sound.h games/doom: music support (thanks qu7uux) 2017-02-26 22:14:10 +01:00
i_system.c doom: port to amd64 2014-02-04 01:09:46 +01:00
i_system.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
i_video.c doom: don't set repl if scale is 1 2018-05-31 05:11:33 +02:00
i_video.h ac97: max buffer should be full samples, games/doom: enable/disable mouse grabbing when switching to the menu 2011-05-27 15:16:06 +00:00
info.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
info.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_argv.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_argv.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_bbox.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_bbox.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_cheat.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_cheat.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_fixed.c doom: get rid of floating point code for division 2014-05-11 20:24:27 +02:00
m_fixed.h doom: get rid of floating point code for division 2014-05-11 20:24:27 +02:00
m_menu.c doom: cleanup 2012-07-27 14:42:43 +02:00
m_menu.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_misc.c games/doom: fix config file never being loaded or saved (thanks qu7uux) 2015-07-30 20:30:47 +02:00
m_misc.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
m_random.c games/doom: fix desyncing demo (thanks qwx) 2015-06-12 17:28:09 +02:00
m_random.h games/doom: fix desyncing demo (thanks qwx) 2015-06-12 17:28:09 +02:00
m_swap.c games/doom: fix mips 2015-04-17 22:19:23 +02:00
m_swap.h games/doom: fix mips 2015-04-17 22:19:23 +02:00
mkfile games/doom: fix mips 2015-04-17 22:19:23 +02:00
p_ceilng.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_doors.c doom: fix blazing door sounds (from qu7uux) 2016-06-30 17:13:47 +02:00
p_enemy.c games/doom: fix desyncing demo (thanks qwx) 2015-06-12 17:28:09 +02:00
p_floor.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_inter.c games/doom: display correct message on medkit pickup when health low (thanks qu7uux) 2015-07-30 20:02:23 +02:00
p_inter.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_lights.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_local.h games/doom: add bug compatibility switches (thanks qu7uux) 2015-07-30 19:55:13 +02:00
p_map.c games/doom: fix desyncing demo (thanks qwx) 2015-06-12 17:28:09 +02:00
p_maputl.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_mobj.c games/doom: add bug compatibility switches (thanks qu7uux) 2015-07-30 19:55:13 +02:00
p_mobj.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_plats.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_pspr.c games/doom: fix desyncing demo (thanks qwx) 2015-06-12 17:28:09 +02:00
p_pspr.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_saveg.c doom: port to amd64 2014-02-04 01:09:46 +01:00
p_saveg.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_setup.c doom: port to amd64 2014-02-04 01:09:46 +01:00
p_setup.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_sight.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_spec.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_spec.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_switch.c games/doom: fix switch textures swapping in ultimate doom (thansk qu7uux) 2015-07-30 19:51:11 +02:00
p_telept.c games/doom: add bug compatibility switches (thanks qu7uux) 2015-07-30 19:55:13 +02:00
p_tick.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_tick.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
p_user.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_bsp.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_bsp.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_data.c doom: fix alignment issues for arm 2014-09-04 23:02:37 +02:00
r_data.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_defs.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_draw.c doom: port to amd64 2014-02-04 01:09:46 +01:00
r_draw.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_local.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_main.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_main.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_plane.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_plane.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_segs.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_segs.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_sky.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_sky.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_state.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
r_things.c doom: fix alignment issues for arm 2014-09-04 23:02:37 +02:00
r_things.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
s_sound.c games/doom: music support (thanks qu7uux) 2017-02-26 22:14:10 +01:00
s_sound.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
sounds.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
sounds.h doom: cleanup 2012-07-27 14:42:43 +02:00
st_lib.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
st_lib.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
st_stuff.c games/doom: fix idclev cheat in doom2 and final doom (thanks qu7uux) 2015-08-16 22:08:11 +02:00
st_stuff.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
tables.c rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
tables.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
v_video.c games/doom: remove debug abort() 2011-06-02 06:52:29 +00:00
v_video.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
w_wad.c games/doom: implement filelength() (thanks quux) 2015-07-29 14:51:00 +02:00
w_wad.h games/doom: music support (thanks qu7uux) 2017-02-26 22:14:10 +01:00
wi_stuff.c games/doom: fix the french problem, remove debug prints 2011-05-27 15:55:56 +00:00
wi_stuff.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00
z_zone.c doom: port to amd64 2014-02-04 01:09:46 +01:00
z_zone.h rio: disable cons if /dev/kbd is open, add games/doom 2011-05-26 23:30:17 +00:00