libuv/src/unix
Brandon Philips 4cfda74de4 uv.h: add EPERM to errno map to fix regression
EPERM isn't mapped in so chown returns an unknown error. This is a
regression from 0.4.12.

philips:node/ (master*) $ cat chown.js
var fs = require('fs')
fs.chown("/tmp/foobar", 100, 100, function(er){ console.log(er);})

philips:node/ (master*) $ ls -la /tmp/foobar
total 0
drwxr-xr-x   2 root  wheel   68 Jan 24 17:21 .

0.4
---

philips:node/ (master*) $ /usr/local/Cellar/node/0.4.12/bin/node chown.js
{ stack: [Getter/Setter],
  arguments: undefined,
  type: undefined,
  message: 'EPERM, Operation not permitted \'/tmp/foobar\'',
  errno: 1,
  code: 'EPERM',
  path: '/tmp/foobar' }

master
------

philips:node/ (master*) $ ./node chown.js
{ [Error: UNKNOWN, unknown error '/tmp/foobar'] errno: -1, code: 'UNKNOWN', path: '/tmp/foobar' }

AFTER
-----

philips:node/ (master*) $ ./node chown.js
{ [Error: EPERM, operation not permitted '/tmp/foobar'] errno: 49, code: 'EPERM', path: '/tmp/foobar' }
2012-01-31 16:37:26 -08:00
..
eio Add support for DragonFly BSD by sharing code for FreeBSD. 2011-11-13 19:46:24 +01:00
ev unix: don't close kqueue fd in kqueue_fork() 2012-01-19 14:48:41 +01:00
cares.c Fixes #76. Unify OS error reporting 2011-09-27 19:05:33 -07:00
core.c Add uv_loop_refcount() function, debug tool. 2012-01-14 00:33:08 +01:00
cygwin.c Fix missing increments of loop->counters 2011-12-12 18:01:26 +01:00
darwin.c Change return type of uv_get_*_memory() functions 2011-10-21 10:09:59 -07:00
dl.c unix: it's legal for dlsym() to return NULL 2011-12-18 16:49:40 +01:00
error.c uv.h: add EPERM to errno map to fix regression 2012-01-31 16:37:26 -08:00
freebsd.c Add support for DragonFly BSD by sharing code for FreeBSD. 2011-11-13 19:46:24 +01:00
fs.c Fix missing increments of loop->counters 2011-12-12 18:01:26 +01:00
internal.h linux: fix build on older distros 2012-01-09 15:43:00 +01:00
kqueue.c unix: unref fs event watcher 2012-01-02 10:42:27 +01:00
linux.c unix: unref fs event watcher 2012-01-02 10:42:27 +01:00
netbsd.c Fix typo that broke libuv on NetBSD: psysconf() -> sysconf() 2011-11-13 19:42:57 +01:00
openbsd.c Change return type of uv_get_*_memory() functions 2011-10-21 10:09:59 -07:00
pipe.c unix: Remove assert in uv__pipe_accept 2012-01-30 11:28:54 -08:00
process.c linux: improve kernel feature detection 2011-12-16 15:16:31 +01:00
stream.c Fix missing increments of loop->counters 2011-12-12 18:01:26 +01:00
sunos.c unix: unref fs event watcher 2012-01-02 10:42:27 +01:00
tcp.c windows: add tests for uv_tcp_simultaneous_accepts 2011-11-01 01:13:13 -07:00
tty.c unix: fix segfault in uv_guess_handle() 2012-01-17 17:47:33 +01:00
udp.c unix: explain SO_REUSEADDR and SO_REUSEPORT 2012-01-31 16:52:27 +01:00
uv-eio.c move eio stuff into src/unix 2011-08-31 00:24:07 -07:00
uv-eio.h move eio stuff into src/unix 2011-08-31 00:24:07 -07:00