This file is indexed.

/usr/share/gridengine/util/dl2.csh is in gridengine-common 8.1.9+dfsg-7build1.

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

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
#!/bin/csh -fb
#
#
#___INFO__MARK_BEGIN__
##########################################################################
#
#  The Contents of this file are made available subject to the terms of
#  the Sun Industry Standards Source License Version 1.2
#
#  Sun Microsystems Inc., March, 2001
#
#
#  Sun Industry Standards Source License Version 1.2
#  =================================================
#  The contents of this file are subject to the Sun Industry Standards
#  Source License Version 1.2 (the "License"); You may not use this file
#  except in compliance with the License. You may obtain a copy of the
#  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
#
#  Software provided under this License is provided on an "AS IS" basis,
#  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
#  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
#  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
#  See the License for the specific provisions governing your rights and
#  obligations concerning the Software.
#
#  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
#
#  Copyright: 2001 by Sun Microsystems, Inc.
#
#  All Rights Reserved.
#
##########################################################################
#___INFO__MARK_END__

#===================================
#for comfortable use:
#alias dl 'set argv = ( \!* ); source $SGE_ROOT/util/dl2.csh'
#
#===================================
#
#configuration:
#
#
#	list of layers:
#
set layer_name = (t c b g s h a p)
set layer_full = 255
#
#	list of classes:
#
set class_name = (t i j V m X Y Z)
set class_full = 255
#
#	default value for no debug 
#	(one '0' for each layer)
#
set no_debug = (0 0 0 0 0 0 0 0)
#
#===================================

#===================================
#
#PARSING
#
#===================================

#-----------------------------------
#
#compute bit mask for layers
#

set is_layer = 0
set layer_mask = 0

while ( $#argv > 0 ) 
	@ i = 0
	foreach layer ( $layer_name )
		if ($argv[1] == $layer ) then
			@ layer_mask += (1<<$i)
			set is_layer = 1
			break
		endif
		@ i++
	end
	if ( $is_layer != 1  ) break
	set is_layer = 0
	shift
end 
if ( $layer_mask == 0 ) then
   set layer_mask = $layer_full
endif
unset is_layer


#-----------------------------------
#
#watch out for command
#

set command 
if ( $#argv > 0 ) then 
	switch ($argv[1])
		case "+":
			set command = add 
			breaksw
		case "-":
			set command = sub 
			breaksw
		case "=":
			set command = set 
			breaksw
		default:
         echo "dl2.csh: unknown command $argv[1]"
			goto usage
			breaksw
	endsw
	shift
else 
	set command = ask
endif

#-----------------------------------
#
#compute bit mask for classes
#

set is_class = 0
set class_mask = 0

while ( $#argv > 0 ) 
	@ i = 0
	set is_class = 0
	foreach class ( $class_name )
		if ($argv[1] == $class ) then
			@ class_mask += (1<<$i)
			set is_class = 1
			break
		endif
		@ i++
	end
	if ( $is_class != 1  ) then
      echo "dl2.csh: unknown class $argv[1]"
      goto usage
   endif
	shift
end 
if ( $class_mask == 0 ) then
   set class_mask = $class_full
endif
unset is_class


#===================================
#
#EXECUTING
#
#===================================

set selected
set VAR 

#get old value of SGE_DEBUG_LEVEL or default value
if ( $?SGE_DEBUG_LEVEL ) then
 	set debug = ($SGE_DEBUG_LEVEL)
else
 	set debug = ($no_debug)
endif

@ i = 1
foreach layer ( $layer_name )

	set old = "$debug[$i]"
	@ selected = ($layer_mask & (1<<($i - 1)))
   if ( $selected ) then
      switch ( $command )
         case set:
            @ old = $class_mask
            breaksw
         case add:
            @ old = ($old|$class_mask)
            breaksw
         case sub:
            @ old = ($old&(~ $class_mask))
            breaksw
         case ask:
            set classes  
            @ j = 0
            foreach class ( $class_name )
               if ( $old & (1<<$j) ) then
                  set classes = "$classes$class "
               else
                  set classes = "$classes  "
               endif	
               @ j++
            end
            echo "layer: $layer class: $classes"
            breaksw
      endsw
   endif

	set VAR = "$VAR $old"
	@ i++
end

setenv SGE_DEBUG_LEVEL "$VAR"
setenv SGE_ND true
setenv SGE_ENABLE_COREDUMP true

unset VAR
unset debug 
unset old 
unset i
unset class
unset classes
unset class_name
unset class_mask
unset command
unset selected
unset layer
unset layer_name
unset layer_mask

exit

usage: 
#===================================
#
#PRINT USAGE ON SYNTAX ERROR
#
#===================================
echo "Usage: dl [$layer_name][+-=][$class_name]"
exit 1