aboutsummaryrefslogtreecommitdiff
path: root/src/connection/local.lisp
Commit message (Collapse)AuthorAge
* rename READFILE, WRITEFILE, corresponding generics and some wrappersSean Whitton2022-04-02
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rename :XDG-CACHE-HOME connattr to :XDG_CACHE_HOMESean Whitton2021-10-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* use CFFI, mostly via Osicat, for all syscalls/libc except fork(2)Sean Whitton2021-09-09
| | | | | | | | | | Also replace some calls to chmod(1) with calls to chmod(2). Using CFFI rather than implementation-specific wrappers should be better for portability. Also with this commit we stop hard coding types like uid_t as :UNSIGNED-INT, which was less portable. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* :LOCAL CONNECTION-WRITEFILE: use UIOP:RENAME-FILE-OVERWRITING-TARGETSean Whitton2021-08-31
| | | | | | Avoids starting an external process. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* use UIOP:XDG-CACHE-HOMESean Whitton2021-08-31
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* LOCAL-CONNECTION docstring: connection is not always the root LispSean Whitton2021-08-31
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add CONNECTION-READFILE-AND-REMOVE to improve RUN performanceSean Whitton2021-08-31
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* cache XDG_CACHE_HOME as a connattrSean Whitton2021-08-31
| | | | | | This should provide a performance improvement. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* rework uploading data to be in terms of CONNECTION-UPLOADSean Whitton2021-03-27
| | | | | | | | | | Incremental updates of items of prerequisite data was not implemented, so the previous meaning of CONNECTION-UPLOAD was not achieving much. This simplifies the core implementation, should still allow connection types to implement the method to provide optimisations, and provides a way to implement copying items of prerequisite data into chroots. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* untabifySean Whitton2021-03-22
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add and use :CONSFIGURATOR named readtableSean Whitton2021-03-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* combine CONNECTION-WRITEFILE implementations for :LOCALSean Whitton2021-03-06
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* CONNECTION-WRITEFILE: deal in modes rather than umasksSean Whitton2021-03-06
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* eliminate global value for *CONNECTION*Sean Whitton2021-02-28
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* note about WITH-UMASK and threadsSean Whitton2021-02-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* attempt to implement umask support for CONNECTION-WRITEFILESean Whitton2021-02-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* no need to force a shell around a shellSean Whitton2021-02-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* don't assume local shell is POSIXSean Whitton2021-02-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* simplify control flow by specialising on INPUT in CONNECTION-RUNSean Whitton2021-02-27
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* add :ELEMENT-TYPE in COPY-STREAM-TO-STREAM for :LOCAL connectionsSean Whitton2021-02-24
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* specify element type in :LOCAL CONNECTION-WRITEFILE for streamsSean Whitton2021-02-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* attempt to fix streaming data into remote sudoSean Whitton2021-02-23
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* update package nameSean Whitton2021-02-21
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* extend CONNECTION-WRITEFILE and CONNECTION-RUN APIs for stream inputSean Whitton2021-02-20
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* import some names from uiopSean Whitton2021-02-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* more sophisticated layer over connection-runSean Whitton2021-02-18
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* normalise file headers and some commentsSean Whitton2021-02-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* update some arg listsSean Whitton2021-02-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* updates for having dropped apply-propertiesSean Whitton2021-02-16
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* move code into an src/ subdirSean Whitton2021-02-16
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>