Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Side by Side Diff: ports/glibc-compat/include/sys/unistd.h

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix wrong c++ lib Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ports/glibc-compat/include/sys/un.h ('k') | ports/glibc-compat/include/time.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 #ifndef GLIBCEMU_SYS_UNISTD_H 6 #ifndef GLIBCEMU_SYS_UNISTD_H
7 #define GLIBCEMU_SYS_UNISTD_H 7 #define GLIBCEMU_SYS_UNISTD_H
8 8
9 #include_next <sys/unistd.h> 9 #include_next <sys/unistd.h>
10 10
11 #include <sys/stat.h> 11 #include <sys/stat.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 13
14 /* 14 /*
15 * TODO(bradnelson): Consider adding sysconf (and this define) to nacl_io. 15 * TODO(bradnelson): Consider adding sysconf (and this define) to nacl_io.
16 * This would allow us to return more useful values. 16 * This would allow us to return more useful values.
17 * For example nacl_io knows what this one should be. 17 * For example nacl_io knows what this one should be.
18 * 18 *
19 * This sysconf parameter is unsupported by newlib, pick a bad value so that 19 * This sysconf parameter is unsupported by newlib, pick a bad value so that
20 * we can still build when this is used, and instead hit a runtime error. 20 * we can still build when this is used, and instead hit a runtime error.
21 * One port (tcl) has a fallback in this case to guess a reasonable value. 21 * One port (tcl) has a fallback in this case to guess a reasonable value.
22 */ 22 */
23 #define _SC_GETPW_R_SIZE_MAX (-1) 23 #define _SC_GETPW_R_SIZE_MAX (-1)
24 #define _SC_GETGR_R_SIZE_MAX (-1) 24 #define _SC_GETGR_R_SIZE_MAX (-1)
25 #define _SC_MONOTONIC_CLOCK (-1) 25 #define _SC_MONOTONIC_CLOCK (-1)
26 #define _SC_OPEN_MAX (-1) 26 #define _SC_OPEN_MAX (-1)
27 #define _SC_CLK_TCK (-1) 27 #define _SC_CLK_TCK (-1)
28 #define _SC_ARG_MAX (-1)
28 29
29 /* TODO(bradnelson): Drop this once we've landed nacl_io pipe support. */ 30 /* TODO(bradnelson): Drop this once we've landed nacl_io pipe support. */
30 extern int mknod(const char *pathname, mode_t mode, dev_t dev); 31 extern int mknod(const char *pathname, mode_t mode, dev_t dev);
31 extern int mkfifo(const char *pathname, mode_t mode); 32 extern int mkfifo(const char *pathname, mode_t mode);
32 33
34 int readlinkat(int dirfd, const char *pathname,
35 char *buf, size_t bufsiz);
36 int unlinkat(int dirfd, const char *pathname, int flags);
37 int faccessat(int dirfd, const char *pathname, int mode, int flags);
38 int fchownat(int dirfd, const char *pathname,
39 uid_t owner, gid_t group, int flags);
40 int symlinkat(const char *oldpath, int newdirfd, const char *newpath);
41 int linkat(int olddirfd, const char *oldpath,
42 int newdirfd, const char *newpath, int flags);
33 43
34 #endif 44 #endif
OLDNEW
« no previous file with comments | « ports/glibc-compat/include/sys/un.h ('k') | ports/glibc-compat/include/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698