/branches/tracing/uspace/lib/libfs/libfs.c |
---|
155,10 → 155,10 |
if (ops->plb_get_char(next) == '/') |
next++; /* eat slash */ |
while (ops->has_children(cur) && next <= last) { |
while (next <= last && ops->has_children(cur)) { |
/* collect the component */ |
len = 0; |
while ((ops->plb_get_char(next) != '/') && (next <= last)) { |
while ((next <= last) && (ops->plb_get_char(next) != '/')) { |
if (len + 1 == NAME_MAX) { |
/* comopnent length overflow */ |
ipc_answer_0(rid, ENAMETOOLONG); |
197,8 → 197,10 |
index); |
if (nodep) { |
if (!ops->link(cur, nodep, component)) { |
if (lflag & L_CREATE) |
(void)ops->destroy(nodep); |
if (lflag & L_CREATE) { |
(void)ops->destroy( |
nodep); |
} |
ipc_answer_0(rid, ENOSPC); |
} else { |
ipc_answer_5(rid, EOK, |
232,7 → 234,7 |
} |
/* handle miss: excessive components */ |
if (!ops->has_children(cur) && next <= last) { |
if (next <= last && !ops->has_children(cur)) { |
if (lflag & (L_CREATE | L_LINK)) { |
if (!ops->is_directory(cur)) { |
ipc_answer_0(rid, ENOTDIR); |
/branches/tracing/uspace/lib/libc/arch/sparc64/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x4000; |
. = 0x4000 + SIZEOF_HEADERS; |
.init ALIGN(0x4000) : SUBALIGN(0x4000) { |
.init : { |
*(.init); |
} :text |
.text : { |
16,12 → 16,14 |
*(.text); |
*(.rodata*); |
} :text |
.got ALIGN(0x4000) : SUBALIGN(0x4000) { |
. = . + 0x4000; |
.got : { |
_gp = .; |
*(.got*); |
} :data |
.data ALIGN(0x4000) : SUBALIGN(0x4000) { |
.data : { |
*(.data); |
*(.sdata); |
} :data |
/branches/tracing/uspace/lib/libc/arch/ia64/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x4000; |
. = 0x4000 + SIZEOF_HEADERS; |
.init ALIGN(0x4000): SUBALIGN(0x4000) { |
.init : { |
*(.init); |
} : text |
.text : { |
17,7 → 17,9 |
*(.rodata*); |
} :text |
.got ALIGN(0x4000) : SUBALIGN(0x4000) { |
. = . + 0x4000; |
.got : { |
_gp = .; |
*(.got*); |
} :data |
/branches/tracing/uspace/lib/libc/arch/arm32/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x1000; |
. = 0x1000 + SIZEOF_HEADERS; |
.init ALIGN(0x1000): SUBALIGN(0x1000) { |
.init : { |
*(.init); |
} : text |
.text : { |
16,8 → 16,10 |
*(.text); |
*(.rodata*); |
} :text |
.data ALIGN(0x1000) : SUBALIGN(0x1000) { |
. = . + 0x1000; |
.data : { |
*(.opd); |
*(.data .data.*); |
*(.sdata); |
/branches/tracing/uspace/lib/libc/arch/ppc32/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x1000; |
. = 0x1000 + SIZEOF_HEADERS; |
.init ALIGN(0x1000) : SUBALIGN(0x1000) { |
.init : { |
*(.init); |
} :text |
.text : { |
16,8 → 16,10 |
*(.text); |
*(.rodata*); |
} :text |
.data ALIGN(0x1000) : SUBALIGN(0x1000) { |
. = . + 0x1000; |
.data : { |
*(.data); |
*(.sdata); |
} :data |
/branches/tracing/uspace/lib/libc/arch/amd64/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x1000; |
. = 0x1000 + SIZEOF_HEADERS; |
.init ALIGN(0x1000) : SUBALIGN(0x1000) { |
.init : { |
*(.init); |
} :text |
.text : { |
16,8 → 16,10 |
*(.text); |
*(.rodata*); |
} :text |
.data ALIGN(0x1000) : SUBALIGN(0x1000) { |
. = . + 0x1000; |
.data : { |
*(.data); |
} :data |
.tdata : { |
/branches/tracing/uspace/lib/libc/arch/ppc64/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x1000; |
. = 0x1000 + SIZEOF_HEADERS; |
.init ALIGN(0x1000) : SUBALIGN(0x1000) { |
.init : { |
*(.init); |
} :text |
.text : { |
17,8 → 17,10 |
*(.toc); |
*(.rodata*); |
} :text |
.data ALIGN(0x1000) : SUBALIGN(0x1000) { |
. = . + 0x1000; |
.data : { |
*(.opd); |
*(.data*); |
*(.sdata); |
/branches/tracing/uspace/lib/libc/arch/mips32/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x4000; |
. = 0x4000 + SIZEOF_HEADERS; |
.init ALIGN(0x4000) : SUBALIGN(0x4000) { |
.init : { |
*(.init); |
} :text |
.text : { |
17,6 → 17,8 |
*(.rodata*); |
} :text |
. = . + 0x4000; |
.data : { |
*(.data); |
*(.data.rel*); |
/branches/tracing/uspace/lib/libc/arch/ia32/_link.ld.in |
---|
7,9 → 7,9 |
} |
SECTIONS { |
. = 0x1000; |
. = 0x1000 + SIZEOF_HEADERS; |
.init ALIGN(0x1000) : SUBALIGN(0x1000) { |
.init : { |
*(.init); |
} :text |
.text : { |
16,8 → 16,10 |
*(.text); |
*(.rodata*); |
} :text |
.data ALIGN(0x1000) : SUBALIGN(0x1000) { |
. = . + 0x1000; |
.data : { |
*(.data); |
} :data |
.tdata : { |