This file is indexed.

/usr/lib/ruby/1.9.1/rubysdl_aliases.rb is in libsdl-ruby1.9.1 2.1.1.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
class << SDL
  alias inited_system initedSystem
end

# rubysdl_video.c
module SDL
  class Screen
    alias update_rect updateRect
    alias update_rects updateRects
    alias flip flip
    alias toggle_fullscreen toggleFullScreen
  end
  class << Screen
    alias check_mode checkMode
    alias list_modes listModes
    alias set_gamma setGamma
    alias get_gamma_ramp getGammaRamp
    alias set_gamma_ramp setGammaRamp
    alias driver_name driverName
  end
end

module SDL
  class << Surface
    alias load_bmp loadBMP
    alias load_bmp_from_io loadBMPFromIO
    alias load_bmp_from_string loadBMPFromString
  end

  class Surface
    alias get_pixel getPixel
    alias put_pixel putPixel
    alias display_format displayFormat
    alias display_format_alpha displayFormatAlpha
    alias set_color_key setColorKey
    alias fill_rect fillRect
    alias set_clip_rect setClipRect
    alias get_clip_rect getClipRect
    alias set_alpha setAlpha
    alias save_bmp saveBMP
    alias set_palette setPalette
    alias set_colors setColors
    alias must_lock? mustLock?
    alias copy_rect copyRect

  end

  class PixelFormat
    alias map_rgb mapRGB
    alias map_rgba mapRGBA
    alias get_rgb getRGB
    alias get_rgba getRGBA
    alias bytes_per_pixel bytesPerPixel
  end
end


# rubysdl_event.c
module SDL
  class << Event
    alias app_state appState
    alias enable_unicode enableUNICODE
    alias disable_unicode disableUNICODE
    alias enable_unicode? enableUNICODE?
  end
end

# rubysdl_sge_video.c
module SDL
  if defined?(CollisionMap) then
    class << Surface
      alias auto_lock? autoLock?
      alias auto_lock_on autoLockON 
      alias auto_lock_off autoLockOFF
      alias transform_draw transformDraw
      alias transform_blit transformBlit
    end
  
    class Surface
      alias draw_line drawLine
      alias draw_rect drawRect
      alias draw_circle drawCircle
      alias draw_ellipse drawEllipse
      
      #alias rotate_scaled_surface rotateScaledSurface
      alias transform_surface transformSurface
      alias make_collision_map makeCollisionMap
    end
    
    class CollisionMap
      alias collision_check collisionCheck
      alias bounding_box_check boundingBoxCheck
    end

    class << CollisionMap
      alias bounding_box_check boundingBoxCheck
    end
    
    class BMFont
      alias set_color setColor
      alias text_size textSize
    end
  end

  # rubysdl_kanji.c
  if defined?(Kanji) then
    class Kanji
      alias set_coding_system setCodingSystem
      alias get_coding_system getCodingSystem
      alias put_tate putTate
    end
  end
end


# rubysdl_time.c
class << SDL
  alias get_ticks getTicks
end

# rubysdl_cdrom.c
module SDL
  class << CD
    alias num_drive numDrive
    alias index_name indexName
    alias frames_to_msf framesToMSF
    alias msf_to_frames MSFToFrames
  end

  class CD
    alias play_tracks playTracks
    alias num_tracks numTracks
    alias current_track currentTrack
    alias current_frame currentFrame
    alias track_type trackType
    alias track_length trackLength
  end
end

# rubysdl_mouse.c
module SDL
  class << Mouse
    alias set_cursor setCursor
  end
end

# rubysdl_joystick.c
module SDL
  class << Joystick
    alias index_name indexName
    alias update_all updateAll
  end

  class Joystick
    alias num_axes numAxes
    alias num_balls numBalls
    alias num_hats numHats
    alias num_buttons numButtons
  end
end

# rubysdl_event_key.c
module SDL
  class << Key
    alias mod_state modState
    alias enable_key_repeat enableKeyRepeat
    alias disable_key_repeat disableKeyRepeat
    alias get_key_name getKeyName
  end
end

# rubysdl_wm.c
class << SDL::WM
  alias set_caption setCaption
  alias grab_input grabInput
end

# rubysdl_mixer.c
module SDL
  if defined?(Mixer) then
    class << Mixer
      alias driver_name driverName
      alias play_channel playChannel
      alias play_channel_timed playChannelTimed
      alias fade_in_channel fadeInChannel
      alias fade_in_channel_timed fadeInChannelTimed
      alias set_volume setVolume
      alias allocate_channels allocateChannels
      alias fade_out fadeOut
      alias playing_channels playingChannels
      alias play_music playMusic
      alias fade_in_music fadeInMusic
      alias set_volume_music setVolumeMusic
      alias halt_music haltMusic
      alias fade_out_music fadeOutMusic
      alias pause_music pauseMusic
      alias resume_music resumeMusic
      alias rewind_music rewindMusic
      alias pause_music? pauseMusic?
      alias play_music? playMusic?
      alias fading_music fadingMusic
    end

    module Mixer
      class Wave
        class << self
          alias load_from_io loadFromIO
          alias load_from_string loadFromString
        end
	alias set_volume setVolume
      end
      
      class << Music
        if method_defined?(:loadFromString)
          alias load_from_string loadFromString
        end
      end
    end
  end
end

# rubysdl_image.c
module SDL
  class Surface
    if method_defined?(:load)
      alias load_from_io loadFromIO
      alias load_from_string loadFromString
    end
  end
end

# rubysdl_ttf.c
module SDL
  if defined?(TTF) then
    class TTF
      alias text_size textSize
      alias fixed_width? fixedWidth?
      alias family_name familyName
      alias style_name styleName
      alias line_skip lineSkip
      alias draw_solid_utf8 drawSolidUTF8
      alias draw_blended_utf8 drawBlendedUTF8
      alias draw_shaded_utf8 drawShadedUTF8
      alias render_solid_utf8 renderSolidUTF8
      alias render_blended_utf8 renderBlendedUTF8
      alias render_shaded_utf8 renderShadedUTF8
      if method_defined?(:drawSolid)
        alias draw_solid drawSolid
        alias draw_blended drawBlended
        alias draw_shaded drawShaded
        alias render_solid renderSolid
        alias render_blended renderBlended
        alias render_shaded renderShaded
      end
    end
  end
end

# rubysdl_smpeg.c
module SDL
  if defined?(MPEG) then
    class MPEG
#     alias load load
#     alias new new
#     alias info info
      alias enable_audio enableAudio
      alias enable_video enableVideo
#     alias status status
      alias set_volume setVolume
      alias set_display setDisplay
      alias set_loop setLoop
      alias scale_xy scaleXY
#     alias scale scale
#     alias move move
      alias set_display_region setDisplayRegion
#     alias play play
#     alias pause pause
#     alias stop stop
#     alias rewind rewind
#     alias seek seek
#     alias skip skip
      alias render_frame renderFrame
      alias render_final renderFinal
      alias set_filter setFilter
    end
  end
end

# rubysdl_opengl.c
module SDL
  if defined?(GL)
    class << GL
      alias set_attr setAttr
      alias get_attr getAttr
      alias swap_buffers swapBuffers
    end
  end
end


class << SDL
  alias blit_surface2 blitSurface2
end