thr_printf.c (7d9d7ca2ed3e3d630e63482c41f2d26194129c2c) thr_printf.c (05e948d9969843aba78c717dad84a68e351439a2)
1/*-
2 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 96 unchanged lines hidden (view full) ---

105
106/*
107 * Write a single character to stdout, in a thread-safe manner.
108 */
109static void
110pchar(int fd, char c)
111{
112
1/*-
2 * Copyright (c) 2002 Jonathan Mini <mini@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 96 unchanged lines hidden (view full) ---

105
106/*
107 * Write a single character to stdout, in a thread-safe manner.
108 */
109static void
110pchar(int fd, char c)
111{
112
113 write(fd, &c, 1);
113 __sys_write(fd, &c, 1);
114}
115
116/*
117 * Write a string to stdout, in a thread-safe manner.
118 */
119static void
120pstr(int fd, const char *s)
121{
122
114}
115
116/*
117 * Write a string to stdout, in a thread-safe manner.
118 */
119static void
120pstr(int fd, const char *s)
121{
122
123 write(fd, s, strlen(s));
123 __sys_write(fd, s, strlen(s));
124}
125
124}
125