mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
* sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
instead of __file_name_split. * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
This commit is contained in:
parent
b127fa2537
commit
ac04d0ddf6
@ -1,5 +1,9 @@
|
|||||||
2002-08-18 Roland McGrath <roland@frob.com>
|
2002-08-18 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
|
* sysdeps/mach/hurd/mkdir.c (__mkdir): Use __directory_name_split
|
||||||
|
instead of __file_name_split.
|
||||||
|
* sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
|
||||||
|
|
||||||
* sysdeps/mach/hurd/dl-sysdep.c
|
* sysdeps/mach/hurd/dl-sysdep.c
|
||||||
[HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
|
[HP_TIMING_AVAIL] (_dl_cpuclock_offset): New variable.
|
||||||
[HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
|
[HP_TIMING_AVAIL] (_dl_sysdep_start): Set it with HP_TIMING_NOW.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,93,94,95,96,97,2002 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -29,7 +29,7 @@ __mkdir (file_name, mode)
|
|||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
const char *name;
|
const char *name;
|
||||||
file_t parent = __file_name_split (file_name, (char **) &name);
|
file_t parent = __directory_name_split (file_name, (char **) &name);
|
||||||
if (parent == MACH_PORT_NULL)
|
if (parent == MACH_PORT_NULL)
|
||||||
return -1;
|
return -1;
|
||||||
err = __dir_mkdir (parent, name, mode & ~_hurd_umask);
|
err = __dir_mkdir (parent, name, mode & ~_hurd_umask);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 92, 93, 94, 95, 97 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,92,93,94,95,97,2002 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -31,7 +31,7 @@ __unlink (name)
|
|||||||
file_t dir;
|
file_t dir;
|
||||||
const char *file;
|
const char *file;
|
||||||
|
|
||||||
dir = __file_name_split (name, (char **) &file);
|
dir = __directory_name_split (name, (char **) &file);
|
||||||
if (dir == MACH_PORT_NULL)
|
if (dir == MACH_PORT_NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user