mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
* hurd/get-host.c <fcntl.h>: New include.
* hurd/set-host.c <fcntl.h>: New include. (_hurd_set_host_config): Include NEW in args to dir_link. Return NWROTE, not NREAD.
This commit is contained in:
parent
f34e0ae3b0
commit
a5d96b254c
@ -1,5 +1,10 @@
|
|||||||
Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
|
Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* hurd/get-host.c <fcntl.h>: New include.
|
||||||
|
* hurd/set-host.c <fcntl.h>: New include.
|
||||||
|
(_hurd_set_host_config): Include NEW in args to dir_link.
|
||||||
|
Return NWROTE, not NREAD.
|
||||||
|
|
||||||
* sysdeps/mach/hurd/getcwd.c
|
* sysdeps/mach/hurd/getcwd.c
|
||||||
(_hurd_canonicalize_directory_name_internal): Don't deallocate
|
(_hurd_canonicalize_directory_name_internal): Don't deallocate
|
||||||
DOTID & DOTDEVID until we're finished with them (we need to keep
|
DOTID & DOTDEVID until we're finished with them (we need to keep
|
||||||
|
@ -17,6 +17,7 @@ License along with the GNU C Library; see the file COPYING.LIB. If
|
|||||||
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||||
Cambridge, MA 02139, USA. */
|
Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
|
#include <fcntl.h>
|
||||||
#include <hurd.h>
|
#include <hurd.h>
|
||||||
#include "hurdhost.h"
|
#include "hurdhost.h"
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ License along with the GNU C Library; see the file COPYING.LIB. If
|
|||||||
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
|
||||||
Cambridge, MA 02139, USA. */
|
Cambridge, MA 02139, USA. */
|
||||||
|
|
||||||
|
#include <fcntl.h>
|
||||||
#include <hurd.h>
|
#include <hurd.h>
|
||||||
#include "hurdhost.h"
|
#include "hurdhost.h"
|
||||||
|
|
||||||
@ -39,10 +40,10 @@ _hurd_set_host_config (const char *item, const char *value, size_t valuelen)
|
|||||||
err = __io_write (new, value, valuelen, 0, &nwrote);
|
err = __io_write (new, value, valuelen, 0, &nwrote);
|
||||||
if (! err)
|
if (! err)
|
||||||
/* Atomically link the new node onto the name. */
|
/* Atomically link the new node onto the name. */
|
||||||
err = __dir_link (dir, item, 0);
|
err = __dir_link (dir, new, item, 0);
|
||||||
__mach_port_deallocate (__mach_task_self (), new);
|
__mach_port_deallocate (__mach_task_self (), new);
|
||||||
}
|
}
|
||||||
__mach_port_deallocate (__mach_task_self (), dir);
|
__mach_port_deallocate (__mach_task_self (), dir);
|
||||||
|
|
||||||
return nread;
|
return nwrote;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user