This file is indexed.

/usr/share/common-lisp/source/lparallel/lparallel.asd is in cl-lparallel 20151218-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
;;; Copyright (c) 2011-2012, James M. Lawrence. All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;;
;;;     * Redistributions of source code must retain the above copyright
;;;       notice, this list of conditions and the following disclaimer.
;;;
;;;     * Redistributions in binary form must reproduce the above
;;;       copyright notice, this list of conditions and the following
;;;       disclaimer in the documentation and/or other materials provided
;;;       with the distribution.
;;;
;;;     * Neither the name of the project nor the names of its
;;;       contributors may be used to endorse or promote products derived
;;;       from this software without specific prior written permission.
;;;
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
;;; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
;;; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
;;; A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
;;; HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
;;; SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
;;; LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
;;; DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
;;; THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
;;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
;;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

(eval-when (:compile-toplevel :load-toplevel :execute)
  ;; unless otherwise requested, default to stealing scheduler on sbcl
  #+(and sbcl (not lparallel.without-stealing-scheduler))
  (pushnew :lparallel.with-stealing-scheduler *features*)

  ;; unless otherwise requested, use compare-and-swap optimizations
  #+(and (or sbcl ccl lispworks)
         (not lparallel.without-cas)
         (not lparallel.with-debug))
  (pushnew :lparallel.with-cas *features*)

  ;; plet uses a cltl2 feature
  #+(or sbcl ccl lispworks allegro)
  (progn
    (pushnew :lparallel.with-cltl2 *features*)
    #+sbcl (require :sb-cltl2))

  ;; green threads need calls to yield
  #+(and allegro (not os-threads))
  (pushnew :lparallel.with-green-threads *features*)

  ;; thread kill does not call unwind-protect cleanup forms
  #+abcl
  (pushnew :lparallel.without-kill *features*))

(defsystem :lparallel
  :version "2.8.2"
  :description "Parallelism for Common Lisp"
  :long-description
"
lparallel is a library for parallel programming in Common Lisp, featuring

  * a simple model of task submission with receiving queue
  * constructs for expressing fine-grained parallelism
  * asynchronous condition handling across thread boundaries
  * parallel versions of map, reduce, sort, remove, and many others
  * promises, futures, and delayed evaluation constructs
  * computation trees for parallelizing interconnected tasks
  * bounded and unbounded FIFO queues
  * high and low priority tasks
  * task killing by category
  * integrated timeouts

See http://lparallel.org for documentation and examples.
"
  :licence "BSD"
  :author "James M. Lawrence <llmjjmll@gmail.com>"
  :depends-on (:alexandria
               :bordeaux-threads)
  :serial t
  :components               ((:module "src"
                              :serial t
                              :components
		                   ((:module "util"
                                     :serial t
                                     :components
                                             ((:file "package")
                                              (:file "config")
                                              (:file "misc")
                                              (:file "defmacro")
                                              (:file "defun")
                                              (:file "defslots")
                                              (:file "defpair")))
                                    (:file "thread-util")
                                    (:file "raw-queue")
                                    (:file "cons-queue")
                                    (:file "vector-queue")
                                    (:file "queue")
#-lparallel.with-stealing-scheduler (:file "biased-queue")
#+lparallel.with-stealing-scheduler (:file "counter")
#+lparallel.with-stealing-scheduler (:module "spin-queue"
                                     :serial t
                                     :components
                                             ((:file "package")
#+lparallel.with-cas                          (:file "cas-spin-queue")
#-lparallel.with-cas                          (:file "default-spin-queue")))
                                    (:module "kernel"
                                     :serial t
                                     :components
                                             ((:file "package")
                                              (:file "specials")
                                              (:file "handling")
                                              (:file "classes")
#-lparallel.with-stealing-scheduler           (:file "central-scheduler")
#+lparallel.with-stealing-scheduler           (:file "stealing-scheduler")
#-lparallel.without-kill                      (:file "kill")
                                              (:file "core")
                                              (:file "timeout")))
                                    (:file "kernel-util")
                                    (:file "promise")
                                    (:file "ptree")
                                    (:file "slet")
                                    (:file "defpun")
                                    (:module "cognate"
                                     :serial t
                                     :components
                                             ((:file "package")
                                              (:file "util")
                                              (:file "option")
                                              (:file "subdivide")
                                              (:file "pandor")
                                              (:file "plet")
                                              (:file "pmap")
#-abcl                                        (:file "pmap-open-coded")
                                              (:file "pdotimes")
                                              (:file "pquantifier")
                                              (:file "preduce")
                                              (:file "premove")
                                              (:file "pfind")
                                              (:file "pcount")
                                              (:file "psort")))
                                    (:file "package")))))

(defmethod perform ((o test-op) (c (eql (find-system :lparallel))))
  (declare (ignore o c))
  (load-system '#:lparallel-test)
  (test-system '#:lparallel-test))

(defmethod perform :after ((o load-op) (c (eql (find-system :lparallel))))
  (declare (ignore o c))
  (pushnew :lparallel *features*))

;;; svref problem in sbcl-1.1.6
#+sbcl
(when (string= "1.1.6" (lisp-implementation-version))
  (error "Sorry, cannot use lparallel with SBCL 1.1.6; any version but that."))