00:30:36 -!- joshe [~joshe@opal.elsasser.org] has quit [Ping timeout: 244 seconds] 00:40:47 joshe [~joshe@opal.elsasser.org] has joined #sbcl 03:11:25 gko [~user@220.228.255.202] has joined #sbcl 03:38:39 -!- wbooze [~wbooze@xdsl-78-35-185-67.netcologne.de] has quit [Quit: none] 05:34:54 -!- huangjs [~huangjs@69.84.244.131] has quit [Ping timeout: 276 seconds] 06:18:04 angavrilov [~angavrilo@217.71.227.190] has joined #sbcl 07:16:25 attila_lendvai [~attila_le@5.34.25.222] has joined #sbcl 07:16:25 -!- attila_lendvai [~attila_le@5.34.25.222] has quit [Changing host] 07:16:25 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 07:48:12 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 07:58:09 stassats` [~stassats@pppoe.178-66-55-96.dynamic.avangarddsl.ru] has joined #sbcl 08:14:43 jdz [~jdz@91.105.18.48] has joined #sbcl 08:16:29 attila_lendvai [~attila_le@5.34.25.222] has joined #sbcl 08:22:03 -!- attila_lendvai is now known as Guest96138 08:22:03 -!- jdz is now known as Guest19971 08:35:57 -!- Neronus [christian@heraklit.ayous.org] has quit [Quit: leaving] 08:58:40 -!- Guest19971 is now known as jdz 09:04:10 -!- Guest96138 is now known as attila_lendvai 09:04:36 -!- attila_lendvai [~attila_le@5.34.25.222] has quit [Changing host] 09:04:36 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 09:19:53 -!- gko [~user@220.228.255.202] has quit [Remote host closed the connection] 09:26:03 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 09:34:45 -!- kennyd_ [~kennyd@78-1-159-95.adsl.net.t-com.hr] has quit [Ping timeout: 276 seconds] 09:40:44 kennyd [~kennyd@93-138-69-70.adsl.net.t-com.hr] has joined #sbcl 10:26:26 attila_lendvai [~attila_le@87.247.13.156] has joined #sbcl 10:26:26 -!- attila_lendvai [~attila_le@87.247.13.156] has quit [Changing host] 10:26:26 attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has joined #sbcl 10:55:02 stassats [~stassats@wikipedia/stassats] has joined #sbcl 10:56:36 -!- stassats [~stassats@wikipedia/stassats] has quit [Client Quit] 11:33:22 turns out, RENAME-FILE fails when files are on different devices 11:33:41 looks like it's trying to make a hard-link and then remove the original file 11:34:43 it's using rename(2), and this limitation is quite unfortunate 11:52:33 _travis_ [~travis@c-24-127-49-108.hsd1.va.comcast.net] has joined #sbcl 13:03:00 -!- jdz [~jdz@91.105.18.48] has quit [Quit: Byebye.] 13:04:52 -!- attila_lendvai [~attila_le@unaffiliated/attila-lendvai/x-3126965] has quit [Quit: Leaving.] 13:05:37 hlavaty [~user@91-65-217-229-dynip.superkabel.de] has joined #sbcl 13:15:15 -!- hlavaty [~user@91-65-217-229-dynip.superkabel.de] has quit [Remote host closed the connection] 13:15:35 hlavaty [~user@91-65-217-229-dynip.superkabel.de] has joined #sbcl 13:43:00 stassats`: add &key atomic, and default to nil, which allows us to copy/delete? 13:44:52 only lispworks allows cross-device renames 13:44:56 all other implementations fail 14:00:28 tsuru` [~charlie@adsl-98-87-47-68.bna.bellsouth.net] has joined #sbcl 14:27:16 pkhuong: why not just make it atomic for the usual case, using rename(2), and use copying when it's cross-device? 14:29:09 wbooze [~wbooze@xdsl-84-44-179-77.netcologne.de] has joined #sbcl 14:29:39 -!- kennyd [~kennyd@93-138-69-70.adsl.net.t-com.hr] has quit [Read error: Connection reset by peer] 14:42:01 slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has joined #sbcl 14:46:43 kanru` [~kanru@111-249-153-213.dynamic.hinet.net] has joined #sbcl 14:47:55 stassats`: of course, but some users might still want to have failures on non-atomic copies. 14:48:06 the question is whether that should be tunable, and what the default should be. 15:04:47 Why is that limitation quite unfortunate? It's how unix generally works. I expect most languages' rename functions work that way. 15:06:07 Trying to do otherwise in a generic fashion gets you into a tangle of terribleness, as there is unfortunately no copy_file primitive which can copy all the permissions, acls, extended attributes, etcetc that might be attached to the file. 15:10:52 gko [~user@114-34-168-13.HINET-IP.hinet.net] has joined #sbcl 15:17:37 jdz [~jdz@91.105.18.48] has joined #sbcl 15:23:59 antgreen [user@nat/redhat/x-ommunsvxtrretvsa] has joined #sbcl 15:29:00 -!- slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has quit [Ping timeout: 276 seconds] 15:42:55 slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has joined #sbcl 16:01:40 -!- slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has quit [Ping timeout: 244 seconds] 16:11:12 foom: because there's no move-file 16:12:38 "copying files is hard, let the user bother with it" is not really helpful for the user 16:19:04 -!- jdz [~jdz@91.105.18.48] has quit [Quit: Byebye.] 16:47:23 slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has joined #sbcl 17:24:04 -!- gko [~user@114-34-168-13.HINET-IP.hinet.net] has quit [Ping timeout: 240 seconds] 17:31:03 -!- slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has quit [Ping timeout: 244 seconds] 17:34:31 milanj [~milanj_@178-223-158-152.dynamic.isp.telekom.rs] has joined #sbcl 17:35:16 slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has joined #sbcl 17:43:57 stassats`: How about "copying files is hard, let it be in a library, not the core." 17:51:52 too bad that in 40+ years of Unix nobody added such a function to libc 17:52:35 indeed. 17:55:28 *bsd has copyfile 17:59:03 Are you sure? Looks like OSX only, 10.5+, from what I see on the internets. 17:59:05 -!- slyrus_ [~chatzilla@adsl-99-190-99-176.dsl.pltn13.sbcglobal.net] has quit [Ping timeout: 256 seconds] 18:04:21 foom: which library? it's far more easy to do os stuff in the implementation, unless we're talking about iolib. And there's no really a core in CL 18:04:49 oh, hm, I thought copyfile was supported on the *bsds, even though I've only seen it on osx 18:09:25 -!- angavrilov [~angavrilo@217.71.227.190] has quit [Ping timeout: 248 seconds] 18:10:51 foom: if you care to help, I'd like to expand libfixposix to be a sort-of-libc-extension 18:12:15 and there are certain advantages to having it in the implementation, iolib is rad and all, but having to compile things like libfixposix just so that rename-file is more friendly 18:13:39 that sentence sounds incomplete 18:13:43 rename-file is what it is; don't expect it to be move-file, and you won't be disappointed. 18:14:30 fe[nl]ix: that was on purpose, i could find a suitable adjective 18:14:33 couldn't 18:16:21 Having move-file and copy-file available would be nice, but I don't see that they'd be any harder to implement in a library than in the implementation. They'll require some crazy non-portable OS calls either way, if you want to do it right. 18:27:12 to preserve all non-POSIX file attributes, you mean ? 18:29:52 all, or, the ones you ask it to preserve. 18:35:02 that's not a problem 18:36:36 I know how to do it 18:36:58 the tricky part is error reporting 18:38:11 what if it fails to restore a subset of the requested attributes ? 18:39:37 return an nth value with the succeeded attributes? 19:21:03 -!- Vivitron [~Vivitron@pool-98-110-213-33.bstnma.fios.verizon.net] has quit [Ping timeout: 276 seconds] 20:28:14 -!- wbooze [~wbooze@xdsl-84-44-179-77.netcologne.de] has quit [Ping timeout: 244 seconds] 20:54:39 -!- stassats` [~stassats@pppoe.178-66-55-96.dynamic.avangarddsl.ru] has quit [Ping timeout: 276 seconds] 21:36:15 -!- antgreen [user@nat/redhat/x-ommunsvxtrretvsa] has quit [Remote host closed the connection] 23:40:51 -!- milanj [~milanj_@178-223-158-152.dynamic.isp.telekom.rs] has quit [Ping timeout: 265 seconds]